WordPress.org

Ready to get started?Download WordPress

Forums

(wp_)get_archives - where isi t? (3 posts)

  1. JohnKeys
    Member
    Posted 10 years ago #

    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!)

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  3. JohnKeys
    Member
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.