Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
upgrade to 4.0.3 causes 404 error
I’ve searched the FAQ’s and forums and haven’t been able to find a fix – so I’m turning here. I know this is probably a simple .htaccess issue but I can’t seem to figure it out.
I recently tried to upgrade to 4.0.3 from 4.0.1. My site is hosted at Dreamhost and things were running properly under 4.0.1. But since upgrading to 4.0.3, I haven’t been able to save, edit, or make any changes to the site. For example in the Textpattern site preferences panel I tried switching to messy URL’s and when I click save, I get a 404 error. Same thing happens when I try to add a new post. Here’s the contents of my diagnostic info:
Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-16 18:11:59/2006-01-16 18:04:08
Document root: /home/brokenbulb/brokenbulb.org (/home/.karl/brokenbulb/brokenbulb.org)
$path_to_site: /home/.karl/brokenbulb/brokenbulb.org
Textpattern path: /home/.karl/brokenbulb/brokenbulb.org/textpattern
Permanent link mode: year_month_day_title
Temp folder: /home/.karl/brokenbulb/brokenbulb.org/textpattern/tmp
Site URL: brokenbulb.org
PHP version: 4.3.10
Register globals: 1
server_time: 2006-01-16 11:06:19
MySQL: 4.1.15-standard-log
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
php_sapi_mode: cgi
os_version: Linux 2.4.29-grsec+w+fhs6b+gr0501+nfs+a32+++p4+sata+c4+gr2b-v6.189
Pre-flight check:
————————————
warn_register_globals_or_update
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
RewriteBase /
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) /index.php </IfModule>php_value register_globals 0
————————————
Any suggestions?
Offline
Re: upgrade to 4.0.3 causes 404 error
Offline
Re: upgrade to 4.0.3 causes 404 error
I removed my .htaccess file and got the following message this time.
Forbidden
You don’t have permission to access /textpattern/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Can anyone here suggest what my next step should be? Or what detailed information I should pass on to my host?
Thanks,
Jonathan
Offline
Re: upgrade to 4.0.3 causes 404 error
Try this, too.
Offline
Re: upgrade to 4.0.3 causes 404 error
I tried and am still getting a 404 error. But I want to make sure I’m following your instructions correctly. For my site (brokenbulb.org), should the lines I add to .htaccess read?:
ErrorDocument 401 /http://brokenbulb.org/onerror.html
ErrorDocument 403 /http://brokenbulb.org/onerror.html
Offline
Re: upgrade to 4.0.3 causes 404 error
No.
ErrorDocument 401 /onerror.html
ErrorDocument 403 /onerror.html
The ErrorDocument path should be indicated based on the web server’s root.
Last edited by wet (2006-01-20 05:10:18)
Offline
Re: upgrade to 4.0.3 causes 404 error
> The ErrorDocument path should be indicated based on the web server’s root.
I apologize but I need a little more guidance. I’m still relatively new to all this. Does the path to my web server’s root come before “ErrorDocument 401” or after?
Offline
Re: upgrade to 4.0.3 causes 404 error
After the “401” and “403”. Omit the http://brokenbulb.org part. Put the error documents in the servers web root directory, which is typically named “html” or “www” or “public_html” when you list your servers content in an FTP client. Name them onerror.html.
Then put these two lines into your .htacces files verbatim:
ErrorDocument 401 /onerror.html
ErrorDocument 403 /onerror.html
Give it a try and report. Glad I can be of help but I don’t know how to describe it any clearer…
May be it yould help me to undertand you if you listed the top level directories you see when you browse through your server with an FTP client.
Last edited by wet (2006-01-21 06:58:31)
Offline
Re: upgrade to 4.0.3 causes 404 error
OK, I followed those directions which have solved the problem of receiving the 404 error page (I get a blank page now), but still doesn’t solve my original issue.
Everything looks fine on the diagnostics page. But when I try to save any new settings within Textpattern including trying to save a new post, after clicking save instead of the save registering and redirecting to Textpattern admin, I am taken to a 404 error page (or a blank page with this fix in place) and nothing actually saves. So I’m not able to make any changes to the site.
Any ideas. Please let me know if I need to describe this problem further.
Offline
Re: upgrade to 4.0.3 causes 404 error
> Forbidden
>
> You don’t have permission to access /textpattern/index.php on this server.
This could indicate a server issue. The Webserver doesn’t allow access to the file when you post – which normally shouldn’t happen. If you always get this when accessing the admin-side it might well be a webserver issue (webserver wrongly configure – possbily through your own modified .htaccess in the /textpattern/ directoy).
If you only get this when posting, or you don’t have a .htaccess in /textpattern/ (which should normally be the case), you should ask your host, whether they can tell you what’s happening (could be an anti-spam measure or sth. like mod_security gone mad).
Offline
#11 2006-01-23 00:17:55
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: upgrade to 4.0.3 causes 404 error
What URL does your browser go to when you click Save?
What does the 404 page look like? Is it the Textpattern error page, the ErrorDocument html page, or a default one created by your web server?
My guess would be that there’s something quirky in the Dreamhost server config that messes with the Rewrite rules. We don’t really know how to solve the problem: the Apache documentation is inaccurate, and nobody answers our questions.
Alex
Offline
Re: upgrade to 4.0.3 causes 404 error
>What URL does your browser go to when you click Save?
http://brokenbulb.org/textpattern/index.php
>What does the 404 page look like? Is it the Textpattern error page, the ErrorDocument html page, or a default one created by your web server?
I get the Textpattern error page. Or when I have the ErrorDocument lines in my .htaccess file I get a completely blank page.
If I contact Dreamhost, what specifically should I ask them?
Thanks for all your help.
Offline