Post by rhorne » Mon Jan 31, 2022 7:34 pm

Morning everyone.

Opencart 2.3.0.2

Out of the blue this morning our store admin started redirecting to the store home page. So /admin redirects to /

To troubleshoot I have renamed the .htaccess file, restored a default starter .htaccess file and checked the config files and everything seems to be fine. What's puzzling is that I still had my admin session open from earlier and I can navigate around the admin just fine, but if I try to go to the admin home page I'm redirected.

Any ideas how I can troubleshoot this? Thanks

https://bit.ly/3ue7CEN

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by johnp » Mon Jan 31, 2022 8:10 pm

Looks like the front of your site is down too. What extensions are you running on your site?

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Mon Jan 31, 2022 8:20 pm

The front is loading now.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by rhorne » Mon Jan 31, 2022 10:31 pm

I restarted the server earlier so it may be that you were accessing mid-reboot which explains why it was down.

We have lots of extensions, which unfortunately I can't list because I can't get into the admin site to view them.

I've just restored a site backup from a month ago, however, and the issue still persists which tells me it has to be a setting saved in the DB (not restored), most likely with an extension. :|

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by JNeuhoff » Mon Jan 31, 2022 11:04 pm

I can see that your site does indeed do a 302 redirect from /admin to /. Check you '.htaccess' file, and check your admin/index.php, to make these files are not corrupted.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Majnoon » Mon Jan 31, 2022 11:15 pm

I am also having this issue from yesterday and my store front homepage is loading fine but when clicking on any other urls/Links (category/pages) it is redirecting to any other domain hosted on same server in sub account.
Have tried everything as OP also mentioned but no luck. Have open the ticket with hosting team and now waiting from there side. So far the update is it might be issue coming from SSL.

I have check the view source code and can see CROS POLICY error there. The site was ok from previous one year it start being wired only yesterday.

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by rhorne » Mon Jan 31, 2022 11:40 pm

I've also run the url through a tracing website and get the below, I just can't find out what's triggering the 301 and 302.

https://ibb.co/z82gxx1

Active Member

Posts

Joined
Wed Jan 18, 2012 3:07 am

Post by johnp » Mon Jan 31, 2022 11:45 pm

rhorne wrote:
Mon Jan 31, 2022 10:31 pm
We have lots of extensions, which unfortunately I can't list because I can't get into the admin site to view them.
Try putting a clean OC in a sub folder. Copy the root config.php file and admin config.php file with adjusted paths into the sub solder. You may be able to log in and disable third party extensions and narrow down the problem.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by Majnoon » Mon Jan 31, 2022 11:49 pm

johnp wrote:
Mon Jan 31, 2022 11:45 pm
Try putting a clean OC in a sub folder. Copy the root config.php file and admin config.php file with adjusted paths into the sub solder. You may be able to log in and disable third party extensions and narrow down the problem.
I have trying setting up even a new subdomain with clean OC installation and still got the same issue. Now i am running virus scanner on my server to see if it gets anything. Will update you guys as well

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by thekrotek » Tue Feb 01, 2022 3:11 pm

Not much places where redirect can be defined: .htaccess, some file or cPanel. If .htaccess in root folder looks good, check the parent folder as well (if any). Also check PHP files which execute first - index.php and header.php. Last but not least check the cPanel.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by paulfeakins » Tue Feb 01, 2022 11:15 pm

rhorne wrote:
Mon Jan 31, 2022 7:34 pm
Out of the blue this morning our store admin started redirecting to the store home page. So /admin redirects to /
Did your host change anything?

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


User avatar
Legendary Member
Online

Posts

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

Post by khnaz35 » Wed Feb 02, 2022 3:15 am

Check your server. Recently, there was Cpanel Version 100.04 out which had a bug for SSL and its make allot of website to behave strangly.
BTW bug is now fixed.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: Bing [Bot] and 6 guests