*

Jean Super

  • **
  • 12 posts
[Bug] Too many redirects
« on: September 07, 2023, 08:14:22 AM »
Hello,
Since I migrated my site from version 3.x (yes I've come a long way :) ) to 8.1.2, I've noticed several redirects (see attachment) to the same url only on the search page (/index.php?page=search&sCategory=117).

Have you already encountered this problem?

Thanks in advance

*

MB Themes

Re: [Bug] Too many redirects
« Reply #1 on: September 07, 2023, 09:07:20 AM »
I would say you have some invalid info in config.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jean Super

  • **
  • 12 posts
Re: [Bug] Too many redirects
« Reply #2 on: September 07, 2023, 09:40:31 AM »
I don't know what I've done wrong in config.php.

*

MB Themes

Re: [Bug] Too many redirects
« Reply #3 on: September 07, 2023, 12:19:33 PM »
That looks fine, usually relative path is wroong.
Maybe its jist your localhost
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: [Bug] Too many redirects
« Reply #4 on: September 07, 2023, 12:20:27 PM »
Actually /mysite/ might go to relative url
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jean Super

  • **
  • 12 posts
Re: [Bug] Too many redirects
« Reply #5 on: September 07, 2023, 12:35:09 PM »
I'm using mamp on my computer. So, if I remove /mysite/ I've homepage of my server. That's seems normal

*

Jean Super

  • **
  • 12 posts
Re: [Bug] Too many redirects
« Reply #6 on: September 07, 2023, 05:12:03 PM »
The issue is located in this file osclass-v8.1.2/oc-includes/osclass/controller/search.php arround line 224.
In fact, after first load $searchUri == $_base_url . $this->uri then we loop on same url ($this->redirectTo($searchUri, 301)).

When I comment this block, my website seems work.



*

MB Themes

Re: [Bug] Too many redirects
« Reply #7 on: September 07, 2023, 08:10:56 PM »
Well its there for a reason. Issue will be on your side, pretty sure about that.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jean Super

  • **
  • 12 posts
Re: [Bug] Too many redirects
« Reply #8 on: September 07, 2023, 10:06:09 PM »
I think but I'm struggling with issue. The only fix that I've today is to comment this section

*

MB Themes

Re: [Bug] Too many redirects
« Reply #9 on: September 11, 2023, 05:56:36 PM »
Its trying to use "better" url but condition is never satisfied.
Keep note and when you move to server you may try to enable.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots