• Upon upgrading a version of WP to 3.6.1, I noticed that the toolbar and content under the “Visual” edit tab have disappeared. After some troubleshooting, I was able to narrow down the problem to a theme-based error with TinyMCE.

    In other words, the visual edit works with the Twenty Twelve theme but not with our custom theme. The exact error is as follows:

    TypeError: this.getDoc(…) is undefined
    wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=358-25336

    If anyone has experienced this issue or could point me in the right direction as far as what to modify in the theme, your help would be greatly appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder and wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter dkeenan

    (@dkeenan)

    Thanks for your quick response! I tried deactivating all plugins as well as reinstalling WordPress with no luck. As I mentioned above, the visual edit tab works fine when I switch it to the default theme. This would lead me to believe that it is in fact an issue with my theme.

    However, I am confused as to how my theme would have any impact on the TinyMCE functionality.

    This would lead me to believe that it is in fact an issue with my theme.

    Yes, what theme are you using?

    Thread Starter dkeenan

    (@dkeenan)

    It is a custom theme that we developed. I have never experienced this issue with the same theme on any other version of WordPress. It only became an issue upon upgrading to 3.6.1.

    Perhaps your custom theme simply isn’t compatible with WordPress 3.6.1? Try checking your site’s error logs for specific error messages. Your hosts should be able to help you accessing your site’s error logs.

    Thread Starter dkeenan

    (@dkeenan)

    We noticed (while using Firebug) that WP 3.6 “adds” a hide-if-no-js class to the <div id="wp-content-editor-tools"> that was not present in 3.4.1 (and others). Before drilling down into our specific theme problem, we wanted to post this in case it shed light on what looks to be a pervasive issue.
    Here are links to two pictures showing what the Visual Editor element looks like in 3.4.1 and 3.6, with the differences noted.

    http://s2.postimg.org/8wpy7q855/wp_3_4_1.png
    http://s14.postimg.org/dlwd6oj2p/wp_3_6.png

    Does anyone know the purpose of this class?

    Did you check your site’s error logs?

    Thread Starter dkeenan

    (@dkeenan)

    The admin of our server said that no errors were found for this site under the php error logs. Is there somewhere else we should be looking for errors?

    I would suggest that the issue is clearly in your custom theme. You could try removing all javascript and jQuery code from it to see if that helps.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Visual Edit Tab Disappears Upon Upgrade’ is closed to new replies.