Skip Navigation

[Resuelto] Jacascript errors

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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: 

Este tema contiene 13 respuestas, tiene 2 mensajes.

Última actualización por Shane hace 5 años.

Asistido por: Shane.

Autor
Mensajes
#1382443

I saw https://toolset.com/errata/possible-javascript-errors-in-the-console-when-using-a-paginated-view/ but this does not appear to be my issue.

I am trying to:
Run some JavaScript code on my page. It is not being executed because of JS errors on the page.

Link to a page where the issue can be seen:
enlace oculto

I expected to see:
No errors in the console.

Instead, I got:
Cannot read property 'page' of undefined
at WPViews.ViewPagination.self.init_paged_view (wpv-pagination-embedded.js?ver=2.9.4:3135)
and
Cannot read property 'pause_on_hover' of undefined
at HTMLDivElement.<anonymous> (wpv-pagination-embedded.js?ver=2.9.4:3353)

#1382593

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

Thank you for getting in touch.

Could you let me know when did this issue started to occur?

Thanks,
Shane

#1382599

Well, I noticed it several days ago when I added a hidden Formidable form in the footer. Formidable support pointed out the issue when the form could not be submitted via AJAX.

I've tried removing the form but the same JS errors persist.

Since I first encountered the issues I've updated WP and the Toolset plugins and the issue persisted.

#1382601

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

Thank you for the information.

What happens if you create a new view and then add it to the page and remove the original one from this page.

Does the issue still persist?

It could be a case where the view might've been corrupted. If this does not help please let me know.

Thanks,
Shane

#1382617

Unfortunately that did not resolve the issue.

#1383315

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

WOuld you mind allowing me to have admin access to the site ?

Also would you mind if I took a copy of the site for testing here locally so that I can identify the issue ?

Thanks,
Shane

#1384253

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

Thank you for the credentials.

I tried logging into the site but i'm getting an unknown username error.

Could you try them on your end and let me know if they work for you ?

Thanks,
Shane

#1384383

My error. I had added you to production. The credentials I had provided work now.

#1384619

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

Thank you I was able to log in now.

Could you let me know me know which view is giving the issue ?

Thanks,
Shane

#1384629

It's "Home: Projekte".
enlace oculto

#1386285

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

I've reported this to our 2nd tier supporters for further debugging.

Thanks,
Shane

#1387349

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

I actually did some more testing on this one.

I realised that you were using a custom theme. This is what seems to be causing the issue. If you switch to another default theme you will notice that this issue is no longer there.

Were there any recent Javascript addition to the site that could be triggering this ?

Please let me know.

Thanks,
Shane

#1387377

Thanks for taking another look.

There have been only content updates in the last 18 months. No JS changes.

On staging (which I gave you access to) we did add a Formidable form in a lightbox. However, the same errors occur on live which has been the same for a long time.

I tried it with another theme and got no errors. I also noted however that the default theme does not show the View that's on home at all so I wasn't surprised that there was no error. Did you switch themes and then place the views on the page?

#1387387

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Chris,

I did switch the theme in the duplicator copy i took and placed the view on a different page in order for me to see what will happen and there were no JS errors being loaded in the console.