Skip Navigation

[Resolved] Collapsible Views in these pages stopped from working.

This thread is resolved. Here is a description of the problem and solution.

Problem:

Collapsible Views in these pages stopped from working

Solution:

There are some JS errors in client's website:

Uncaught SyntaxError: Invalid or unexpected token,

Uncaught ReferenceError: Backbone is not defined,

Relevant Documentation:

Deactivate other plugins, and switch to wordpress default theme 2019, and test again, remove/deactivate custom JS codes from your website

0% of people find this useful.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 10 replies, has 2 voices.

Last updated by Luo Yang 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1182073

Dear Luo, Shane is not replying quickly it took me a week & he’s in a different timezone, I’ve tried to change the Support agent in the ticket
https://toolset.com/forums/topic/collapsible-views-are-not-working-blank/
But couldn’t....I want you intervene the site is live & many are waiting the most visited page that has the issue to be solved...all needed info is in the above ticket....kindly handle it & fix it the soonest.
======================
I am trying to:
Collapsible Views in these pages stopped from working.

Link to a page where the issue can be seen:
hidden link
hidden link

I expected to see:
Active collapsible taxonomies & their children & posts

Instead, I got:
Inactive or blank pages

I couldn't bring Debug info .. not getting out.

#1182096

Hello,

Thanks for the details, I have checked it in your website, and can see the problem as you mentioned above:
Collapsible Views in these pages stopped from working

I assume you are using custom JS codes (jQuery According) to setup the collapsible views, jQuery According depends on JavaScripts:
hidden link

But there are lots of JavaScripts error in both pages you mentioned above, for example, in page:
hidden link

I can see those JS errors in my Chrome browser console window:

Uncaught SyntaxError: Invalid or unexpected token,
...
Uncaught ReferenceError: Backbone is not defined,
...
Uncaught TypeError: $(...).not(...).filter(...).mediaelementplayer is not a function, file:
hidden link

To see the JS errors, please check our document:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#javascript-debugging

Those JS errors will stop jQuery According from working.

I suggest you fix them first, for example:
- Deactivate other plugins, and switch to wordpress default theme 2019, and test again, remove/deactivate custom JS codes from your website
- If it is fixed, then activate them one by one, try to locate the problem plugin/custom JS codes

Second, according to our support policy, custom codes support is forbidden:
https://toolset.com/toolset-support-policy/

If you need assistance to fix those custom codes or problem of other plugins, you might consider checking our Toolset Contractors:
https://toolset.com/contractors/

#1182099

Dear, thanks for your quick reply...NO we don’t use any customed JS. Since it has been built it was working fine for weeks.
It has been working till I guess I deleted a page entitled: Daily Content...then this error appeared....
This page has a slug daily-content this caused the Taxonomy of the same slug become corrupted.
For when we set the Pages to be Translatable it appears...while when we make it not translatable it becomes normal in some browsers.
So may be this is the reason.
But I confirm that when this happened no Plugins have been activated not dactivated...nor any customization took place...this happened suddenly.
Since you helped me to make the views it has been working fine.
Please help to return it back.

#1182100

N.B. When WPML is deactivated it works fine...after activation issues appear.

#1182102

I can try to help you locate the problem source, but need your permissions to deactivate plugins/theme, please backup your website first, then update this thread..

#1182106

Thanks a lot dear.
I've taken DB backup not the whole site...I think the activation/deactivation needs not any file/folders backup.
You have permission to do the mentioned sir.
Thanks a lot

#1182114

Your website is running 88 plugins!

I have done below modification in your website:
1) Dashboard-> Plugins
Deactivate all plugins except (Toolset plugins + WPML plugins)
2) Test it in front-end:
hidden link
It works fine, and without any JS errors, see screenshot
Same here
hidden link

As I mentioned above, please activate other plugins one by one, try to locate the problem plugin.

#1182119

Thanks will do this for sure...Actually when the issue appeared...we did this test....but things were going perfect...even no updates appeared at that time.
Are you sure the issue isn’t in WPML?
For when we deactivated it things went fine...have you cleared the Cache?

#1182120

No, I am sure it is not WPML issue, as you can see, the WPML plugins are activated in your website.
And as I mentioned above, I did only deactivate other plugins, did not clear cache.

And your website is running 88 plugins, I don't think it is a good idea, that will conduct some unexpected performance/compatibility problems.

#1182761

I reactivated all the deactivated Plugins then tested all is going fine....I don’t know why?? !! Anyway my issue is resolved now. Thank you!

#1183225

You are welcome