Page 1 of 1

[solved] template problem

Posted: Mon Aug 20, 2007 11:50 pm
by alchris
I just installed cms made simple 1.1.

When I tried to make a new template I get this error.

Bad Request
Your browser sent a request that this server could not understand.
Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8e Server at www.ocf.berkeley.edu Port 80

I also get a similar error when I try to preview a page under content/page/edit page:

Re: template problem

Posted: Tue Aug 21, 2007 2:30 pm
by Pierre M.
Hello,

what do webserver logs say ?
what does debug mode say ? (please set debug to on in config.php)

Which "lights" weren't green during the install procedure ?
What is your web browser ?

Pierre M.

Re: template problem

Posted: Tue Aug 21, 2007 5:36 pm
by Dr.CSS
What Pierre M you want a full explanation right off the bat?...  ;)

Re: template problem

Posted: Wed Aug 22, 2007 9:31 am
by Pierre M.
lol Mark. I'm trying a signature that says it all ;)

Pierre M.

Re: template problem

Posted: Fri Aug 24, 2007 12:11 am
by alchris
I am a novice at this so it took me a while to get a more detailed info about my problem.

ERROR MESSAGE ONE.
I get this error mesage when I click on reorder pages link, move up and down arrow and when I Edit Page and click preview.

Error: the server returned the following HTTP status: 400 recieved:


400 Bad Request

Bad Request
Your browser sent a request that this server could not understand.



Apache/2.0.59 (Unix) mod_ssl/2.0.59
OpenSSL/0.9.8e Server at www.ocf.berkeley.edu Port 80




ERROR MESSAGE TWO

I get this error mesage when I try create a new template.
Bad Request
Your browser sent a request that this server could not understand.
Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8e Server at www.ocf.berkeley.edu Port 80

When I take out the line of code from a new template it works and no error message.



1. This is some of the errors in the server log.

[Wed Aug 22 17:57:11 2007] [error] [client 70.95.187.92] ModSecurity: Access denied with code 400 (phase 2). Pattern match "(?:\\\\bhttp.(?:0\\\\.9|1\\\\.[01])|"] [severity "ALERT"] [hostname "www.ocf.berkeley.edu"] [uri "/~bpr/cmsmadesimple-1.1/admin/addtemplate.php"] [unique_id "XtdNxMA63fMAADWdjuUAAAAO"]

[Thu Aug 23 14:07:08 2007] [error] [client 70.95.187.92] ModSecurity: Access denied with code 400 (phase 2). Pattern match "(?:\\\\bhttp.(?:0\\\\.9|1\\\\.[01])|"] [severity "ALERT"] [hostname "www.ocf.berkeley.edu"] [uri "/~bpr/cmsmadesimple-1.1/admin/listcontent.php"] [unique_id "RfCkgcA63fMAAG2oXI4AAAA0"]

[Thu Aug 23 14:09:17 2007] [error] [client 70.95.187.92] ModSecurity: Access denied with code 400 (phase 2). Pattern match "(?:\\\\bhttp.(?:0\\\\.9|1\\\\.[01])|"] [severity "ALERT"] [hostname "www.ocf.berkeley.edu"] [uri "/~bpr/cmsmadesimple-1.1/admin/listcontent.php"] [unique_id "TaHZx8A63fMAAGvG@xQAAAAM"]

[Thu Aug 23 14:11:13 2007] [error] [client 70.95.187.92] ModSecurity: Access denied with code 400 (phase 2). Pattern match "(?:\\\\bhttp.(?:0\\\\.9|1\\\\.[01])|"] [severity "ALERT"] [hostname "www.ocf.berkeley.edu"] [uri "/~bpr/cmsmadesimple-1.1/admin/editcontent.php?content_id=15&page="] [unique_id "VIN6LMA63fMAAArJTCQAAACy"]

2. I turned on debug mode and it doesn't say anything different. unless I don't know where to look.

3. When I installed there were 2 yellow light.

a. Checking PHP memory limit (min 8M, recommend 16M) I have 8
Could not retrieve a value.... passing anyways.
Displaying the value originally set in the config file (this may not be accurate).
You may not have enough memory to run CMSMS correctly, or with all of your desired addons. If
possible, you should try to get your system admin to raise this value. Proceed with caution.

This is what the system admin said: PHP memory limit is not configurable in our build of PHP 4.  On the other hand, our PHP 5 is
currently configured with a memory limit of 128 MB, and you can raise this if needed in your own php.ini file; to use PHP 5, name your scripts with a .php5 extension


b. Checking max upload file size (min 2M, recommend 10M)
You will probably not be able to upload (larger) files using the included file management functions.
Please be aware of this restriction.

4. My web browser is firefox and safari

I appreciate any help you can offer
thank you.

Re: template problem

Posted: Fri Aug 24, 2007 2:57 am
by calguy1000
ModSecurity says it all.  I think you'll have to work with your web host to see about relaxing some of his mod_security rules.

Re: template problem

Posted: Fri Aug 31, 2007 7:07 pm
by alchris
Yup. it was mod_security rules. it works fine now.

thanks