Skip Navigation

[Resolved] Toolset Views breaks Javascript

This support ticket is created 4 years, 9 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 5 replies, has 3 voices.

Last updated by Minesh 4 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1528061

Whatever you recently changed in Toolset Views breaks important Javascript functionality throughout our site. For example, on WooCommerce order admin screens, we could no longer refund credit cards using the Refund button, add notes using that button, and delete notes using the Delete note link.

It may have to do with wp-auth-check, Jquery, and heartbeat (and more generally, Ajax functionality), as various errors are thrown in the browser Javascript console when your plugin is loaded that reference those js files. The error message is "Cannot read property 'hasClass' of undefined."

It took us a while to narrow it down to your plug-in due to the large number of plug-ins we run and the fact that a lot of the Javascript is cached, but it is definitely Toolset Views that's the problem.

#1528105

I've seen a similar ticket but with different software here https://toolset.com/forums/topic/toolset-forms-breaks-javascript/

I've also seen the error you mention earlier:
https://toolset.com/forums/topic/forms-wizards-not-working-for-post-and-user-forms/
https://toolset.com/forums/topic/cant-edit-content-template-cell-even-when-access-is-given/

These tickets are newer so I think there might be something, that changed.
Do you recall what version provoked the issue?

The best for us would be having a copy of the issue site, made with Duplicator or other services as described in https://toolset.com/faq/provide-supporters-copy-site/
We can then locally swap out versions to check when it was introduced and also debug the issue so to decide further steps.

#1530347

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

The link to the duplicator package you shared is showing the message "This site can’t be reached", so I cant able to download the duplicator package.

However - I still do not know what is your current setup.

Can you please share the duplicator package again and send me the problem URL and steps that I need to follow that should help me to reproduce/see the issue.

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

#1532093

Minesh
Supporter

Languages: English (English )

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

Thank you for sharing the required information.

I confirm and able to reproduce the issue with the following point as well:
- Tag picker link in post edits

I see the following error involved here is:

TypeError: this._setOptionDisabled is not a function jquery.fancytree.ui-deps.js

With your other plugins where you see the issue:
- Comments on WooCommerce orders
- Credit card refunds through Authorize.net in WooCommerce
==>
Can you please confirm that you see the JS error that is coming from the file jquery.fancytree.ui-deps.js?

#1537283

Minesh
Supporter

Languages: English (English )

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

I would like to inform you that it looks like the issue is from Smush Pro plugin and they are going to ship the fix with version 3.6.1.
=> hidden link

#1544051

Minesh
Supporter

Languages: English (English )

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

Just adding a comment to change the ticket status.