Post by dbrooksuk » Tue Jan 14, 2025 7:36 pm

I've just migrated my working website to another server (Hostinger) but I am now getting a FORBIDDEN messages on certain parts of the admin section. The website appears to work and I can log into admin and modify products etc but on certain parts of the admin section, for example if I try to take the website out of Maintenance mode, I get a FORBIDDEN message.

So far I have checked permissions (755 and 644), bypassed htaccess (just in case), re-uploaded a working backup from previous host, imported the database again, checked config files, checked error logs but so far no luck.

I have trawled the forums but I cannot find anything similar occuring so hence a new post

Any suggestions gratefully received.

Thank you

Opencart Overclocked, basically 1.5.6. on steroids
PHP 7.4

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by ADD Creative » Tue Jan 14, 2025 7:58 pm

Check if your host is using ModSecurity of something similar.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by dbrooksuk » Tue Jan 14, 2025 8:53 pm

I'll look into both thank you

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by dbrooksuk » Tue Jan 14, 2025 9:12 pm

The hosting provider has MOD on the server and has given me the following code to add to htaccess to disable it:

SecFilterEngine Off
SecFilterScanPOST Off

which I have done but I still get the FORBIDDEN error

I've also checked and they also they support FollowSymlinks - The shop is working with SEO as I can view it when logged into admin

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by johnp » Fri Jan 17, 2025 12:55 am

If you get stuck you could put a clean version of Opencart in a sub folder and use it to get access to the main site and debug it. If you get it working ok you could always switch admin folders and adjust the admin/config.php file.
Last edited by johnp on Fri Jan 17, 2025 5:39 am, edited 1 time in total.

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 dbrooksuk » Fri Jan 17, 2025 3:28 am

Thank you.

I'll give that a go thank you. I had wondered if it could be the database so I'm going to create a 2nd database and import an older backup, connect to that and see what results I get.

I find the whole thing rather weird. From a working site to only certain parts of the admin section not working. I can alter categories and products but I can't save settings from the inbuilt html module or save anything in the settings section so I'm currently locked in maintenance mode.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by dbrooksuk » Fri Jan 17, 2025 8:26 pm

Well I can confirm it doesn't appear to be the database - same FORBIDDEN message with older backup imported. Might try a completely blank database from a fresh install next.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by ADD Creative » Sat Jan 18, 2025 12:10 am

If you are still getting HTTP 403 Forbidden errors you need to contact your host. OpenCart doesn't generate them.

If you are getting some other Forbidden message, you would be best to post more details such as the exact URL and what form the message takes.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by dbrooksuk » Mon Jan 20, 2025 11:24 pm

Well I can confirm the FORBIDDEN message I am receiving is caused by something within the OC_Settings table within the database, so partly solved. So it looks like I need to work through my settings to restore the shop. Thank you for any suggestions.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm
Who is online

Users browsing this forum: No registered users and 10 guests