• Hi,
    The moderator on the main WordPress Forums recommended I post my issue here.
    I’m having a real nightmare trying to debug an issue on a WordPress Woocommerce website. At some point the Visual Editor tab on the classic editor on both pages and Woocommerce Products has stopped working. I’ve tried all the obvious fixes including the following:

    – Deactivating all plugins and switching to Twenty Twenty Theme
    – Checking profile setting ‘disable visual editor’ is unchecked (have also tried checking/unchecking)
    – Adding the line define(‘CONCATENATE_SCRIPTS’, false ); to wp-config
    – Reuploading the tinymce folder to the wp-includes/js directory
    – Reinstalling WordPress
    – Installing the Advanced Tiny MCE plugin

    In the browser console it shows the following error:

    Uncaught SyntaxError: Invalid or unexpected token
    post.php?post=23835&action=edit:2429 Uncaught ReferenceError: tinyMCEPreInit is not defined
    at post.php?post=23835&action=edit:2429
    at post.php?post=23835&action=edit:2437
    2post.php?post=23835&action=edit:2392 Uncaught ReferenceError: tinyMCEPreInit is not defined
    at HTMLDocument.initialize (post.php?post=23835&action=edit:2392)
    8editor.min.js?ver=5.8.2:2 Uncaught TypeError: Cannot read properties of undefined (reading ‘mceInit’)
    at n (editor.min.js?ver=5.8.2:2)
    at HTMLDocument.<anonymous> (editor.min.js?ver=5.8.2:2)
    at C (tinymce.min.js?ver=49110-20201110:2)
    at HTMLDocument.d (tinymce.min.js?ver=49110-20201110:2)

    Any further help would be greatly appreciated.

    Update: I have recently found a partial solution. By resetting the wp_options table this fixes the Visual Tab. However, this is not an ideal solution as it will mean re-configuring alot of plugins. Is there anything specific I could check in that table that could be effecting the editor?

  • The topic ‘Visual Tab Broken’ is closed to new replies.