We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Randomly having 403 Errors while saving to the DB

How Do I?

Andrei Curelaru's avatar
Andrei Curelaru
6 posts
one month ago
Andrei Curelaru's avatar Andrei Curelaru

Hi, After years, i’m back into the EE boat with a project almost finised, …but!

When updating entries from the CP or the frontend, or sometimes when saving changes to the fields or channels, I’m randomly blocked by a ‘403 Error - Not allowed to perform that action’. What could that come from?

I found some previous forum threads about, but they were all closed/locked by the admins, so still have no clue. If something was really wrong it would be 403 on each request, instead of praying each time I click Save 😊

Was about to make the content editable on the frontend, but have to roll back and put everything in templates as I can edit them on my machine and put them online without attempting to “save” in the process.

       
Rob Allen's avatar
Rob Allen
3,013 posts
one month ago
Rob Allen's avatar Rob Allen

That sounds like a Mod Security issue as it’s seemingly random. Have a look at the server logs to see if any Mod_Sec rules are being triggered when you save and get the error. Disable any offending rules then re-test - you may need to disable several rules. If you don’t have access to the logs ask your host to have a look and disable any rules they find that have been triggered.

       
Andrei Curelaru's avatar
Andrei Curelaru
6 posts
one month ago
Andrei Curelaru's avatar Andrei Curelaru

Thanks for your reply, I will contact the hosting company.

For the moment it’s a blank install, I don’t even placed the .htaccess root file to remove the index.php

       
vw000's avatar
vw000
473 posts
one month ago
vw000's avatar vw000

403 means access denied by a firewall, like Rob said, it’s likely you have Mod Security enabled, and their rules are too strict. You can either whitelist the rules manually or ask your host to completely disable mod security for your site.

If they use normal rules I don’t think it should cause any triggering. Check your web server logs, and it should tell you what is causing the 403 error.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.