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.

installation problem - "It appears as though you've already got Vanilla installed."

edited March 2007 in Vanilla 1.0 Help
Hi guys, Did a quick search, but sorry if this is a repeat of a well-rehearsed problem. I'm trying to use vanilla in a project, I following the instructions and I get stuck just after I supply the database parameters with a warning "It appears as though you've already got Vanilla installed. If you are attempting to upgrade your existing installation of Vanilla, you should be using the upgrade script". Here's a summary of my actions. I unzipped the vanilla package to PATH_TO_VANILLA mkdir APP_PATH/forum cp -a PATH_TO_VANILLA/Vanilla.1.0.3/* APP_PATH/forum/. cd APP_PATH/forum chgrp -R nobody * chmod 777 conf then point my browser to APP_URL/forum I've tried a number of things, eg emptied my database, commented out the relevent test in installer.php but I can't make anything take. Anyone got any insight? Thanks, Jez Austin.

Comments

  • So the database you gave vanilla to use is completely empty? And you're sure the dbname/username/password is all correct?
  • yes, they're all confirmed. I cut and pasted them from a command line mysql -uUSERNAME -pPASSWORD DBNAME and the host is localhost
  • Interesting. Are you able to try with a different database? Have you tried running the upgrade script to see what happens? (it should choke saying you dont have the tables if theyre not there)
  • I won't be able to arrange a new database till monday now, but I tried using the upgrade script, and it chokes with a blank page after I supply the database parameters. (I've dropped every table in my database so that vanilla can start it from scratch).
  • MarkMark Vanilla Staff
    That's crazy. The installer is first looking in your database for vanilla tables. If it finds them, it won't allow them to be overwritten and it stops with that error message. So, it's somehow finding those tables in your db - or it's creating them, and then for some reason not moving forwards and retrying the step it just completed. Just a guess there.

    What version of PHP and MySQL are you using?
  • MarkMark Vanilla Staff
    I double-checked and I was wrong. It doesn't look in the database to give you that error, it actually just looks in the conf/database.php file to see if a database name has been saved yet...
  • Well that's a bit silly.
  • MarkMark Vanilla Staff
    I checked further. I'm right about both - it does two checks.
  • I'll let you off then...
  • MarkMark Vanilla Staff
    hehehe
  • Hi, mysql is version 4.1.20, php version 4.3.9 Just had a perfunctory look through it this morning, it seems as if the message is shown if there are tables in my database with names which correspond to entries in the $DatabaseTables array. I can't immediately see where $DatabaseTables gets populated though... I inserted a print_r, and I see now that $DatabaseTables is indeed empty... so the test if (count($TableConflicts) == count($DatabaseTables)) is true, but only because they're both zero. Can you point me to where it is that $DatabaseTables should be filled? cheers, Jez.
  • HI, Through all this, I was trying to use vanilla 1.0.3 -- just downloaded version 1.1, doesn't seem to have any of these problems, it installed without a hitch. Thanks for your help, vanilla looks great! Jez.
  • Vanilla *is* great :D wierd those errors you were having though...
This discussion has been closed.