Skip Navigation

[Resolved] Clicking prev/next link does nothing

This thread is resolved. Here is a description of the problem and solution.

Problem:
On a client site the pagination links did not work because of a JavaScript error on the page.

Solution:
It wasn't possible to trace the source of the error, but creating a new View with the same settings to replace the problem View worked.

This support ticket is created 6 years, 10 months ago. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by justinB-3 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#617191

I have added navigation buttons to the bottom of a blog page using the [wpv-pager-next-page] and [wpv-pager-prev-page] shortcodes. The links display on the screen fine and have what looks like the correct URL, but when I click them nothing happens.

You can see this issue at hidden link

This is the code for the page:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="Loop item in New blog"]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
<div class="post-nav">

    <li class="newer">[wpv-pager-next-page]OLDER ARTICLES[/wpv-pager-next-page]
    <li class="older">[wpv-pager-prev-page]NEWER ARTICLES[/wpv-pager-prev-page]

</div>
[wpv-layout-end]

#617320

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Justin

There is a JS error on the page when trying to use the pagination, something appears to be wrong with the set up, though I can't see from looking at the page and the code you showed above alone.

Can I take a look at the site myself to see how you have this?

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes.

#617937

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Justin

Do you have a staging version of the site that can be used for testing?

The set-up of your View looks fine, which leads me to suspect a conflict with another plugin or possibly your theme.

I would like to run a no-conflict test and disable all non-Toolset plugins and, if needs be, switch to twentyseventeen, but this looks like a live site.

If you don't have a staging site I'll need to take a copy of the site to install and test locally.

#617955

Sorry, we don't have one set up. If you can take a copy, that would be great.

#618169

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Justin

I took a copy, installed it locally, tested a no-conflict version of your site and the JS error with pagination was still present.

I tried deleting and re-installing Types and Views and that didn't help.

I have now escalated this so that it can be investigated more thoroughly, and I will get back to you as soon as there is something to report.

#621174

What's the status on this issue?

#621240

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Justin

My colleague couldn't identify the problem with this particular View but found that if he made a new View that was the same, same filters, same output etc. and used that it worked as expected.

Could you try the same?

#621808

You can close this ticket. Your recommendation worked. Thank you.