Post by DesignCart » Sat Nov 19, 2022 12:36 am

Hello, I'm using Opencart 3.0.3.8 modified by IP-CAM, which runs on PHP 8.1. The shop works fine. However, when https is enabled it falls into a redirect loop. The htaccess file obviously doesn't have any redirects. The administration panel on https works fine. Has anyone had this problem? Anyone know how to solve it?
Last edited by DesignCart on Mon Nov 21, 2022 10:57 pm, edited 1 time in total.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by IP_CAM » Sat Nov 19, 2022 12:41 am

Just to mention it, this Version has not been modified by me, I just linked it from Condor2 on my Github Pages. ;)

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by paulfeakins » Mon Nov 21, 2022 6:16 pm

DesignCart wrote:
Sat Nov 19, 2022 12:36 am
Hello, I'm using Opencart 3.0.3.8 modified by IP-CAM, which runs on PHP 8.1. The shop works fine. However, when https is enabled it falls into a redirect loop. The htaccess file obviously doesn't have any redirects. The administration panel on https works fine. Has anyone had this problem? Anyone know how to solve it?
Well you'll need to give us a lot more information than that. What URLs are in your config files? Are you using CloudFlare? What other things might be installed that redirect users? Etc.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by DesignCart » Mon Nov 21, 2022 7:43 pm

Thanks for reply very much.

I checked few files and I find line wich makes problems.
It is in system/framework.php
line: $route->dispatch(new Action($config->get('action_router')), new Action($config->get('action_error')));

What is this line responsible for?

And it problem I see only on https mode, ofcourse in config file urls in https too.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by paulfeakins » Mon Nov 21, 2022 8:57 pm

I'm really not sure that line is the problem.

Did you see my questions?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by DesignCart » Mon Nov 21, 2022 9:17 pm

What URLs are in your config files? https://pieknegodnia.pl/
Are you using CloudFlare? No

I do not use any extensions that redirect users. When I give the exit('text') function before the mentioned line ($route->dispatch...) the text displays. When I give after that line the browser returns an error about a redirect loop. The problem only occurs on https.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by DesignCart » Mon Nov 21, 2022 9:24 pm

I am constantly looking for a solution and testing. It turns out that sub-pages on https work. The problem is only with the homepage. What could it be?

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by DesignCart » Mon Nov 21, 2022 9:45 pm

I'm sorry I finded extension wchich make redirect.

The code activated after checking for active https:
if ($this->request->server['HTTPS']) {
therefore only on https there was a redirect loop.

Thank you for your help, thank you for your involvement.
You guys are the best and great.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by paulfeakins » Mon Nov 21, 2022 10:02 pm

DesignCart wrote:
Mon Nov 21, 2022 9:45 pm
I'm sorry I finded extension wchich make redirect.
Thought it would be ;)

Please add [SOLVED] to the start of the post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Mon Nov 21, 2022 11:44 pm

DesignCart wrote:
Mon Nov 21, 2022 9:45 pm
I'm sorry I finded extension wchich make redirect.

The code activated after checking for active https:
if ($this->request->server['HTTPS']) {
therefore only on https there was a redirect loop.

Thank you for your help, thank you for your involvement.
You guys are the best and great.
.htaccess and config.php file configuration issues.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Tue Nov 22, 2022 12:50 am

straightlight wrote:
Mon Nov 21, 2022 11:44 pm
.htaccess and config.php file configuration issues.
The OP just said he found the issue and it wasn't that.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Tue Nov 22, 2022 1:04 am

paulfeakins wrote:
Tue Nov 22, 2022 12:50 am
straightlight wrote:
Mon Nov 21, 2022 11:44 pm
.htaccess and config.php file configuration issues.
The OP just said he found the issue and it wasn't that.
Forcing https to the homepage is not the issue. However, I will take his word on it the fact he mentioned the issue was resolved for his case.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Amazon [Bot], Semrush [Bot] and 513 guests