*

jkid

  • **
  • 6 posts
Pagination on search page not working
« on: June 26, 2025, 04:36:50 PM »
Osclass v8.3.0

In search page the pagination didn't work.. if I press page 2, 3 or 4 there is only content from page 1 is showing.. the contents didn't change as it should..

Please check it out:

localtaskgigs.com/search/pn,2
 
Thanks

*

MB Themes

Re: Pagination on search page not working
« Reply #1 on: June 27, 2025, 01:33:40 PM »
Loooks like you have something wrong there.
Try to reinstall osclass or test with default theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

jkid

  • **
  • 6 posts
Re: Pagination on search page not working
« Reply #2 on: June 27, 2025, 01:53:40 PM »
I think it also doesn't work on osclass demo site :
demo.osclasspoint.com/en/search/pn,2
« Last Edit: June 27, 2025, 01:57:40 PM by jkid »

*

webcity

  • *****
  • 282 posts
Re: Pagination on search page not working
« Reply #3 on: June 27, 2025, 03:38:45 PM »
I had the same problem. I had to disable APCu cache to resolve the problem. It works OK now but without the benefits of the APCu cache.

*

MB Themes

Re: Pagination on search page not working
« Reply #4 on: June 27, 2025, 05:52:50 PM »
I could reproduce but after minute went back to normal.
That sounds like query cache issue (memcache, apcu), maybe cache key does not include pagination/page number...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Pagination on search page not working
« Reply #5 on: June 27, 2025, 06:39:24 PM »
Try this please.
Go to oc-includes/osclass/controller/search.php

Find line:
Code: [Select]
    $key = md5(osc_base_url() . $this->mSearch->toJson(false, false, false));

Update it to:
Code: [Select]
    $key = md5(osc_base_url() . $this->mSearch->toJson(false, false, false) . $p_iPage . 'x' . $p_iPageSize);

Let me know ;)
« Last Edit: June 27, 2025, 07:33:24 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

jkid

  • **
  • 6 posts
Re: Pagination on search page not working
« Reply #6 on: June 27, 2025, 11:41:11 PM »
Thank you now it working..  :D

*

webcity

  • *****
  • 282 posts
Re: Pagination on search page not working
« Reply #7 on: June 28, 2025, 06:08:07 AM »
Thanks! That solved the problem and APCu is working great again on search pages :-)

*

MB Themes

Re: Pagination on search page not working
« Reply #8 on: June 28, 2025, 10:11:36 AM »
Great  :)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots