Skip Navigation

[Resolved] Pagination Error

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 5 years, 12 months ago.

Assisted by: Christian Cox.

Author
Posts
#625981
Screen Shot 2018-03-18 at 9.40.28 AM.png

I am trying to: My pagination recently stopped working and I'm trying to figure out how to fix this issue. I would imagine it is an issue with the theme, but I am unable to disable the theme or any of the plugins as we don't have a test site. Is the below error familiar to you? Do you have any suggestions or ideas on how to patch it?

Link to a page where the issue can be seen: I don't have one, but I can create a test page to show you if necessary. I have included a screenshot. The javascript error pops up if you click on "next" or on one of the dots. It happens whether I'm using AJAX or refreshing to a new page. It happens on every page of the site, regardless of format.

I expected to see: a new page

Instead, I got: This javascript error
wpv-pagination-embedded.js?ver=2.5.2:3004 Uncaught TypeError: Cannot read property 'page' of undefined
at WPViews.ViewPagination.self.init_paged_view (wpv-pagination-embedded.js?ver=2.5.2:3004)
at WPViews.ViewPagination.self.get_paged_view (wpv-pagination-embedded.js?ver=2.5.2:3035)
at WPViews.ViewPagination.self.trigger_pagination (wpv-pagination-embedded.js?ver=2.5.2:1867)
at HTMLAnchorElement.<anonymous> (wpv-pagination-embedded.js?ver=2.5.2:2180)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)

#626012

Hi, sometimes this indicates a plugin or theme conflict, and other times it indicates some custom code added in the View's Filter Editor JavaScript area that is causing a problem. Have you added any custom JavaScript code to this View, or your theme? Specifically any code using the JS frontend events button? Edit the View, in the Pagination options section click "Advanced Settings" and look for any JS code here that might be causing a problem. Copy and paste that here for me to review.

Have you added any custom CSS that styles these buttons, or any extra markup to support styles on these buttons? Please copy and paste that here for me to review.

If this doesn't seem to be the problem, we need to take a closer look. You can create a test page, but it would really be best to create a test environment where I can enable and disable plugins and themes as needed. If you provide login credentials for me, I can install the Duplicator Pro plugin and create a clone of your site, so I can install it locally and run those tests without disturbing your production environment. I have activated private reply fields here in case you want to share those credentials.

#627852

We don't have any custom CSS or javascript in the view that might interfere with the pagination. We tried disabling all other plugins and this didn't help, but we cannot change the theme as this is a live site. One strange thing that we found: if we try to use the view through Appearance->Customize on the admin page, we can get the pagination to work, but the javascript error still shows up.

#628521

Okay at this point I would need to make a copy of your site so I can continue running tests without affecting your live site. The best way to do this is to let me log in and add a plugin called Duplicator Pro. I will use that to create a copy of your site that I can download and work with locally. If that's okay with you, please provide login credentials here. If not, let me know how you would like to proceed.

#631626

Sorry, I'm a bit lost. Can you give me specific instructions on how to find the problem pagination on your site? I was able to install the clone but it's not obvious how to find the pagination problem. Is there a specific User account I should use? Where should I go on the front-end once I'm logged in?

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.