Skip Navigation

[Resolved] cannot toggle between text and visual mode in Classic editor

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 9 replies, has 2 voices.

Last updated by hannahM 5 years, 10 months ago.

Assisted by: Diego Pereira.

Author
Posts
#1185056

I have a site which has recently updated to WordPress 5.0.3 - I have installed and activated the Classic Editor but when using it I am unable to toggle between the visual and text tabs on the WYSIWYG editor - I click the tabs and nothing happens.

I have troubleshooted this by disabling all plugins on the site, and narrowed down the issue to only happening when Toolset plugins are active. I also tested it using the WordPress twentynineteen theme and the same thing happens.

In the console I can see the following errors:

Uncaught TypeError: $headers.imagesLoaded is not a function
    at HTMLDocument.init (file-wp35.js?ver=0.1.2:14)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,jquery-ui-draggable,jquery-ui-tabs&ver=bd48b28a4f417849fb9d88d59424c265:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,jquery-ui-draggable,jquery-ui-tabs&ver=bd48b28a4f417849fb9d88d59424c265:2)
    at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,jquery-ui-draggable,jquery-ui-tabs&ver=bd48b28a4f417849fb9d88d59424c265:2)
    at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,jquery-ui-draggable,jquery-ui-tabs&ver=bd48b28a4f417849fb9d88d59424c265:2)
quicktags.min.js?ver=bd48b28a4f417849fb9d88d59424c265:1 

Uncaught TypeError: Cannot read property 'bs_component_show_hide_button' of undefined
    at QTags.i.getButton (quicktags.min.js?ver=bd48b28a4f417849fb9d88d59424c265:1)
    at ToolsetCommon.BootstrapCssComponentsQuickTags.self.add_bootstrap_components_buttons (toolset-bs-component-buttons.js?ver=bd48b28a4f417849fb9d88d59424c265:122)
    at toolset-bs-component-buttons.js?ver=bd48b28a4f417849fb9d88d59424c265:21
    at d (toolset-event-manager.min.js?ver=1.0:1)
    at Object.j [as doAction] (toolset-event-manager.min.js?ver=1.0:1)
    at HTMLDivElement.<anonymous> (toolset-bs-component-events.js?ver=1:213)
    at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,jquery-ui-draggable,jquery-ui-tabs&ver=bd48b28a4f417849fb9d88d59424c265:2)
    at toolset-bs-component-events.js?ver=1:209
    at underscore.min.js?ver=1.8.3:5

Could someone please investigate this for me?

Many thanks

Hannah

#1185103

Diego Pereira
Supporter

Hello Hannah, welcome to the Toolset support Forum!

This may be related to some file missing from your installation or corrupt. In this case, it is necessary to try an update manual. Please try the following:
- Install this plugin (it will speed up the update process): https://wordpress.org/plugins/easy-theme-and-plugin-upgrades/
- Download the lastest versions of the Toolset plugins you are using on your website from here: https://toolset.com/account/downloads/
- Go to Plugins > All Plugins > Add new and upload the downloaded .zip files
- Activate the plugins

If it does not work, please send us a duplicator package and the steps to reproduce the issue (see instructions here: https://toolset.com/faq/provide-supporters-copy-site/). We will take a look.

Kind regards,
Diego

#1185180

Hi Diego,

Thanks for your suggestion, but I'm afraid it hasn't worked.

The site is very large - it goes back many years and posts articles often. I have taken a Duplicator package without the wp-uploads folder which is a more manageable size. Can you enable a private response so I can send you the link?

Thanks

Hanah

#1185212

Diego Pereira
Supporter

Hi there,

Sure, I enabled the private reply.

Kind regards,
Diego

#1185242

Hi Diego,

That's great, many thanks. I have included the link to the Duplicator package which is in my dropbox.

In terms of recreating the issue - if you create a new post using the classic editor (or go in to edit one of the draft classic editor posts) it is not possible to toggle between text and visual mode in the WYSIWYG editor.

I have tried deactivating all plugins except the Classic Editor and Types/Views but the problem persists - I have also tried activating the WP twentynineteen theme but the problem still persists (NB I have cleared both the site cache and my browser cache when I have tried these so I do not think it is a browser or site caching issue). If I disable Types and Views, the issue goes away.

There are a number of user accounts on the site - I can confirm that everyone is experiencing this issue and that trying in a different browser does not solve the problem.

Many thanks

Hannah

#1185246

Diego Pereira
Supporter

Hi,

I dind't get the link, could you send it to us again? Maybe you forgot to attach it on the private reply.

Kind regards,
DIego

#1185272

Hi Diego,

I definitely pasted it into the Duplicator package field - it's possible there's an issue with the form submission?

I have pasted it in that field again but it is also here: hidden link

Thanks

Hannah

#1185435

Diego Pereira
Supporter

Hi there,

Thanks, i was able to download using the link. I'm checking it and will send you a feedback soon.

Kind regards,
Diego

#1185899

Diego Pereira
Supporter

Hi there,

I tested using the duplicator package and the issue does not occur at our server. So we suspect it's a server-related issue.

Please send us access to your WordPress dashboard (website URL, login and password) I'll check and do some tests. - Please use the private field to send the sensitive data - do not post if you do not see it.

IMPORTANT Please backup a working copy of site files and database before.

In which post does the error occur at your website?

Kind regards,
Diego

#1188865

Hi Diego,

Thanks for letting me know, that's really interesting.

I have logged into our site this morning and the problem has stopped happening! I am checking whether or not it is still happening for the other users but hopefully it has now (somehow) resolved itself.

Many thanks for testing out the site on your own server and confirming the problem did not occur there - if we have any further issues of this nature I'll contact our hosting company in the first instance to see if they can troubleshoot.

Thanks for your help!

Hannah