To the best of my knowledge, there’s not now (or has ever been) a way to regenerate the php files from the database. However, I’m not an expert just yet. π
Have you tried simply downloading a copy of WP 2.0 and just re-uploading that copy of index.php?
No, but which index.php are we talking about? The one in your blog root*, or the active theme directory?
* There’s no difference between the 2.0 and 1.5 versions.
Just re-upload the new/correct one.
You can’t be any worse off than you are now.
Just looked at index.php from WP2.0. Not the same. Is there a WP1.52 download around somewhere?
Thanks for the download link. Tried uploading the new index.php, but no luck. The file size of the new index.php is just 95 bytes, while the old one is 12K. Other suggestions?
Does your host have a backup ?
FYI, my 2.0 index.php is also 95 bytes.
Call me crazy… but couldn’t you just grab the index.php from your WP2.0 zip file and upload it?
-tg
TG, you are not “crazy” π
I was asking the same question…
I think he’s got 1.52 but overwrote it with 1.5’s index.php
And the issue now is that the original index.php is MUCH larger than the official 1.52 file.
Again, I tried uploading a new index.php and I got these error messages:
Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in… (path deleted)
Fatal error: main(): Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/local/lib/php’) in… (path deleted)
WHich means there is nothing wrong with your index, but your wp-blog-header file is not where it is supposed to be π
Backup copy from host solved the problem. Whew! Thanks.