Post by ruwantha20 » Fri Jan 10, 2025 5:41 pm

When I Edit and Save a product Forbidden Messaeg Appear not save any changes.

Newbie

Posts

Joined
Fri Jan 10, 2025 5:39 pm


Post by OSWorX » Fri Jan 10, 2025 9:40 pm

ruwantha20 wrote:
Fri Jan 10, 2025 5:41 pm
When I Edit and Save a product Forbidden Messaeg Appear not save any changes.
Hello,

it's your first post here, the more you should read that because unless you can provide some details, nobody will be able to help you here.
Please read the Forum Rules before proceeding.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Mon Jan 13, 2025 9:06 pm

ruwantha20 wrote:
Fri Jan 10, 2025 5:41 pm
When I Edit and Save a product Forbidden Messaeg Appear not save any changes.
1. As above read the forum rules.
2. Use some common sense - do you think we're telepathic?
3. It's probably ModSecurity, Immunify360, or some other security software so get your host to disable those.

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


User avatar
Legendary Member

Posts

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

Post by sedangroup » Tue Jan 14, 2025 7:52 am

The "Forbidden" message when editing and saving a product in OpenCart is often caused by server security rules or misconfigured permissions.

Here are the steps to resolve it:

Check Security Rules
Ask your host to review whether ModSecurity, Imunify360, or similar tools are blocking the request.

If so, request them to whitelist the rule or temporarily disable ModSecurity to test.
Verify File Permissions
Ensure all OpenCart directories are set to 755 and files to 644.
Test PHP Configuration
Increase post_max_size and max_input_vars in your PHP configuration to handle larger data.

Example:

Code: Select all

post_max_size = 32M
max_input_vars = 5000
After making changes, restart your server for them to take effect.
Replace .htaccess
Replace your .htaccess with the default OpenCart .htaccess file to rule out rule conflicts.

Example:

Code: Select all

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]
</IfModule>
Review Logs
Check the server error logs and OpenCart error logs for specific details about the error.

OpenCart logs can be found under:
System → Maintenance → Error Logs
Debug by Disabling Extensions
Temporarily disable any third-party extensions related to products or admin functionality.

These extensions might interfere with the request, so testing with them disabled can help pinpoint the issue.

Newbie

Posts

Joined
Tue Jan 14, 2025 7:11 am
Who is online

Users browsing this forum: No registered users and 15 guests