Saltar navegación

[Resuelto] JS error with wpv-pagination-embedded [dot] js

This support ticket is created hace 5 años. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 4 años, 12 meses.

Asistido por: Minesh.

Autor
Mensajes
#1661767
Screenshot 2020-06-13 17.49.47.png

I have a View on this page: enlace oculto which shows posts of type "Deals" (which I display in a masonry layout).

The page shows a JS error (see attached image) which causes other scripts on the page to fail.

#1662719

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When I load the problem URL you shared: enlace oculto
- I can see the following JS errors on my browser's console.

autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:19 
Uncaught TypeError: Cannot read property 'sort' of undefined
    at WPViews.ViewSorting.self.get_sort_data (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:19)
    at WPViews.ViewFrontendUtils.self.get_updated_query_results (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:7)
    at WPViews.ViewPagination.self.pagination_preload_next_page (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:92)
    at WPViews.ViewPagination.self.pagination_preload_pages (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:91)
    at HTMLDivElement.<anonymous> (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:150)
    at Function.each (jquery.js:2)
    at n.fn.init.each (jquery.js:2)
    at WPViews.ViewPagination.self.init_preload_pages (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:150)
    at WPViews.ViewPagination.self.init (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:150)
    at new WPViews.ViewPagination (autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:151)
autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:150 Uncaught TypeError: Cannot read property 'trigger_pagination' of undefined
    at autoptimize_single_cf43ea9502fcc6b067140a9b624fec11.js:150

I can see the JS error is coming from autoptimize plugin. Have you tried disabling that plugin?