Skip Navigation

[Resolved] URGENT: js error is breaking entire site

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 17 replies, has 2 voices.

Last updated by Shane 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#918067
Image 2018-06-26 at 12.46.25.png

I've been trying to resolve this for weeks and the position of the toolset team previously has always been frustratingly taking the default position that it's a compatibility problem with another plugin, however, I've now made a staging duplicate of the site and disabled nearly every single plugin, but the js error remains.

This is breaking my site, and my client is responding with "no confidence" because of the broad effect of the js error.

Please help!!!!

Uncaught TypeError: Cannot read property 'sort' of undefined
    at WPViews.ViewSorting.self.get_sort_data (wpv-pagination-embedded.js?ver=2.6:560)
    at WPViews.ViewFrontendUtils.self.get_updated_query_results (wpv-pagination-embedded.js?ver=2.6:391)
    at WPViews.ViewPagination.self.pagination_preload_next_page (wpv-pagination-embedded.js?ver=2.6:1776)
    at WPViews.ViewPagination.self.pagination_preload_pages (wpv-pagination-embedded.js?ver=2.6:1715)
    at HTMLDivElement.<anonymous> (wpv-pagination-embedded.js?ver=2.6:3281)
    at Function.each (jquery.js?ver=1.12.4:2)
    at a.fn.init.each (jquery.js?ver=1.12.4:2)
    at WPViews.ViewPagination.self.init_preload_pages (wpv-pagination-embedded.js?ver=2.6:3274)
    at WPViews.ViewPagination.self.init (wpv-pagination-embedded.js?ver=2.6:3312)
    at new WPViews.ViewPagination (wpv-pagination-embedded.js?ver=2.6:3316)
#918118

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

Thank you for contacting our support forum.

Could you update to the latest version of Views and let me know if the issue still appears?

Thanks,
Shane

#918143

I have updated but the issue persists. Please help!

#918362

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

Which page is having this issue so that I can log in with the credentials you sent and have a look.

Thanks,
Shane

#918389

As far as I can tell, all of them.

#918391

Just go to the homepage:

hidden link

#918409

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

I see there are quite a few views on this page.

The error seems to be related to the pagination. Could you let me know which of these views have the pagination on it ?

Thanks,
Shane

#918415

If I recall, I don't think any of them on the homepage have pagination, although I could be wrong.

However, it's happening even on pages that don't have a view.

hidden link for example

For certain, hidden link definitely has pagination and is throwing the error.

#918866

Hi there! Is there any update on this? This is a breaking issue.

#919040

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

Since this is a JS error.

I would need to diagnose further. Could you let me know when did this issue started to occur. Was it when you updated to views version 2.6 ?

Getting some point of reference would help. Sorry for the delayed response but the forum is extremely loaded at the moment so I ask for a bit of patience 🙁

Thanks,
Shane

#919081

Yes, I do believe it was introduced with the update to 2.6.

This is a really urgent issue, since the entire site is effectively broken as a result of this. I'll even pay for support. I just need a solution. Thank you.

#919336

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

Would you mind if I took a duplicator package from your site to test this locally?

I'll try to resolve this one for you today if possible.

Thanks,
Shane

#919348

Please do whatever you need. If there’s something I can provide to assist, please let me know. I’m a senior dev myself and haven’t had time to really parse it out and WP isn’t my typical domain, but if it makes sense for me to be involved, let me know.

Point is, if there’s anything at all I can do to help, please let me know.

#919416

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

I was able to get the package setup the website locally but having some issues to restore it.

In the meantime would you be able to downgrade a previous version of views where this worked while I try to get to log in on the local copy?

I believe there will be a patch coming that might address this but I would still like to get this working on my computer.

This is just to ensure that your site is up and running .

Thanks,
Shane

#919419

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ellen,

It seems that the issue is coming from the theme . It seems that there is some conflict on this particular site.

Still checking however.

Thanks,
Shane