Menu

Error in install_db.php

Help
2003-08-14
2003-12-26
  • Bill Haenel

    Bill Haenel - 2003-08-14

    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.

     
    • Alex Ezell

      Alex Ezell - 2003-08-21

      This may be the solution to the error in the other thread with the install problems. Thanks Bill!

       
    • Anonymous

      Anonymous - 2003-12-26

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.