Page 1 of 1

[solved] Permission to editcss.php

Posted: Mon May 07, 2007 3:04 pm
by zeroslotm
Hi guys!
I'm new to CMS Made Simple and I've been looking for the solution to my problem everywhere... I'm trying to modify CSS of the theme that I'm using (andreas01) and when I try to save the changes that I've made in CSS (in Layout -> Stylesheets), I get the following error:
Forbidden
You don't have permission to access /admin/editcss.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
It's interesting that I can edit template (Layout - Templates - Edit template) and save it, but cannot save the modifications that have been made to CSS. Both files (editcss.php and edittemplate.php) have the same permissions.

Where is the problem?

Thank you very much !

Re: Permission to editcss.php

Posted: Mon May 07, 2007 3:19 pm
by tsw
check that you have permission to that file (755 for example)

and check server logs.

and check if you have mod_security enabled, mod_security has a bad habit of disallowing some changes..

Re: Permission to editcss.php

Posted: Mon May 07, 2007 3:35 pm
by zeroslotm
Well, I've tried the 755 and it still doesn't work.

As for mod_security, I must ask my web host because I don't have the direct access to server. I have one question...where is the CSS file of the template located on the server (normally you would find it smth like /cms_system/templates/template_name/css or something)? I've looked almost everywhere and I didn't find it.

Thanx

Re: Permission to editcss.php

Posted: Mon May 07, 2007 4:20 pm
by tsw
css is saved in the database like everything else.

if you have access to server logs you should be able to see if mod_security is to blame here

Re: Permission to editcss.php

Posted: Wed May 09, 2007 1:02 pm
by zeroslotm
Thanks !!! I've modified the template directly through phpMyAdmin ;)