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.
Error when upgrading to 1.0
Hi,
I just tried upgrading to version 1.0 from the 0.9.2.6 version I have running. I have:
Linux
Apache
MySQL Version 4.1.11
PHP Version 4.3.9
I get to Step 2 of the installer (after changing permissions) and get an error when pressing the button to go to the next step. The database details have been loaded in correctly (using old_settings.php in the conf folder).
The error is:
"An error occurred while querying for an unauthenticated role. MySQL returned the following error message:"
There is no error message from MySQL after that message.
Any help most appreciated. I have a backup of the database and files and have reverted back to the old verison I was running without a problem.
0
This discussion has been closed.
Comments
$SelectSQL = "select RoleID from ".$DatabaseTables['Role']." where UnAuthenticated = '1'"; $RoleData = @mysql_query($SelectSQL, $Connection); if (!$RoleData) { $Context->WarningCollector->Add("An error occurred while querying for an unauthenticated role. MySQL returned the following error message: ... etc
If you edit the mysql_query line and remove the @ symbol and then try to do the upgrade again, you should see the error message that mysql is failing to report.
It just dawned on me that you might also just try re-uploading the file. Sometimes parts are missing. It's worth a shot.
What doesn't make sense to me is that it's basically saying that the connection is invalid.
Doing basic connection tests with mysql is pretty easy. Create a new blank text file called mysqltest.php and put this inside:
<?php // Turn on all errors error_reporting(E_ALL); // Customize your database connection $Host = "Your MySQL Host Name"; $User = "Your MySQL Username"; $Password = "Your MySQL Password"; $Database = "Your MySQL database name"; // Open a database connection (you may see some errors here) $Connection = mysql_connect($Host, $User, $Password); // Attempt to select your database if ($Connection && !mysql_select_db($Database, $Connection)) echo("Failed to connect to the '".$Database."' database."); ?>
Give that a go and see what happens.
It seems like it's totally failing to perform any of the upgrades or interact with your mysql db at all.