At line 15:
$success = $manager->UpdateDatabase($schema_file, dirname(__FILE__).'/'.$schema_file.'.previous', $PSA_SCR, $variables);
Did not work. Seemed to be a redundancy in the schema file path in the second parameter sent to UpdateDatabase function. So I set it to:
$success = $manager->UpdateDatabase($schema_file, $schema_file.'.previous', $PSA_SCR, $variables);
This worked just fine. The extra "dirname(__FILE__).'/'" placed before the schema file name was unnecessary because that portion of the path had already been assigned in line 12 as follows:
$schema_file = $PSA_SCR['MbSchemaDir'].'/'.basename($schema_file);
$PSA_SCR['MbSchemaDir'] already includes the path to root, so adding it agin in line 15 was redundant.
Just thought someone might want to know.
This may be the solution to the error in the other thread with the install problems. Thanks Bill!
No, it didn't solve the install_db.php problem, still getting this:
Error: Could not parse database schema file: Could not read from input stream Line 0 Column 0 Byte index 0
Log in to post a comment.
At line 15:
$success = $manager->UpdateDatabase($schema_file, dirname(__FILE__).'/'.$schema_file.'.previous', $PSA_SCR, $variables);
Did not work. Seemed to be a redundancy in the schema file path in the second parameter sent to UpdateDatabase function. So I set it to:
$success = $manager->UpdateDatabase($schema_file, $schema_file.'.previous', $PSA_SCR, $variables);
This worked just fine. The extra "dirname(__FILE__).'/'" placed before the schema file name was unnecessary because that portion of the path had already been assigned in line 12 as follows:
$schema_file = $PSA_SCR['MbSchemaDir'].'/'.basename($schema_file);
$PSA_SCR['MbSchemaDir'] already includes the path to root, so adding it agin in line 15 was redundant.
Just thought someone might want to know.
This may be the solution to the error in the other thread with the install problems. Thanks Bill!
No, it didn't solve the install_db.php problem, still getting this:
Error: Could not parse database schema file: Could not read from input stream Line 0 Column 0 Byte index 0