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
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
Could be a mod_security issue, see also this forum post.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
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
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
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
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.
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.
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.
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.
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.
Who is online
Users browsing this forum: No registered users and 10 guests