Skip Navigation

Possible JavaScript errors in the console when using a paginated View

Won't fix

Reported for: Toolset Views 2.9.4

Symptoms

When inserting a View that uses pagination of any kind into a page, and removing the wpv-filter-meta-html shortcode from the View’s Output Editor (or commenting it out with HTML comments), then that View might throw 2 JavaScript errors in the console when loaded on the front-end.

The first error in question is:

  • Uncaught TypeError: Cannot read property ‘submit’ of undefined in …/wp-views/embedded/res/js/wpv-pagination-embedded.js

If automatic AJAX Pagination is used, you will also see:

  • Uncaught TypeError: Cannot read property ‘trigger_pagination’ of undefined in …/wp-views/embedded/res/js/wpv-pagination-embedded.js

Workaround

Add the wpv-filter-meta-html shortcode back to the Views Output Editor.

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>