Skip Navigation

[Resolved] Toolset View: 'sort' undefined

This support ticket is created 5 years, 2 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 7 replies, has 3 voices.

Last updated by Christian Cox 5 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1377053

Hi,

I'm running into a "Uncaught TypeError: Cannot read property 'sort' of undefined" error on the following page which is related to the WP Views plugin that we're using (Toolset Views)
hidden link
I'm on version 2.9.3of Toolset Views
Page is also throwing "Cannot read property 'trigger_pagination' of undefined"
Please advise?

#1377177

Hi, can you try these troubleshooting steps first?
- Edit View ID #364 and open up the Pagination and Sliders Settings panel. If you cannot see it, scroll to the top right corner and click "Screen Options". You can enable the panel here. In the panel, open the Advanced Options toggle and check to see if anything is entered in the "Javascript function to execute after the pagination transition has been completed:" section.
- Check the Custom Search settings panel next, and tell me if any JavaScript functions are executed before or after the search results are updated. You may need to activate the panel in Screen Options.
- Finally check the Search and Pagination panel's JS editor and tell me if any custom JavaScript is included here.
- Temporarily deactivate all plugins except Types, Views and Layouts, and activate a default theme like Twenty Nineteen. Test again.
- If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns.
- if the problem is not resolved, I'll have to take a closer look.

#1379221

Hi Christian,
I've performed these tasks in a non prod environment: hidden link
and I'm still running into the above error.
Happy to provide you admin access to this environment should you wish to look further in our environment.
Cheers

#1379365

Yes, that would be perfect. Please provide login credentials for the non-prod environment here in the private reply fields, and I'll be able to take a closer look. If I'm not able to see anything obvious, I may need to create a clone of the site using the Duplicator plugin so I can run some additional tests locally. Please let me know if that is okay.

#1380345

Shane
Supporter

Languages: English (English )

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

Hello,

Christian is currently on Holiday today but will be back tomorrow to continue this ticket with you.

Thanks,
Shane

#1381473

Okay I've downloaded a clone of the site and run some additional tests, but I still don't see anything that looks unusual in your setup or configurations. I'm asking my 2nd tier support team to take a closer look to see what is causing the JavaScript errors here. I'll let you know what I find out as soon as possible.

#1381853

Hey Christian,
No problem and thanks for the update 🙂
Cheers

#1382109

My 2nd tier team found that resaving the View seems to resolve the problem. This JavaScript error can be seen when one removes the [wpv-filter-meta-html] shortcode in the Output editor. In your site, I could see the shortcode but for some reason it wasn't registered correctly. Resaving the View fixed the problem and now the slider is operating more like you would expect. Please take a look and confirm the JS error is resolved.