• Resolved homunculus

    (@homunculus)


    Lack of caffeine made me upload (FTP) an older copy of index.php (WP1.5) to the server and I overwrote the existing index.php. Now it’s broke. Is there a way to regenerate a new index.php from the database?

Viewing 14 replies - 1 through 14 (of 14 total)
  • 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.

    Thread Starter homunculus

    (@homunculus)

    blog root

    Just re-upload the new/correct one.

    You can’t be any worse off than you are now.

    Thread Starter homunculus

    (@homunculus)

    Just looked at index.php from WP2.0. Not the same. Is there a WP1.52 download around somewhere?

    Thread Starter homunculus

    (@homunculus)

    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.

    Thread Starter homunculus

    (@homunculus)

    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 ??

    Thread Starter homunculus

    (@homunculus)

    Backup copy from host solved the problem. Whew! Thanks.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Don’t FTP index.php’ is closed to new replies.