A mod broke my forum

From Online Manual

Revision as of 14:54, 11 April 2014 by AngelinaBelle (talk | contribs) (homogenized the language)

Jump to: navigation, search

Before you install a modification (mod), you should advice to backup forum and files beforehand. But if you forgot, and the mod install broke your forum so you cannot even uninstall -- what do you do? You might be lucky.

SMF, being the helpful system that it is, takes a file backup, for you. It does this each time you install something, and restoring the files will take them back to the way they were just BEFORE you did the install (if you had to, you could work through all of the file backups in reverse order to go back further in time, but that's a bit involved)

How do we restore the backup? Dead easy!

  1. You'll need to start up FTP or else the file manager that comes with your hosting service.
  2. You'll need to have a look in your forum's "Packages" directory. In there, you'll find another directory named, you guessed it, "backups". Suppose that the last mod that you installed was "PM On Registration", and that you did this on 26 Jan 2012. In the afore-mentioned "backups" directory, you'd find the file 2012-01-26_before_PM_On_Registration_1-0-2.tar.gz
  3. Download that file to a convenient directory on your desktop computerand extract it. It's a "tar.gz" file. A program like winzip can extract the files.
  4. You'll find loads of files and directories. Upload those files and directories to your forum, overwriting what's there now. (It might take a while).

When that's done, your forum files should be exactly as they were, before you installed the mod! This procedure will not make any changes on your forum's database, of course.

Next time, backup before installing mods, won't you?  ;)