Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-08-16 14:25:05

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Form, categories pages giving 404 error

Hello, so I finally uploaded my website on my server and was doing some minor changes. Then I found that form page is not loading, later also found that categories page is also not loading. Both give 404 error.

I did some digging and found this article, looks like it talks about the same problem as mine but I have clean URLs working fine on my server.

Diagnostic reports just give this warning, nothing about messy URLs as they seem to. Be working really fine. I’m totally clueless about what’s wrong.
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: show_source, phpinfo, allow_url_fopen, fsockopen

Can anyone enlighten me about this?
Thanks for your time.

Offline

#2 2012-08-16 15:48:51

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Form, categories pages giving 404 error

Have you confirmed that the .htaccess file is in place?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2012-08-16 16:08:41

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Form, categories pages giving 404 error

Thank you for your reply Matt.
The .htaccess I am using is just the one that comes with Textpattern.

It is as follows, kindly check :

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

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

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

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

Is there anything I should change in .htaccess.

{Edited to add bc.. for better code display. – Uli}

Last edited by uli (2012-08-16 16:21:15)

Offline

#4 2012-08-16 19:33:10

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Form, categories pages giving 404 error

Thanks uli, I was trying that by adding @ before and after the code…I just can’t get my hands on textile :(

Offline

#5 2012-08-16 20:07:27

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Form, categories pages giving 404 error

You can see the Textile code when you click that post’s Edit link.

Sorry I can’t help with your issue. If you had problems saving categories, forms, preferences, that’s something I’ve heard of yet, but not a problem when opening these.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2012-08-17 05:11:44

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Form, categories pages giving 404 error

Thanks Uli, it’s alright, I guess I should contact my hosting providers.

Offline

#7 2012-08-17 23:37:56

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Form, categories pages giving 404 error

It may also be worth asking your host if it could be a modsecurity2 problem, which cannot be turned off by htaccess, but can be turned off on account level by your host.

Offline

#8 2012-08-18 16:33:23

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Form, categories pages giving 404 error

Thanks Tye, I contacted hosting provider, all they did was put a phpinfo file on my server.
You can check it here

Can anyone check it and let me know if anything can be done? This bug is getting too annoying.

Thanks for your time.

Offline

#9 2012-08-19 14:51:20

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Form, categories pages giving 404 error

I just removed the .htaccess file that comes with textpattern by default and tried to access the categories page and got following error

Not Acceptable
An appropriate representation of the requested resource /textpattern/index.php could not be found on this server.

It’s also giving 406 Not Acceptable Error. Does this leads anywhere? Is it just a file-permission problem or a faulty .htaccess file?

I hope someone will find this useful.
Thanks for your time.

Offline

#10 2012-08-20 05:52:21

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Form, categories pages giving 404 error

You should definitely check with your hosting provider. Textpattern does not produce 406 responses itself. Looks like a host-implied security measure.

Offline

#11 2012-08-20 06:27:38

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Form, categories pages giving 404 error

Thanks Wet,
I did check with hosting provider, and they have not been very helpful. All they did was reset all the file & directory permissions on my hosting. Atleast, thats what they told me. Following is their reply to my request to disable mod_security.

We would like to update you that as we already given required permissions to your account please check below permission given by us to your account
———————————
root@lnx3-u [/home/username/public_html]# ll textpattern/
total 292
drwxr-xr-x 11 username username 4096 Aug 20 02:00 ./
drwxr-xr-x 24 username username 4096 Aug 19 23:17 ../
-rwxr-xr-x 1 username username 4252 Jun 17 2011 checksums.txt*
-rwxr-xr-x 1 username username 262 Aug 15 21:41 config.php*
-rwxr-xr-x 1 username username 269 May 11 2009 css.php*
-rwxr-xr-x 1 username username 28921 Aug 20 01:37 error_log*
drwxr-xr-x 3 username username 4096 Aug 19 20:51 include/
-rwxr-xr-x 1 username username 4195 Jun 17 2011 index.php*
-rwxr-xr-x 1 username username 91342 May 14 2011 jquery.js*
drwxr-xr-x 2 username username 4096 Aug 18 20:14 lang/
-rwxr-xr-x 1 username username 24486 Sep 16 2010 lgpl-2.1.txt*
drwxr-xr-x 2 username username 4096 Aug 18 20:14 lib/
-rwxr-xr-x 1 username username 15171 Sep 16 2010 license.txt*
drwxr-xr-x 2 username username 4096 Aug 18 20:14 publish/
-rwxr-xr-x 1 username username 39457 Mar 25 2011 publish.php*
drwxr-xr-x 2 username username 4096 Aug 18 20:14 setup-del/
-rwxr-xr-x 1 username username 178 Mar 25 2009 textpattern.css*
-rwxr-xr-x 1 username username 8207 May 26 2011 textpattern.js*
drwxr-xr-x 4 username username 4096 Aug 18 20:14 theme/
drwxr-xr-x 2 username username 4096 Jun 17 2011 tmp/
drwxr-xr-x 2 username username 4096 Aug 18 20:14 txp_img/
drwxr-xr-x 2 username username 4096 Aug 18 20:14 updat
——————————-

As I’ve learnt, it sure seems like problem caused by mod_security2. But there’s no way it can be disabled by .htaccess or php.ini file.

I’ve no idea what to do now, I’ll probably just switch to better hosting provider in next month.

Offline

Board footer

Powered by FluxBB