Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Thu Mar 28, 2024 6:05 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Fri Dec 22, 2006 7:04 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group