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

XF 1.2 Lost everything

Discussion in 'Installation, Upgrade, and Import Support' started by ineedhelp, Jun 20, 2013.

  1. ineedhelp

    ineedhelp Well-Known Member

    I clicked on Begin Installation, but it didn't do anything for about a minute, no signs of the browser doing anything. So I decided to refresh the page...I clicked on Begin Installation again. This time it instantly said installation complete.

    Seemed weird that it upgraded to 1.2 so quick... All seemed fine, but then I noticed the profile pages were broken and not showing the new layout. I figured the upgrade didn't complete. So I went back to the install url and it told me to delete install-lock.php in order to do a fresh install. There was no warning message telling me that deleting that file from my server will wipeout my forum.. I deleted it... But this deleted everything... posts, add ons, users etc. :mad:

    Luckily, i was installing it on my test site. NOT my main site !

    Anyone else had this issue?

    IF this happens again when installing it on my main site... Is there anyway to fix a bad install without risking deleting everything?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You should always take a backup before upgrading.

    A fresh install is exactly that. It stands to reason existing data would be lost.
     
  3. Lisa

    Lisa Well-Known Member

    You clicked begin Installation and that didn't give you an indication that you were installing a fresh copy and not upgrading?
     
    Cambion likes this.
  4. ineedhelp

    ineedhelp Well-Known Member

    The main site is backed up throughout the day. Just not the test site as it's not so important.
     
  5. Mike

    Mike XenForo Developer Staff Member

    Deleting that file doesn't delete anything. However, you said you clicked on "begin installation" - it sounds like you went through the process that said it would delete everything to do that. That text only appears when doing a fresh installation.

    Please see the upgrade instructions: http://xenforo.com/help/upgrades/ Notably the part about ensuring the the directories are "merged".
     
  6. ineedhelp

    ineedhelp Well-Known Member

    It said fresh install.. Not upgrade, I don't think.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Did you not question at that point what was happening?
     
    Jeremy P, Jeremy, Amaury and 2 others like this.
  8. Lisa

    Lisa Well-Known Member

    That's kinda my point.. fresh install is exactly that... that should have told you that it would be a completely fresh install (ie, new, nothing on it, shiny.. untouched fresh copy :))
     
    Amaury and Cambion like this.
  9. Chris D

    Chris D XenForo Developer Staff Member

    I've upgraded several boards over the last day or so. None of them really dealing with live data, but even in a test environment the pain of losing data isn't worth the risk.

    So I READ EVERY WORD on EVERY PAGE of the upgrade process.

    If you had done that, I'm certain you wouldn't needed to have resorted to your backup.
     
    The Forum Heroes likes this.
  10. ineedhelp

    ineedhelp Well-Known Member

    All the files when uploaded did merge correctly. This all happened when i deleted install-lock.php.

    I should have copied that file to my desktop before deleting it.
     
  11. Mike

    Mike XenForo Developer Staff Member

    You deleted all the data as soon as you clicked "begin installation". The install-lock.php file simply prevents you from running the installer.

    This generally happens when someone doesn't "merge" the directories, because they lose their data and internal_data directories where the original install-lock.php is found. (Also losing all avatars, attachments, and other data as well.)
     
  12. ineedhelp

    ineedhelp Well-Known Member

    I'm going to backup all my server files of the main site and the database... And try upgrading again on the main site this time.

    The reason I got confused that the upgrade wasn't happening was because, the pages didn't change it didn't say 'updating templates, Admin panel' etc.... I'm reinstalling the addons again on the test site.... The install process stays on the same page. But they are installing fine.
     
  13. ineedhelp

    ineedhelp Well-Known Member

    Not getting Alerts when someone is tagged in a post.

    @Mike did you get an alert for this tag?
     
  14. Mike

    Mike XenForo Developer Staff Member

    Yes.
     
  15. Kevin

    Kevin Well-Known Member

    Woah... considering what happened the first time, wouldn't it be more prudent to restore your main site backup to your test site (making sure, of course that you have your config.php configured uniquely & properly pointing to your test DB & not your main DB) and then try upgrading your test site again?
     
    Lisa and ineedhelp like this.
  16. ineedhelp

    ineedhelp Well-Known Member

    Can you tag me for a test pls.
     
  17. Lisa

    Lisa Well-Known Member

    @ineedhelp you realise you haven't actually been tagged in this thread prior to this, don't you?
     
  18. ineedhelp

    ineedhelp Well-Known Member

    Yes I know, that's why I asked Mike to tag me so I could see if I get the alert.

    This works how the TagMe add-on works right?
     
  19. ineedhelp

    ineedhelp Well-Known Member

    Oh and I didn't get an alert when you tagged me @Azhria Lilu :eek: I only got the normal quote alert.
     
  20. Brogan

    Brogan XenForo Moderator Staff Member

    Quote alerts supersede tag alerts.

    You will only get one.
     

Share This Page