lukelabern
Member
Posted 6 years ago #
Hi all. Thanks for reading in advance.
Well, basically: I set up my site the other day at http://lukelabern.com added a few articles, everything going great. Getting a few mroe hits every day, then a bunch of people e-mail me stuff interested in my articles. Suddenly, though, I go on to my site and the index, archives, contact and articles page all read "Not found" or "404"! What happened?
update: in my site admin, all the posts are still all there...I think it may be a databse error? Any ideas?
Apparently my friend said he saw a Mysql error like the one here? http://wordpress.org/support/topic/58487?replies=3
lukelabern
Member
Posted 6 years ago #
Sorry, double post (can't edit any more)
Apparently, all the posts are still there, if you insert the permalink address, but the "pages" just aren't selecting them from the databse and showing them?
A clear possibility is that your permalinks don't work. As you don't have index.php in you URLs, you are using a rewrite of your permalinks. This is handled by a .htaccess file in you main blog directory. If this file is corrupt, the permalinks don't work.
You can follow directions in this note:
http://wordpress.org/support/topic/58389?replies=7#post-314746
You also have to make sure that rewrites are allowed by your service provider.
lukelabern
Member
Posted 6 years ago #
Didn't seem to work... My .htaccess after what you said reads
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
Your .htaccess looks to be fine, as permalinks are working (http://www.lukelabern.com/?p=1 works just the same as http://www.lukelabern.com/2006/01/25/hello-world/). So that actually is not likely to be the problem. (I'm just restating this for anyone else who might try to help.)
My next guess would be that there's something wrong with the index.php file. It would appear that you're using a single.php single post template (a giveaway was the <body class=" permalink"> - though you might want to take that extra space out of the class designation) so it's not being served by index.php, but the main page (and it looks like nearly everything else) is being served from index.php. You obviously have posts from Jan 2006, but even using the default archive link for that month doesn't work (http://www.lukelabern.com/?m=200601), which just furthers my thought that it's index.php that's funky.
Try re-uploading it (maybe it just got corrupted on your host?) and if that doesn't work, start going backwards. You've obviously done some editing on the index.php at some point, so maybe you just took out something you shouldn't have.
Good luck.
lukelabern
Member
Posted 6 years ago #
By reupload do you mean backup what I've got now and literally just reupload or use a backup from a time when it wasn't having an error?
You only (probably) need to re-upload the index.php file - not the whole site, and yes, you should pull from a backup when you weren't having problems.
You may lose some edits, but those edits may be causing the problem. :)
Sounds reasonable to me too.
lukelabern
Member
Posted 6 years ago #
Heh. It worked. For anyone who ever checks here again, apparently the only thing different was something to do with flickr, though it still appears. Strange.
Thanks loads for your help, you're great people.