Visual Editor Not Working after Upgrade to 4.0
-
Hi All
Text designing/Editing options are not working not working after few hours of upgrading to WP4.0, followed all the WIs given in this link
Please help to solve this issue asap.Thanks in advance.
-
I solved the problem by installing the plugin “CKEditor for WordPress” and with the tips of @vokiel at this topic.
Thanks mate @valdereszimmer, “CKEditor for WordPress” plugin has solved my problem for now.
Cheers
I am new to WP and do not quite understand all this. My website is perfect in admin but doesn’t show up in real time. I’ve installed CKEeditor but nothing’s happened.
Please help!!
The site – again I state is PERFECT in the admin mode – is not showing up on GoDaddy, where I am hosted.
We are also experiencing this issue. We have around 300 sites we manage. The weird thing is that it doesn’t happen to everyone. I’ve noticed that it happens on sites I’ve been logged into before, but new sites don’t have an issue. It screams “cached javascript files”, but we have tried incognito windows and other browsers and still no fix.
Also, to confirm what I see when its “not working”, is that when you switch back and forth between the visual and text tabs, it stops fully loading the visual tab after a couple of clicks. Its like its 1/2 loading the visual tab but getting stuck on some js error. Another symptom we see is that the visual tab refuses to show the “next page” and “read more” graphics that are supposed to appear in the tinyMCE editor (as a replacement of the of the html comments you see in the text tab).
We even went as far as uninstalling chrome, and installing it again to try and get it to work. Still fails on that persons machine (windows 8 PC) but works fine for me on my windows 7 PC and windows 8 laptops. This one really has me confused because I can find no patter whatsoever as to why its happening to some, but not to others.
I couldn’t find any cure so I restored to an old backup in 3.9. I hadn’t backed up everything new so I had to rebuild but I learned a lot and have a better site and am backing up faithfully now. So out of bad comes good.
However, I’m a bit concerned as I am still in wp 3.9. I’m not going to 4.0 and wonder what that will do to my site.
I have a temporary fix for the issue you can try. Add this to your wp-config.php file:
define(‘SCRIPT_DEBUG’, true);From what I have gathered, its some sort of server based file caching thats causing the problem for us. Turning on script debug loads a different version of each javascript file… thus forcing new files to be loaded. Its not a good long term fix, but short term, your editor should be back to normal.
Additional time spent looking into the problem indicated caching was the issue. On our side, it was Cloudflare caching the admin files because there is no ?version= at the end of the theme.min.js file. Pause cloudflare on the site, visit the page editor, do a “refresh without cache” with shift+r or shift+f5, editor loads fine, turn Cloudflare back on.
This applies to anyone using a CDN of any kind.
I believe I have found a DEFINITIVE solution to this bug that has plagued WordPress users for YEARS. For those who mysteriously find their editor (and sometimes other scripts) not working after an upgrade to the latest WordPress version (and who are not helped by changing their theme etc.), here is what is likely happening, and what you need to do:
Use PHPMyAdmin (or another database editor) to search inside your WordPress database in your “
ngto_options
” table for the record called “can_compress_scripts
“. and if it has a value of “1
” for the “option_value
“, change this to “0
” and save the change. You will find your editor working again! (Note: Sometimes this record won’t even exist, so in that case you need to add it. Look for a WordPress database that does have it in order to see what you need to add.)“Wait! Why did this happen in the first place??” you ask? Explanation:
When you update your WordPress version, it does a ONE-TIME-ONLY test of your server environment to see if it supports compressing using the “deflate” method, if it thinks it detects that your server supports this, then it will set “can_compress_scripts” “
option_value
” to have a value of “1”. But it OFTEN gets this wrong! (or it just doesn’t do “deflate” correctly etc.)Then because that test doesn’t run again, you are stuck with an auto-screwed-up WordPress install that won’t work unless you know the above secret, or unless you use the “
define('CONCATENATE_SCRIPTS', true);
” directive in your “wp-config.php
” file (but using that directive disables BOTH concatenating and compressing of all scripts, which makes your site SLOW!!).I did a painstaking MANUAL EYEBALL database compare (of a database backup I luckily made just before the WordPress upgrade) and spent HOURS tracking this down because I wasn’t satisfied with downgrading, restoring to a backup, or disabling script concatenation. So I hope it helps you all.
To understand more about this, look here:
Oops, one additional note:
“ngto_options” has a random prefix (“ngto”) that you won’t find in your database. I meant to change that to make it generic like “wp_options” etc….but it was 4am in the morning… ??
i was facing same issues i.e (visual editor not working) with upgrade to 4.0 but solved the problem as i upgraded it to 4.1.
Thanks
SiddThis is what helped me… there were some missing js tinymce files missing after upgrade to WordPress 4.1:
https://www.maxmito.it/2015/01/12/visual-editor-not-working-after-wordpress-update/
Same issue here!! Issue is the same in FireFox and Google Chrome, but in Internet Explorer it’s fine. I prefer FireFox so very incontinent. Hopefully it gets fixed soon. ??
IzFactor, follow what I did, link above your post, it helped me.
I’m already using 4.1 version of WordPress…
- The topic ‘Visual Editor Not Working after Upgrade to 4.0’ is closed to new replies.