Visual Editor broken after upgrade to WordPress 4.7
-
Hello, everyone.
Upgrading to WordPress 4.7 has broken the visual editor.
The visual editor will load properly at first in Text mode and I can enter text normally, and there are editbuttons in the toolbar. But upon switching to WYSIWYG mode, the text entry area goes blank, I can’t enter any text and the toolbar buttons disappear. Trying to switch back to Text mode again causes the editor text area to go blank entirely. Then trying to switch back to WYSIWYG mode yet again causes the text entry area and toolbars to disappear entirely.
I’ve Googled for solutions, read the related threads posted here and tried the various solutions with no luck.
I’m on shared hosting (Inmotion Hosting) using PHP v7.0.12, reverse proxying through Cloudflare.
Things I’ve tried with no success (in no particular order):
- First de-activated, then eventually deleted TinyMCE Advanced plugin
- Disabled W3 Total Cache (Community Fix version)
- Turned off Cloudflare’s minification feature first, then put Cloudflare into Development Mode entirely.
- Confirmed the path and existence of plugin.min.js and tinymce.min.js
- Re-uploaded plugin.min.js and tinymce.min.js.
- Checked directory and file permissions.
- Checked .htaccess for any restrictions/rules that could affect the visual editor.
- Used different browsers (Chrome, Firefox, Internet Explorer, Safari etc…)
- Disabled all plugins and reverted to default theme.
- Added
define('CONCATENATE_SCRIPTS', false );
to wp-config.php - WP_HOME and WP_SITEURL were explicitly defined in wp-config.php
- Turned on Debug mode in wp-config.php. (Some people reported that this temporarily restored visual editor functionality but didn’t work for me.)
- Re-installed WordPress (full deletion of wp-admin, wp-includes, deleting any cache directories.)
- Changed PHP versions to 5.6.27, then to 7.1.0 RC
During the troubleshooting process, I regularly purged or turned off whatever caching was going on— browser, Cloudflare, W3 Total Cache etc… etc…
When switching the visual editor from Text mode to WYSIWYG mode, Chrome debug console reports that plugin.min.js is called multiple times with no problem (GET 200 status) but then it generates a single 404 error amidst all the successful GETs. From what I’ve been able to glean from the debug console, the error is in tinymce.min.js and that the error is generated from around line 3957. This code is what is on line 3957:
(document.getElementsByTagName("head")[0] || document.body).appendChild(s)
Here’s a pastebin with my installed plugin list and debug console output.
I’m not knowledgable in PHP and Javascript so I’m really at my limit.
Any help would be greatly appreciated!
- The topic ‘Visual Editor broken after upgrade to WordPress 4.7’ is closed to new replies.