12-09-2010, 08:29 AM
I performed a fresh install of OpenDocMan 1.2.5.7 yesterday and I had a few issues with the installation and use of the product.
During installation, it bombed out on the last portion of odm.php in the installs folder. Here are the old and new code snippets:
Old Code (Lines 263 & 264):
New Code (Lines 263 & 264):
Since the ID field is auto_increment, it doesn't need a value to insert a record. And the "die" message should have a not after the world Could.
After installation, I was attempting to add users to the ODM, however it would error out if the user was not an Admin. I would receive an error that '' was not a valid integer, which would have the INSERT statement and then the new users ID and '' for the values. I believe I have the proper code changes made for the commitchanges.php file:
Old Code (Line 79):
New Code (Line 79):
During installation, it bombed out on the last portion of odm.php in the installs folder. Here are the old and new code snippets:
Old Code (Lines 263 & 264):
Code:
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}odmsys VALUES ('','version','1.2.5.7')
") or die("<br>Could insert new version into db user");
Code:
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}odmsys (sys_name, sys_value) VALUES ('version','1.2.5.7')
") or die("<br>Could not insert new version into db user");
After installation, I was attempting to add users to the ODM, however it would error out if the user was not an Admin. I would receive an error that '' was not a valid integer, which would have the INSERT statement and then the new users ID and '' for the values. I believe I have the proper code changes made for the commitchanges.php file:
Old Code (Line 79):
Code:
$_POST['admin']='';
New Code (Line 79):
Code:
$_POST['admin']='0';