Pagination is not working on Category pages

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 1 day ago #364787

-- url of the page with the problem -- : www.militaryplaques.com/products/plaques/air-force-plaques
-- HikaShop version -- : 5.1.2
-- Joomla version -- : 5.2.2
-- PHP version -- : 8.2.26
-- Browser(s) name and version -- : Chrome Version 131.0.6778.86 (Official Build) (64-bit)
-- Error-message(debug-mod must be tuned on) -- : No error messages

Pagination is not working. When the next page is requested the URL updates but the page does not. We are not sure when this problem arose but we do know it had been working a month ago.

We have been trying to find pagination.php in the R-Spring template but it's not in the location that you have indicated in old tickets.

Note we have a ticket with ECA Templates for with this as well.

Note that the JCH optimize and Joomla caching is switched off/disabled at the moment to help with debugging

Cheers

John

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
2 weeks 1 day ago #364798

Hi,

I would recommend temporarily switching to the default template of Joomla to see if you have the same issue with the pagination.

If yes, then we'll need a backend and a FTP access in order to check on the situation.
If no, then its either coming from the pagination.php file of the template, as you guessed, or a view override file under the templates/YOU_TEMPLATE/html/com_hikashop/product/ folder. So you can check if you have this folder, and if so, you can try renaming it via FTP to disable all the overrides for the product pages, including the listing. That way, you can check if you still have the issue, which could confirm or not that the issue comes from one of the files in there.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 1 day ago #364803

HI Thanks for the insight.

I searched the Joomla files and found:

/web/militaryplaques.com/public_html/layouts/joomla/pagination
/web/militaryplaques.com/public_html/libraries/src/Pagination
/web/militaryplaques.com/public_html/modules/mod_ebajaxsearch/Pagination.php
/web/militaryplaques.com/public_html/libraries/src/Pagination/Pagination.php
/web/militaryplaques.com/public_html/libraries/src/Pagination/PaginationObject.php
/web/militaryplaques.com/public_html/media/syw/js/pagination
/web/militaryplaques.com/public_html/media/vendor/bootstrap/scss/_pagination.scss
/web/militaryplaques.com/public_html/media/vendor/bootstrap/scss/mixins/_pagination.scss

Renaming the folders and or files had no effect or broke the site.

Changing the RCA Template (R-Spring) folder name vor the Cassopia template folder name (just trying :-))

templates/YOU_TEMPLATE/html/com_hikashop/product/

Had no effect.

We did think that this was a JCH optimize issue but as that is disabled and Joomla caching is off, we are at a bit of a loss

No respionse from RCA Templates so far.

Error in console is for the first category page is:

Uncaught TypeError: jQuery(...).attr(...) is undefined
<anonymous> www.militaryplaques.com/products/plaques/air-force-plaques:5480
air-force-plaques:5480:71
<anonymous> www.militaryplaques.com/products/plaques/air-force-plaques:5480

Subsequent pages are:

Uncaught TypeError: jQuery(...).attr(...) is undefined
<anonymous> www.militaryplaques.com/products/plaques...it-28/page-2-28:5478

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 1 day ago #364805

Additional Pagination files:

/web/militaryplaques.com/public_html/plugins/system/forsef/platform/overrides/pagination
/web/militaryplaques.com/public_html/plugins/system/forsef/platform/overrides/pagination/pagination.php
/web/militaryplaques.com/public_html/plugins/system/forsef/platform/overrides/pagination/j4-512/Pagination.php
/web/militaryplaques.com/public_html/media/templates/site/cassiopeia/scss/vendor/bootstrap/_pagination.scss
/web/militaryplaques.com/public_html/plugins/system/forsef/platform/overrides/pagination/default/Pagination.php
/web/militaryplaques.com/public_html/media/templates/administrator/atum/scss/vendor/bootstrap/_pagination.scss
/web/militaryplaques.com/public_html/plugins/system/forsef/vendor/weeblr/forsef/config/pagination.php
/web/militaryplaques.com/public_html/plugins/system/forsef/platform/overrides/pagination/j3/Pagination.php
/web/militaryplaques.com/public_html/media/gantry5/engines/nucleus/scss/vendor/bootstrap5/_pagination.scss
/web/militaryplaques.com/public_html/media/gantry5/engines/nucleus/scss/vendor/bootstrap5/mixins/_pagination.scss
/web/militaryplaques.com/public_html/administrator/components/com_hikashop/helpers/pagination.php
/web/militaryplaques.com/public_html/administrator/components/com_hikashop/types/pagination.php
/web/militaryplaques.com/public_html/administrator/components/com_hikashop/types/slide_pagination.php

I haven't tried disabling Gantry or admin entries. For the 4SEF I renamed the OVERRIDES folder but error persists.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 1 day ago #364806

Changing to Cassiopeia - error persists

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 23 hours ago #364810

Has a response from RCA Themes:

"I can see the issue. It seems the URLs are updating according to your pagination, but the products are not.

Please contact HikaShop support for assistance."

Which leads us to 4SEF as more of a suspect?

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
2 weeks 20 hours ago #364808

Hi,

Indeed, it might be linked to 4SEF. Could you provide a backend and a FTP access in order to check into things deeper ?

Last edit: 2 weeks 22 hours ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 10 hours ago #364841

How do I provide the details privately?

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
2 weeks 3 hours ago #364842

Hi,

You can send them via our contact form:
www.hikashop.com/support/contact-us.html
Please make sure you include a link to this thread for reference.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
2 weeks 57 minutes ago #364847

Hi

Thanks - details sent.

Weebler posted this just now:

OK, just noticed something:
/products/plaques/air-force-plaques/limit-28/page-2-28
This is an odd URL to have been produced, with the "limit-28" bit. I don't remember Hikashop generating URLs that way.
Best regards
Yannick Gaultier

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
1 week 6 days ago #364858

Hi,

Thanks for the accesses but I was not able to access the backend as you didn't provide the username and password for it.

Now, I do see the correct URLs in the pagination of your pages at first:
/products/desk-name-plates/army-desk-name-plates?limitstart=20&limit=20
But when I click on the link, I get redirected to:
/products/desk-name-plates/army-desk-name-plates/limit-20/page-2-20
And this doesn't work.
So HikaShop does generate the proper URLs.
I think there might be something wrong in 4SEF, or a system plugin which sees the limitstart and limit parameters in the URL and tries to SEF them for some reason and redirects to the wrongly converted URL.
But I'm not sure what it could be. Maybe Yannick would have a clue with the information above ?

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
1 week 6 days ago #364866

Apologies, Joomla SEF was 'on' and should have been 'off' as 4SEF is active.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
1 week 6 days ago #364867

Hi,

Well, now the pagination works fine on your website as far as I can see.
So it seems this was the problem all along no ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum