[wp-trac] [WordPress Trac] #52111: Classic Editor - TinyMCE Visual Page editor not working correctly after updating to version 5.6 or later

WordPress Trac noreply at wordpress.org
Mon Jun 14 23:03:23 UTC 2021


#52111: Classic Editor - TinyMCE Visual Page editor not working correctly after
updating to version 5.6 or later
---------------------------------------------+----------------------
 Reporter:  spikeuk1                         |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:
Component:  Editor                           |     Version:  5.6.3
 Severity:  major                            |  Resolution:  invalid
 Keywords:  needs-testing reporter-feedback  |     Focuses:
---------------------------------------------+----------------------
Changes (by azaozz):

 * keywords:  needs-testing has-patch reporter-feedback => needs-testing
     reporter-feedback
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Future Release =>


Comment:

 Thanks for posting the js errors.

 Replying to [comment:53 spikeuk1]:

 Looking at
 https://www.dropbox.com/s/t3t17rxs8zzrymz/Chrome_Error_Console_1.jpg?dl=0
 it seems something's wrong with the plugin or theme that adds `wcpb.js`.
 The `jQuery is not defined` error suggests that `wcpb.js` is loading
 before jQuery. Could be caused by a some sort of caching plugin or
 something that "moves" where the jQuery script is loaded.

 Looking at
 https://www.dropbox.com/s/bohndu8ylzd9dtt/Chrome_Error_Console_2.jpg?dl=0
 it seems there are two versions of jQuery UI loaded at the same time. One
 is from core, version 1.12.1, the other is `jquery-ui.min.js` and seems to
 be version 1.0. You can see where the second is coming from by clicking on
 the file name. If you can disable it, I'm guessing things would start
 working as expected.

 Replying to [comment:38 floriantactisens]:

 Looking at the js errors, `tinymce is not defined` and `jQuery is not
 defined` could be some sort of caching plugin problems, or perhaps server
 errors (although then you should be able to see the HTTP errors in the
 browser tools network tab).

 The `Unexpected end of JSON` suggests that some js was not outputted fully
 by the server. Seems related to/coming from `media-upload.js?ver=1.0`
 (click on it to see what plugin adds that file). That could be related to
 the above errors.

 It seemed that this ticket is related to initializing TinyMCE but all of
 the above errors seem to be coming either from the theme or from plugins.
 It's possible some are related to the jQuery update in core. Installing
 the [https://wordpress.org/plugins/enable-jquery-migrate-helper/ Enable
 jQuery Migrate Helper] will remedy these temporarily, but the plugins or
 themes that cause them will have to be updated or replaced (don't forget
 to clear all caches after installing or uninstalling Enable jQuery Migrate
 Helper).

 Next step would be to identify where the scripts causing the js errors are
 coming from. The URL will point to the location and help identify the
 theme or plugin. Then looking through or posting on the appropriate
 support forum would be best.

 Closing this as invalid. Please feel free to reopen if it can be
 reproduced with no plugins and a default theme.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52111#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list