"Page not found" when editing Tracking Code. It doesn't accept tag.

Permalink
Hi there

When adding a tracking code (Sitewide Settings -> Tracking code), I get "Page not found" error. For some reason it doesn't accept <script> tag. Simple text or comments <!-- text --> work fine though.

Concrete5 v. 5.4.0.5
PHP 5.3.29

Why is this happening and how to fix it?

There is an error in the error log:
PHP Notice: A feed could not be found athttp://www.concrete5.org/community/updates/news/feed... in /public_html/concrete/libraries/3rdparty/simplepie.php on line 1683
Not sure if related to the issue above??

Thanks

olgri
 
mesuva replied on at Permalink Best Answer Reply
mesuva
This sounds like 'Mod Security' is kicking in at the server level, preventing what it thinks is a malicious request.

You'll need to contact your host and ask them to check their mod security logs, and if they find anything that looks similar to the url used to paste the tracking code, ask them to whitelist the triggered rule.

99% of the time when you paste in some complex html/js and it returns an unexpected 404, it's because a mod security rule has been triggered.
olgri replied on at Permalink Reply
olgri
Thank you! Mod Security was at fault after all! :)