Skip Navigation

[Resolved] Ajax pagination taxonomy view with nested post view doesn't work

This support ticket is created 5 years, 3 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 14 replies, has 2 voices.

Last updated by Max 4 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1315379

Max

I am trying to:
Making ajax pagination work in a taxonomy view. Perhaps this is a bug.
I set up a demo site on discower-wp. Please look at this

Link to a page where the issue can be seen:
hidden link

I expected to see:
working pagination

Instead, I got:
No items found on page 2.

Perhaps the problem appears because the id of the current page is replaced by the views id when paginating completed. I found this when I tried to display the id of the current page in the taxonomy view.

#1315389

Nigel
Supporter

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

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

It sounds like you are affected by this known issue: https://toolset.com/errata/views-shortcodes-return-empty-output-after-ajax-pagination-triggering-in-a-taxonomy-view/

As indicated in that document, for the moment the workaround is to not use a template for the loop output but add the markup for the output directly between the wpv-loop tags of the Loop Editor.

Is that the issue with you?

#1315391

Max

Hi Nigel
I saw this problem, but I don’t use the content template..

#1315415

Nigel
Supporter

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

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

OK, can I get credentials for that demo site so I can see exactly what you've done?

#1315513

Nigel
Supporter

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

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

Thanks. I saw the issue and was able to reproduce it on my own test site. I tried various tests to see if I could pin down or work around the problem but could not (aside from paginating via page reload), and so I'm passing a copy of my test site to my second tier colleagues to investigate further, and I'll get back to when I have news from them.

#1315517

Max

Thanks

#1321935

Max

Hi Nigel
Is there any news?

#1321969

Nigel
Supporter

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

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

I can see from the internal tickets that my colleague in second tier is working on this at this very moment, so I should be able to provide some news soon (whatever that is).

#1380061

Max

Checking the status of the issue

#1380139

Nigel
Supporter

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

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

Sorry, I don't have any update for you.

The debug work was completed to identify the source of the issue, but no fix has yet been proposed.

I've left a note for the developers to say that you are asking about progress.

In the meantime you will need to avoid ajax pagination and use page reload.

#1380181

Max

Thanks for the quick response.
Unfortunately, I need to continue to display the results of the previous page, so pagination with a reload is not suitable. In this case, I use pagination only to break the view in order to optimize page loading speed.
Is there any hope that this will be fixed someday?
Perhaps after the release of Views 3.0, when there will be time to fix old problems.

#1380217

Nigel
Supporter

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

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

You are right that Views 3.0 is consuming a lot of developer resources at the moment, and I am hopeful that we will be able to do a sweep of outstanding issues when that milestone is reached.

I'm not in a position to say when it might be fixed, it shouldn't be a big issue according to the debugging, but hopefully it will receive some attention after the Views update.

#1475163

Nigel
Supporter

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

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

The developers have fixed the issue, and that fix will be included in the next Views update (likely in a week or two).

In the meantime the erratum has been updated with a patch you can apply: https://toolset.com/errata/ajax-pagination-of-taxonomy-views-can-provoke-no-items-found-in-nested-post-views-filtered-by-post-relationships-and-taxonomy/

#1494217

Nigel
Supporter

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

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

Just to let you know Views 3.1 is now available from toolset.com/account/downloads and includes this fix.

(From the plugin installer page, if you don't see the update, try clicking the Check for Updates button.)

#1494635

Max

My issue is resolved now.
Thank you guys!