Skip Navigation

[Resolved] I have some conflict in JavaScript about Toolset and Bootstrap which broke admin

This support ticket is created 6 years, 6 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 3 voices.

Last updated by kirillS-3 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#696787
Screenshot 2018-04-20 13.27.34.png

I am trying to:

click on some button in WP admin like edit WYSIWING field visual or text, or upload image button and these buttons just didn't clicked (nothing happens)

Link to a page where the issue can be seen:

hidden link

I expected to see:

change in edit field after click button "Visual"

Instead, I got:

just nothing happens.

But I find error in JavaScript Console, which probably leads to this issue:

Uncaught TypeError: Cannot read property 'bs_component_show_hide_button' of undefined
at QTags.i.getButton (load-scripts.php:77)
at ToolsetCommon.BootstrapCssComponentsQuickTags.self.add_bootstrap_components_buttons (toolset-bs-component-buttons.js:108)
at toolset-bs-component-buttons.js:21
at d (toolset-event-manager.min.js:1)
at Object.j [as doAction] (toolset-event-manager.min.js:1)
at HTMLDivElement.<anonymous> (toolset-bs-component-events.js:213)
at Function.each (load-scripts.php:2)
at toolset-bs-component-events.js:209
at load-scripts.php:96

#697241

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I do not see this issue yet on my local test install with minimum set of Toolset plugins installed. This looks like there is conflict between any third party plugin or theme. Though, to ensure that:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

If you issue still persists:
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#714472

Hello,

Minesh isn't available currently, you will get the answer soon when he is back in tomorrow.

#728135

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I checked with local test install and I do not able to reproduce this issue.

I would like to know - is any plugins (other than Toolset) were active when SEO plugin is active?

Have you checked with minimum installation (only Toolet plugins active)?

#728814

Hi Minesh,

I check everything again.
So, there is some findings.

The issues connected only in combination of Views and YoastSEO plugin - if I disable one of them, problem disappear. But, of course, this is not a possible way due to core nature of both plugins for good website.

But I find what lead to the issue. I used some optimisation code like this:

"/* remove mediaelement */
add_action( 'wp_print_scripts', 'no_mediaelement_scripts', 100 );
add_filter('wp_video_shortcode_library','no_mediaelement');

function no_mediaelement_scripts() {
wp_dequeue_script( 'wp-mediaelement' );
wp_deregister_script( 'wp-mediaelement' );
}

function no_mediaelement() {
return '';
}
"

And then I remove this code everything start to work ok.
Ok, this is not critical part of site optimisation, so I just removed it.