Loris: Error using installdb.php - Loris 20

Created on 18 Jul 2018  路  3Comments  路  Source: aces/Loris

When I try to create a new database using the address http://[LORIS-URL]/installdb.php I'm having the following errors:

[php7:notice] [pid 15] [client 172.18.0.1:34860] Could not execute . Stack trace#0 /var/www/loris/php/installer/Installer.class.inc(216): Database::singleton()\n#1 /var/www/loris/htdocs/installdb.php(107): Installer->sourceSchema(Array)\n#2 {main}, referer: http://localhost/installdb.php
[php7:error] [pid 15] [client 172.18.0.1:34860] PHP Fatal error:  Uncaught DatabaseException: No database connection exists in /var/www/loris/php/libraries/Database.class.inc:104\nStack trace:\n#0 /var/www/loris/php/installer/Installer.class.inc(216): Database::singleton()\n#1 /var/www/loris/htdocs/installdb.php(107): Installer->sourceSchema(Array)\n#2 {main}\n  thrown in /var/www/loris/php/libraries/Database.class.inc on line 104, referer: http://localhost/installdb.php

I did the same using version 19 and it worked.

Bug

All 3 comments

Hi @bmelo. That shouldn't happen, of course! Thanks for bringing it to our attention. @intralizee Is this problem similar to what you addressed recently in https://github.com/aces/Loris/pull/3748? Could you provide any insight here?

We'll take a look at this; please note also that there is no official release for 20.0 right now -- the branch is in active daily development and (while there shouldn't be errors like this one) the branch isn't yet stable.

Thanks @johnsaigle for messaging me about this issue. 馃檪

I believe my PR #3748 is not included in the Loris 20-release @bmelo tried to execute with the installdb.php. I'm guessing he needs to pull the latest changes that were merged. The error output I'm reading from @bmelo is one PR behind when it comes to the installdb.php because the error output:
/var/www/loris/php/installer/Installer.class.inc(216): Database::singleton()
is showing line number 216 where the $DB variable is initiated and my PR has it on line 217.

Please try pulling the latest updates from the 20-release and report back if that solves your problem.

Hi, it's working. I was using a version of some days ago, sorry.
Thank you all.

Was this page helpful?
0 / 5 - 0 ratings