Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-04 02:46:39
- imaclanni
- New Member
- Registered: 2005-09-17
- Posts: 8
406 not acceptable
i’m fairly new at textpattern (i’ve been using it for a few months), and recently i tried to edit my template and i get this error:
406 Not Acceptable
An appropriate representation of the requested resource /textpattern/index.php could not be found on this server.
anyone know what i did? my url is imaclanni.com (in case, i dunno).
this is what my diagnostics thing says:
Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-04 02:35:01/2006-01-04 02:33:46
Document root: /home/imaclann/public_html
$path_to_site: /home/imaclann/public_html
Textpattern path: /home/imaclann/public_html/textpattern
Permanent link mode: section_id_title
Temp folder: /home/imaclann/public_html/textpattern/tmp
Site URL: imaclanni.com
PHP version: 5.0.4
Register globals: 1
server_time: 2006-01-03 20:45:54
MySQL: 4.0.24-standard-log
Locale: en_GB.UTF-8
Server:
php_sapi_mode: cgi
os_version: Linux 2.4.21-27.0.2.EL
Pre-flight check:
————————————
Clean URLs are only supported for apache, use at your own risk
warn_register_globals_or_update
————————————
- DirectoryIndex index.php index.html
- Options +FollowSymLinks
- RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On # Passthrough for existing files and directories RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
# Everything else should go through Textpattern RewriteRule (.*) index.php </IfModule> ————————————thanks for your help!
Last edited by imaclanni (2006-01-04 02:58:40)
Offline
Re: 406 not acceptable
You’ve got to talk to your hosting provider.
I had the same error message recently. In my case this was an effect of mod_security choking on certain spam related keywords in the content I was trying to modify.
I was adviced to create a .htaccess file in the /textpattern directory with this content:
bc..<IfModule mod_security.c>
SecFilterScanPOST Off
</IfModule>
HTH,
Robert
Last edited by wet (2006-01-05 05:17:49)
Online
#3 2006-01-04 19:47:30
- imaclanni
- New Member
- Registered: 2005-09-17
- Posts: 8
Re: 406 not acceptable
my site didn’t like the .htaccess code, it went crazy.
but i did find out that only one part of my template is doing this. the code is:
<script type="text/javascript" src="..."></script>
(there’s a url there, but it’s not affected it so i left it out)
any idea why it hates the javascript so much?
Last edited by zem (2006-01-05 00:04:28)
Offline
#4 2006-01-04 23:58:39
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: 406 not acceptable
Try enclosing the javascript between code and /code tags to make it viewable on the forum.
Last edited by NyteOwl (2006-01-05 00:00:36)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#5 2006-01-05 01:47:05
- imaclanni
- New Member
- Registered: 2005-09-17
- Posts: 8
Re: 406 not acceptable
sorry, i didn’t notice i forgot to. looks like someone did it for me though : )
Offline
#6 2006-01-05 02:35:47
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: 406 not acceptable
Well, if your host isn’t running mod_security, they’re probably running some other application-layer firewall which is trying to “protect” you from the JS…it could easily be a vector for XSS attacks and the like.
Unfortunately, whatever’s filtering the request has no way to know that in this instance it’s “safe”. You may want to raise this issue with your host.
-Kurt
kurt@kurtraschke.com
Offline
#7 2006-01-07 01:40:16
- imaclanni
- New Member
- Registered: 2005-09-17
- Posts: 8
Re: 406 not acceptable
i got it figured out with my host. thanks for the help.
Offline
#8 2006-08-06 07:02:05
- noahsager
- New Member
- Registered: 2004-05-15
- Posts: 4
Re: 406 not acceptable
I just had this problem and I realized the problem was caused by having quotes (") in the filename of an image I was uploading using textpattern.
Offline
Pages: 1