Support » Installing WordPress » (wp_)get_archives – where isi t?

  • MovableType just hosed my WP installation. I left my MT postings where they were, and had switched to WP. Unfortunately, I forgot to switch off comments in the MT blog, and someone has published a comment, presumable having found the page in Google. This caused an MT blog re-build which overwrote my index.php and several other files with ones for my MT blog.
    I am trying to recreate my WP index.php from the index.php in the WP distro. BUT I get an error message when it runs (btw: line 39 is not line 39 in the WP index.php, I have added extra metadata):
    Fatal error: Call to undefined function: wp_get_archives() in /homepages/32/d32389518/htdocs/index.php on line 39
    I can’t find a file called wp_get_archives or a get_archives file (which I can see being called in a old back-up of my original index.php made after the initial installation) – where are these files and/or how can I recover my WP installation?? (Next time i will back these files up immediately!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • It sounds like trying to install wp in your mt directory is a *bad* idea. Why not avoid all kinds of problems by creating a new wp directory, and re-install wp in there?
    BTW get_archives function is in wp-includes/template_functions.php.
    If you had a working WP installation, then your database should be intact. Good idea to make a backup of it (using phpMyAdmin), then re-do your WP installation in its own new folder, and it may find the already existing database and use its entries.

    Thanks, midtoad, indeed a bad idea to install in the same directory! I have now reinstalled – thanks for the pointer to get_functions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘(wp_)get_archives – where isi t?’ is closed to new replies.