[SOLVED] 404 Error on all Admin Content Pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mr.bacan

[SOLVED] 404 Error on all Admin Content Pages

Post by mr.bacan »

Hi, I've just upgraded to the latest CMSMS Version 1.12.1 from a previous working installation. Everything looks fine on the front end and even on the admin side, the issue comes when I try to edit or create a new page, I get a 404 error, no matter which page I try to edit. Modules seem to be working fine though, I've had no issues accessing them.

What I've only tried is to:
* Clear the cache
* Replace the .htaccess file from one downloaded at cmsmadesimple.org

Obviously none of this worked. Here's my system details:
----------------------------------------------
Cms Version: 1.12.1

Installed Modules:

CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.7
ModuleManager: 1.5.8
News: 2.15.2
nuSOAP: 1.0.2
Printing: 1.1.2
Search: 1.7.13
ThemeManager: 1.1.8
TinyMCE: 2.9.12
Showtime: 3.4
FormBuilder: 0.8.1.1
CGSimpleSmarty: 1.9.1
CGExtensions: 1.49.7
Gallery: 2.0.2
SiteMapMadeSimple: 1.2.8
Captcha: 0.5.2
youtubeplayer: 1.3
Products: 2.24.2
CGFeedMaker: 1.0.20
FrontEndUsers: 1.30.4
CustomContent: 1.10
CMSPrinting: 1.0.5
MicroTiny: 1.2.9
JQueryTools: 1.3.6
CGSmartImage: 1.20.2
AdminIPLock: 1.0

Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.4.43
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
----------------------------------------------
Thanks in advance for any help on this.
Last edited by mr.bacan on Fri Sep 11, 2015 2:01 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: 404 Error on all Admin Content Pages

Post by calguy1000 »

if this only happens on add/edit content then I would bet it's mod_security rearing it's ugly head.

Talk to your host, get mod_security disabled.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
mr.bacan

Re: 404 Error on all Admin Content Pages

Post by mr.bacan »

calguy1000 wrote:if this only happens on add/edit content then I would bet it's mod_security rearing it's ugly head.

Talk to your host, get mod_security disabled.
Hi Calguy, thanks for your response.
I talked to my host and they said "I can't disable mod_security, but I can white list things that are hitting mod_security. I have white listed everything except obvious hacking attempts."

After that response I tried again and now I can view/edit some pages, other keep showing the 404 error, and I still can't create a new content.

I've cleaned the cache several times (CMSMS and Browser) but the issue is still there. Is there anything else that I should try?, because I've been using previous CMSMS installations without any complaints.

Thanks again for your help.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: 404 Error on all Admin Content Pages

Post by velden »

If mod_security still kicks in it usually logs that in the error log of the web server (apache?). That should give you a hint of what triggers the blocking of the request.

You could then ask the provider to whitelist such requests too.
mr.bacan

[SOLVED] 404 Error on all Admin Content Pages

Post by mr.bacan »

Apparently the issue was with the {cms_stylesheet} tag. When I upgraded to CMSMS 1.12.1 there were a couple of templates still using the {stylesheet} tag. Since those templates were disabled but not deleted, we never faced that error, now when we enabled them and tried to access pages associated with them, the error showed up.

Now we changed all {stylesheet} tags to {cms_stylesheet} and now everything seems to be working, but mod_security definitely played its part, because when my host disabled it, many pages started to show up.

Thanks Calguy and Velden for your help.
Locked

Return to “CMSMS Core”