Open-AudIT
https://www.open-audit.org/phpBB3/

Big oops in release version.
https://www.open-audit.org/phpBB3/viewtopic.php?f=8&t=1881
Page 1 of 1

Author:  A_Hull [ Fri Dec 22, 2006 7:04 pm ]
Post subject:  Big oops in release version.

The release version setup fails with....
[code]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\Openauditrelease\include_functions.php on line 123
[/code]

Also the Upgrade Found message appears on this page, but this fails with..

[code]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\Openauditrelease\include_functions.php on line 123
Upgrading to 06.08.30.Query failed: ALTER TABLE `system` CHANGE `system_country_code` `system_country_code` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL
Table 'openauditrelease.system' doesn't exist
[/code]

Also the Submit Credentials button actually says Submit Cbentials...

When you look in mysql the database has been created, but has no tables (presumably the sql script has not run).

This is the case no matter what options you tick (re-running setup.php and selecting delete database doesn't fix the problem, so there is a flaw in the logic for determining when to run the SQL script).


As a dirty hack to get the thing to work, edit setup.php and change the section arround line 300 to

[code]

// if (isset($_POST['drop_database']) and ($_POST['drop_database'] == 'y')) {
// Load SQL contents to write to server
echo __("Creating tables... ");
$filename = "scripts/open_audit.sql";
$handle = fopen($filename, "rb");
$contents = fread($handle, filesize($filename));
fclose($handle);
$sql = stripslashes($contents);
$sql2 = explode(";", $sql);
foreach ($sql2 as $sql3) {
$result = mysql_query($sql3 . ";");
}
echo __("Success!") . "<br />";
mysql_close($db);
// }
[/code]

This will take out the check for drop database when deciding to run the sql setup script.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/