Cannot edit content block "Page Not Found No page could be found at this address. Back to Home."

Permalink
I've tried searching through the forum, but I can't seem to find a solid answer. I'm having a peculiar problem where I sometimes can't edit 'content' blocks. I get a "Page Not Found No page could be found at this address. Back to Home." error which I try to save edits. This happens maybe 50-75% of the time and sometimes I can get around it by doing random changes in the content. It seems unpredictable.

I'm having trouble finding the cause because it's hard to say exactly when it started since it doesn't always happen. I feel like it started around the time I set up htaccess to ignore my subdirectory for the URLs. I have Concrete5 installed in a 'cms' folder on my server, but I don't want that in my URL. But honestly, this is just a guess about when the trouble started.

I attached the contents of my htaccess files.

1 Attachment

 
TaylorG replied on at Permalink Reply
I've been searching for a resolution to this problem. I found some threads mentioning somewhat similar problems that suggested modifying or turning off mod_pagespeed. So I tried adding these bits of code to my htaccess file, one at a time, removing one and adding another.

1.
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>


2.
ModPagespeedDisableFilters trim_urls


3.
ModPagespeed off


But all of these make my site entirely stop working.
photom replied on at Permalink Reply
TaylorG how did you finally resolve this? I'm having very similar problems. Very frustrated.
TaylorG replied on at Permalink Reply
I have not yet resolved this problem. It's an occasional problem, so I have been able to work around it well enough for now, but it's extremely annoying. If anyone has any ideas, I would appreciate it.
webinstinct replied on at Permalink Reply
webinstinct
Hey guys. I ran into this too. I solved it by splitting a very long content block into multiple blocks. Theoretically, a content block should be able to hold unlimited content, but I think it was just a matter that we maxxed out the size it wanted.

For example, I know a GET request maxxes out at a certain character limit. Perhaps that form submits via GET and too much content doesn't allow all of the data go through, clouding the cID and therefore C5 doesn't know what to update...?

Just spitballing, but hope this helps.
AccountDisabled replied on at Permalink Reply
I whittled down a problem piece of content to two words which will reliably reproduce the error for me.

"select from"

Looks like an SQL query doesn't it! Maybe something is getting interpreted like an SQL query which is causing the issue.

The error will happen whether I put the text into a content or html block.

Would love to know if entering "select from" has the same effect for other people experiencing intermittent content saving issues.
chrismcmacken replied on at Permalink Reply
We had the same issue, any block that contained "select" and had "from" somewhere after it would break. The same occurred for "drop" and "table", after some debugging I found that the issue is caused by Apache's mod_security which has a rule to stop SQL Injection attacks. If this is the cause you should see these errors in the main apache log file at /usr/local/apache/logs/error_logs (path may vary depending on the os).

At this point you can either disable mod_security or whitelist the path where you are getting the error by application. Hopefully this saves someone else some time.
AccountDisabled replied on at Permalink Reply
Ah yes! That was it exactly. Had our server person tweak the mod_security rules and things started working again.

Thank you very much for posting this. :D