Pagination Error
Posted
#5087
(In Topic #1026)
Had this one around for a wee while but hadn't gotten around to asking. Anyone experienced this bad boy:
100% recreatable on every page pagination is used. Sorry for the delay in reporting; it's been around for the last 5+ releases or so. I get it on a fresh (read: not yet mangled by me
Thanx!
Posted
Posted
Do you have an overridden template that is including AJAX_PAGINATION?
I think there was a bug with this a while back, but it was fixed.
Anything including the template should be passing a WRAPPER_ID, e.g.
Code
{+START,INCLUDE,AJAX_PAGINATION}
ALLOW_INFINITE_SCROLL=1
WRAPPER_ID={$GET,ajax_block_main_activities_wrapper}
{+END}
Posted
Code
{$GET%,wrapper_id}Code
{WRAPPER_ID%}
Posted
Sorry for the delay in replying, this got stuck too far down my todo list.
I'm not convinced there's an active bug here, I think I didn't communicate what I meant clearly enough.
Maybe this commit will clarify what has happened:
https://github.com/ocproducts/composr/commit/71c30fb108897aecb20eb310cbd3bfb516e5c14f
Before Jul 31, 2018, there was an issue whereby nested paginations would mess up, because we were setting IDs based on shared variables (creating a conflict). So I instead switched it to so each template would assign a template-specific ID.
Any of the changed templates overridden from an earlier patch would have lost compatibility at this point. I suspect you have one or more of them overridden.
The Tempcode that loads up AJAX_PAGINATION passes through WRAPPER_ID now, as used by the new version of that template.
Posted
Posted
Paul Flavel said
I know this is something that is affecting the themes i made, so will go through them all and update with the above. I will also include the instructions on how to manually fix them for those who have further customised their theme.
From “Post #5573”, 9th Oct 2019
Sorry for the inconvenience, thanks for doing that.
Posted
0 guests and 0 members have recently viewed this.
