Friday, 12 February 2021 15:21

Solution for Pagination Bug w/ Joomla 3, K2, SH404SEF, T3 Framework

Written by 
Solution for Pagination Bug w/ Joomla 3, K2, SH404SEF, T3 Framework

I noticed recently that a handful of sites had broken pagination: clicking through "Page 1 - 2 - 3 - 4" at the bottom of my blog pages, for example, were leading to URL issues where it didn't matter if you clicked on Page 3 or page 4, both pages were linking to /page-2.html or similar.

This one is puzzling for me because at one point, this bug was identified in 2014:

/plugins/system/t3/includes/joomla3/pagination.php

Then this file started "firing" - even though the site is still Joomla 3:

/plugins/system/t3/includes/joomla4/pagination.php

Solution / Fix / Procedure:

1.  Disable that problem file by renaming it:

/plugins/system/t3/includes/joomla4/pagination.php

(sanity check: refresh the page and your pagination CSS styles will disappear)

 

2.  Add this template override file to your template directory, e.g:

/templates/ts3_base_blank/html/pagination.php

(see attachments for ZIP)

(sanity check: refresh the page and your pagination CSS styles will be back)

 

3.  Go into Components -> sh404sef -> URL's -> Filter/search by "page-" -> Delete with Duplicates

(sanity check: refresh the page and this will force sh404sef to rebuild those URL's... your pagination will work correctly now, too!)

 

 

Additional:
You might need to re-apply Step 1 after future updates to the T3 Framework plugin.

 

Read 199 times Last modified on Friday, 12 February 2021 15:38

Comments (0)

There are no comments posted here yet

Leave your comments

  1. Posting comment as a guest.
Attachments (0 / 3)
Share Your Location