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?
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.
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
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.
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.
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.