Hello,ruwantha20 wrote: ↑Fri Jan 10, 2025 5:41 pmWhen I Edit and Save a product Forbidden Messaeg Appear not save any changes.
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.
1. As above read the forum rules.ruwantha20 wrote: ↑Fri Jan 10, 2025 5:41 pmWhen I Edit and Save a product Forbidden Messaeg Appear not save any changes.
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
Legendary Member
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:
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:
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.
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
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>
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.
Who is online
Users browsing this forum: No registered users and 15 guests