Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#20539 closed defect (bug) (fixed)

Missing editor_template_src.js when setting SCRIPT_DEBUG to true

Reported by: ilovecolors Owned by: ryan
Priority: low Milestone: 3.4
Component: TinyMCE Version: 3.4
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

Using WP 3.4 beta 3 multisite configuration based on directories.

In wp-config.php, set

define('SCRIPT_DEBUG', true);

Create/edit a post/page.

Console throws

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/wordpress/night/wp-includes/js/tinymce/themes/advanced/editor_template_src.js?ver=349-20521
Failed to load: http://localhost/wordpress/night/wp-includes/js/tinymce/themes/advanced/editor_template_src.js

As a result, TinyMCE is not initialized.

Attachments (1)

20539.patch (506 bytes ) - added by Jayjdk 14 years ago.
Remove editor_template_src.js from the $_old_files array

Download all attachments as: .zip

Change History (8)

#1 @azaozz
14 years ago

  • Keywords close added

The file exists in the repo, perhaps check your install and/or refresh it: http://core.trac.wordpress.org/browser/trunk/wp-includes/js/tinymce/themes/advanced

#2 @SergeyBiryukov
14 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

The file exists in both wordpress-3.4-beta3.zip and current nightly build as well.

#3 @SergeyBiryukov
14 years ago

  • Resolution invalid
  • Status closedreopened

#4 @SergeyBiryukov
14 years ago

  • Resolutionworksforme
  • Status reopenedclosed

@Jayjdk
14 years ago

Remove editor_template_src.js from the $_old_files array

#5 @Jayjdk
14 years ago

  • Resolution worksforme
  • Status closedreopened

I have the same problem as ilovecolors. The editor_template_src.js file gets deleted every time I update WordPress.

I looked in the source code and the file is listed in the $_old_files array in wp-admin/includes/update-core.php

I've attached a patch.

#6 @nacin
14 years ago

  • Keywords has-patch commit added; close removed
  • Milestone3.4
  • Priority normallow

#7 @ryan
14 years ago

  • Owner set to ryan
  • Resolutionfixed
  • Status reopenedclosed

In [20728]:

Remove editor_template_src.js from old files list. It should not be deleted. Props Jayjdk. fixes #20539

Note: See TracTickets for help on using tickets.