<p>That's it. mod_security is on by default and a rule is getting triggered. Turned it off and now the entry can be modified and saved. Thank you Brad! </p>

CC BY-SA 3.0
2017-08-23T23:21:18.967Z
2017-08-23T23:21:18.967Z
user7150
<p>Recently moved site to a new server. </p>

<p>Attempting to edit a post created before migration fails. The edit page reloads with the changes removed. Note: 1) this happens for only SOME, but not ALL of entries in the same channel. 2) the entries that fail and those that succeed are set to use the same templates.</p>

<p>Utilities - Logs shows this error message:</p>

<p>Level     error</p>

<p>Category  exception.Craft\HttpException.404</p>

<p>Message   Craft\HttpException in 
  /home/method/craft/app/controllers/TemplatesController.php:72</p>

CC BY-SA 3.0
2017-08-22T19:00:23.980Z
So you're getting a 404 when saving an entry, but it only happens on _some_ entries in a particular section?
Brad Bell
CC BY-SA 3.0
2017-08-22T19:27:38.060Z
Well, I don't ever see a 404...the entry page just refreshes. The log is what shows the 404.  And yes, only some entries have this problem. Other ones act normally. I have only seen it in one section, but I haven't tested entry after entry in each one to try to find additional problems.
user7150
CC BY-SA 3.0
2017-08-22T19:34:18.107Z
Note that the published entry can be viewed on the web. Craft is blocking me from editing it.
user7150
CC BY-SA 3.0
2017-08-22T20:21:09.270Z
Do you have anything like Suhosin or mod_security installed on that box by chance?
Brad Bell
CC BY-SA 3.0
2017-08-23T00:43:10.843Z
That's it. mod_security is on by default and a rule is getting triggered. Turned it off and now the entry can be modified and saved.  Thank you Brad!
user7150
CC BY-SA 3.0
2017-08-23T02:27:03.950Z
mod_security strikes again!  Can you add that as an official answer in case it ends up helping someone in the future?
Brad Bell
<error-message>
Fixing Craft\HttpException Error
# Fixing Craft\HttpException Error

(Asked by: username_0 on 2017-08-22)

Recently moved site to a new server.

Attempting to edit a post created before migration fails. The edit page reloads with the changes removed. Note: 1) this happens for only SOME, but not ALL of entries in the same channel. 2) the entries that fail and those that succeed are set to use the same templates.

Utilities - Logs shows this error message:

Level error

Category exception.Craft\HttpException.404

Message Craft\HttpException in
/home/method/craft/app/controllers/TemplatesController.php:72

**Tags:** error-message

> **Comments:**
> **username_1**: So you're getting a 404 when saving an entry, but it only happens on _some_ entries in a particular section?  
> **username_0**: Well, I don't ever see a 404...the entry page just refreshes. The log is what shows the 404.  And yes, only some entries have this problem. Other ones act normally. I have only seen it in one section, but I haven't tested entry after entry in each one to try to find additional problems.  
> **username_0**: Note that the published entry can be viewed on the web. Craft is blocking me from editing it.  
> **username_1**: Do you have anything like Suhosin or mod_security installed on that box by chance?  
> **username_0**: That's it. mod_security is on by default and a rule is getting triggered. Turned it off and now the entry can be modified and saved.  Thank you Brad!  
> **username_1**: mod_security strikes again!  Can you add that as an official answer in case it ends up helping someone in the future?  

---

## 1 answers

### Answer by username_0 on 2017-08-23. Score: 2

That's it. mod\_security is on by default and a rule is getting triggered. Turned it off and now the entry can be modified and saved. Thank you Brad!


---

