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

#1
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?!
 

Brogan

XenForo moderator
Staff member
#2
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:
<?php header('Location: ../index.php'); /* Installed: Tue, 30 Jul 13 10:24:36 +0000 */
 
#5
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:
 

borbole

Well-known member
#6
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:
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?
 

Mike

XenForo developer
Staff member
#7
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.
 
#8
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.