Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

My website goes the setup page all of a sudden...

edited April 2007 in Vanilla 1.0 Help
Is my board doomed? Or is there a way to recover everything. How can I assume normal operation? Site of question -


  • edited April 2007
    Make sure you have a conf/settings.php file... if you do, make sure it contains (or add, if all other settings appear OK) $Configuration['SETUP_COMPLETE'] = '1';, if it does already have that, make sure permissions are proper so that Vanilla can read your settings file.
  • I have a settings.php file but it says its 0kb in size. How can I create another one?
  • If you happen to have a backup of the settings file, restore it. If not, it might be a good idea to make a backup of any modifications you made, (probably just everything in /conf/, plus any extensions) and a dump of the database, just in case (phpMyAdmin can do this).

    Go ahead and delete the settings file then, and run through the installer steps. I believe it will force you to do the upgrade option. If the database is still intact, you will be up and running like nothing happened, except you might have to disable and re-enable any extensions that act funky (they may have saved settings in the file).

    Last thing I would do is investigate the log files and see if there were any unusual requests sent to the server just before it started sending people to /setup/.. which should be easy to determine because you will start seeing the setup path in the logs.
  • Thanks for your help. Last question - if I run the upgrade option, will it erase the database and create a new one? I want to ensure that it doesn't before I take the step. Is there a way to backup the database before I begin?
  • The upgrader doesn't touch any data, except for some minor role permissions and custom user styles but you can never have too many backups.

    There are ways to get a database dump via the command line (which I don't know off hand), or with PHPMyAdmin. A great step-by-step tutorial for dumping a wordpress databse is here, but its all the same to dump a Vanilla database.
  • Ok. I ran the upgrade and receive the following... Did I do something wrong? Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site448/fst/var/www/html/extensions/DiscussionCounters/conf/settings.php on line 10 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site448/fst/var/www/html/extensions/DiscussionCounters/conf/settings.php on line 18 Fatal error: Call to undefined function: getdefintion() in /home/virtual/site448/fst/var/www/html/extensions/DiscussionCounters/conf/settings.php on line 26
  • edited April 2007
    I was going to say turn off discussion counters manually in conf/extension.php, but it looks like you figured it out already...
  • Thank you for your help. The site is back up and running.
This discussion has been closed.