Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-30 04:45:58

maya
New Member
Registered: 2008-07-30
Posts: 4

Error 400 Bad Request?

Hi all!

It seems when I am trying to save any template, I get an Error 400 Bad Request.
My Diagnostic show nothing wrong, except this:

The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: show_source, phpinfo

Please help? :/

Offline

#2 2008-07-30 07:43:13

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Error 400 Bad Request?

Try putting this in a .htaccess file within the textpattern directory:

<IfModule mod_security.c>
SecFilterScanPOST Off
</IfModule>

Offline

#3 2008-07-30 22:27:56

maya
New Member
Registered: 2008-07-30
Posts: 4

Re: Error 400 Bad Request?

I tried, and nothing. I do have this already in my .htacess file…

<code>
DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /site/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php AddDefaultCharset UTF-8 </IfModule>

#php_value register_globals 0
</code>

Offline

#4 2008-07-30 22:39:09

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Error 400 Bad Request?

ruud wrote:

Try putting this in a .htaccess file within the textpattern directory

Did you create a new .htaccess in the textpattern directory?

Offline

#5 2008-07-30 23:05:06

maya
New Member
Registered: 2008-07-30
Posts: 4

Re: Error 400 Bad Request?

Yes, it is in an .htaccess wfile within the Textpattern directory.
I even made a new .htaccess file and nothing.

Offline

#6 2008-07-31 07:22:21

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Error 400 Bad Request?

Please post your full diagnostics and check your webserver access/error logs for clues.

Offline

#7 2008-08-21 01:31:04

maya
New Member
Registered: 2008-07-30
Posts: 4

Re: Error 400 Bad Request?

Here is my full diagnostics:

Textpattern version: 4.0.5 (r2466)
Last Update: 2008-03-06 13:33:01/2008-03-06 13:33:01
Document root: /home/keith/public_html
$path_to_site: /home/keith/public_html/site
Textpattern path: /home/keith/public_html/site/textpattern
Permanent link mode: title_only
Temporary directory path: /tmp
Site URL: www.keithcaputo.com/site
PHP version: 5.2.5
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-08-20 17:20:22
MySQL: 5.0.51a-community
Locale: en_US.UTF-8
Server: Apache/2.2.0 (Fedora)
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.9-67.0.7.plus.c4smp

Pre-flight check:
————————————
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: show_source, phpinfo
————————————

.htaccess file contents:
————————————
DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /site

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php AddDefaultCharset UTF-8 </IfModule>

#php_value register_globals 0
————————————

My error logs show absolutely nothing even related to this. :/

Offline

#8 2008-09-22 18:09:02

cademis
New Member
Registered: 2008-09-22
Posts: 4

Re: Error 400 Bad Request?

I have the same problem on my textpattern installation – I tried “<IfModule mod_security.c> SecFilterScanPOST Off </IfModule>” but it also does not work.

What actualy happens when you click the SAVE button? (Start of SQL-Update Statement?)

Please have a look at my Diagnostics and share any clues you might have:

—————————————————————————————————————————
Textpattern version: 4.0.6 (r2805)
Last Update: 2008-09-21 18:27:16/2008-09-21 18:08:04
Document root: /var/www/web19/html/cademisnet
$path_to_site: /var/www/web19/html/cademisnet
Textpattern path: /var/www/web19/html/cademisnet/textpattern
Permanent link mode: section_id_title
open_basedir: /var/www/web19/:/usr/bin/
upload_tmp_dir: /var/www/web19/phptmp/
Temporary directory path: /var/www/web19/html/cademisnet/temp
Site URL: cademis.net
PHP version: 4.4.4-8+etch6
GD Image Library: 2.0 or higher; supported formats: GIF, JPG, PNG.
Server Local Time: 2008-09-22 19:50:44
MySQL: 5.0.32-Debian_7etch6-log
Locale: C
Server: Apache
Apache version: Apache
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.16.38.xs3.2.0.531.3960

Pre-flight check:
————————————
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: proc_terminate, proc_close, proc_get_status
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_security.c> SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]

</IfModule>

#php_value register_globals 0

————————————

Offline

#9 2008-09-23 11:23:27

cademis
New Member
Registered: 2008-09-22
Posts: 4

Re: Error 400 Bad Request?

@maya: Did you manage to solve this Bad Request problem or did you switch to another CMS?

Offline

Board footer

Powered by FluxBB