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