1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Empty database?

Discussion in 'Installation, Upgrade, and Import Support' started by Phife, Aug 15, 2013.

  1. Phife

    Phife Member

    I accidentally deleted all files during my forum update from 1.1.5 to 1.2.0. I uploaded the files of 1.2.0 and when I enter my database information, it tells me "XenForo is already installed in your database. Continuing will remove all XenForo-related data from your database!"

    How can I avoid having my forums wiped?!
  2. Brogan

    Brogan XenForo Moderator Staff Member

    If you have already upgraded and uploaded the files again, all you need to do is manually create the internal_data/install-lock.php file.

    <?php header('Location: ../index.php'); /* Installed: Tue, 30 Jul 13 10:24:36 +0000 */
    Phife likes this.
  3. Phife

    Phife Member

    I haven't upgraded yet, I was in the process.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    What happens when you visit your forum now?
    Or the /install path?
    Phife likes this.
  5. Phife

    Phife Member

    Well, I accidentally deleted the entire forum directory (version 1.1.5) before I started the update process. So I uploaded a brand new installation of version 1.2.0 and when I enter the database details, it tells me "XenForo is already installed in your database. Continuing will remove all XenForo-related data from your database!".

    When I also added the install lock, it tells me "You have already completed installation. If you wish to reinstall, please delete the file internal_data/install-lock.php."

    I haven't even started the update to 1.2.0. I pressed the wrong button on my FTP client :barefoot:
  6. borbole

    borbole Well-Known Member

    That should not pose any issue in that regard. You can experience mod issues and attachments as well seeing the fact that you deleted those folders. But in regard to the upgrade you should upgrade your forum normally.

    It looks to me like you are calling the install file in the browser. You should point your browser to the upgrade file instead.

    P.s. What is your forum url btw?
    Phife likes this.
  7. Mike

    Mike XenForo Developer Staff Member

    You will have lost all avatars and attachments if you deleted the whole directory... I'd strongly recommend restoring your files from a backup to attempt to recover as many of those as possible.

    After you create that install lock file (and ensure that library/config.php exists), go back to <url>/install/ - it should take you to the upgrader.
    Phife likes this.
  8. Phife

    Phife Member

    I'm in the process of uploading my old forum back up and then uploading the _update .zip which should hopefully fix it.

    I had totally forgotten about avatars and attachments.

    Many thanks for the A class support.

Share This Page