-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error updating plugin to 8.1.3 (2024-08-09) #338
Comments
Appearently the error occurs in a core ILIAS part Services/Language/classes/Setup/class.ilSetupLanguage.php stating that global $ilDB is null. |
I can confirm this issue when trying to update the plugin separately (with the --plugin option). But this seems to be an issue in ILIAS core, I can reproduce this with every plugin and even with non existing ones (e.g. |
Ok, and I can confirm that it works without the --plugin option. We are normally very reluctant to the overall php setup call when we just want to update a plugin (if something fails the whole ILIAS might be unusable). Therefore until now I did not check without the option. |
The best way to report the problem is via mantis for the ILIAS core: https://mantis.ilias.de |
I made a bug report in mantis |
@mic-men thanks a lot! |
According to mantis bug tracker the problem is fixed with ILIAS 8.15. |
The issue opened in Mantis (https://mantis.ilias.de/view.php?id=41905) got fixed. Can someone confirm the fix of this issue her, too? |
Describe the bug
Updating the plugin to version 2024-08-09 06:00 (git tag: 3236424 ) throws an error.
To Reproduce
Steps to reproduce the behavior:
php setup/setup.php update --plugin Opencast -vv
Get a confirmation from admin.... [OK] Read client-id from data-directory.... [OK] Can create files in '/var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/data/pr01'...[OK] Can create files in '/var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3'...[OK] The ilias.ini.php and client.ini.php are loaded... [OK] The database object is initialized.... [OK] PHP Fatal error: Uncaught Error: Call to a member function quote() on null in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilSetupLanguage.php:198 Stack trace: #0 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilLanguagesInstalledAndUpdatedObjective.php(47): ilSetupLanguage->getInstalledLanguages() #1 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilLanguagesInstalledAndUpdatedObjective.php(63): ilLanguagesInstalledAndUpdatedObjective->getInstallLanguages() #2 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/src/Setup/CLI/ObjectiveHelper.php(56): ilLanguagesInstalledAndUpdatedObjective->getLabel() #3 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/src/Setup/CLI/UpdateCommand.php(108): ILIAS\Setup\CLI\UpdateCommand->achieveObjective() #4 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/libs/composer/vendor/symfony/console/Command/Command.php(298): ILIAS\Setup\CLI\UpdateCommand->execute() #5 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/libs/composer/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run() #6 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/libs/composer/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand() #7 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/libs/composer/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun() #8 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/setup/cli.php(40): Symfony\Component\Console\Application->run() #9 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/setup/setup.php(42): require_once('...') #10 {main} thrown in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilSetupLanguage.php on line 198 PHP Fatal error: Uncaught Error: Call to a member function quote() on null in /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilSetupLanguage.php:198 Stack trace: #0 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilLanguagesInstalledAndUpdatedObjective.php(47): ilSetupLanguage->getInstalledLanguages() #1 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/Services/Language/classes/Setup/class.ilLanguagesInstalledAndUpdatedObjective.php(63): ilLanguagesInstalledAndUpdatedObjective->getInstallLanguages() #2 /var/www/vhosts/lms-public.uni-tuebingen.de/httpdocs/ilias3/src/Setup/CLI/ObjectiveHelper.php(43): ilLanguagesInstalledAndUpdatedObjective->getLabel() #3 [internal function]: ILIAS\Setup\CLI\UpdateCommand::ILIAS\Setup\CLI\{closure}() #4 {main}
Environment
The text was updated successfully, but these errors were encountered: