[Closed] Jacascript errors

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.

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by Shane 3 weeks, 2 days ago.

Assigned support staff: Shane.

Author
Posts
#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:
hidden link

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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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".
hidden link

#1386285

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Chris,

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

Thanks,
Shane

#1387349

Shane
Supporter

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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.

The topic ‘[Closed] Jacascript errors’ is closed to new replies.