Skip to content
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

Open
mic-men opened this issue Aug 9, 2024 · 8 comments
Open

Error updating plugin to 8.1.3 (2024-08-09) #338

mic-men opened this issue Aug 9, 2024 · 8 comments
Labels
bug Something isn't working ILIAS 8 Issue appears or may only appear on ILIAS 8.

Comments

@mic-men
Copy link
Contributor

mic-men commented Aug 9, 2024

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:

  1. Update plugin source as mentioned above
  2. Run Composer - ok.
  3. Do the php update on commandline as requested
    php setup/setup.php update --plugin Opencast -vv
  4. Error is thrown:
    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

  • ILIAS version: 8.13
  • PHP version: PHP 8.0.30
  • Plugin version: 8.1.3 (2024-08-09)
  • Opencast version: 14.6
@mic-men mic-men added bug Something isn't working Priority: High Needs to be fixed/taken care of asap ILIAS 8 Issue appears or may only appear on ILIAS 8. labels Aug 9, 2024
@mic-men
Copy link
Contributor Author

mic-men commented Aug 12, 2024

Appearently the error occurs in a core ILIAS part Services/Language/classes/Setup/class.ilSetupLanguage.php stating that global $ilDB is null.
I don't understand it. PHP version is 8.0.30, Composer run without error.
Am I really the only one with this error?

@chfsx
Copy link
Contributor

chfsx commented Aug 12, 2024

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. php setup/setup.php update --plugin BlaBlaBla)

@mic-men
Copy link
Contributor Author

mic-men commented Aug 12, 2024

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.
So we know that it is an issue in ILIAS core (but I'm still wondering why it worked two weeks ago and we didn't update ILIAS in the meantime...).
Can we do something about it?

@chfsx
Copy link
Contributor

chfsx commented Aug 13, 2024

Can we do something about it?

The best way to report the problem is via mantis for the ILIAS core: https://mantis.ilias.de
You can link the tick here, then we have the reference.

@mic-men
Copy link
Contributor Author

mic-men commented Aug 13, 2024

I made a bug report in mantis

@mic-men mic-men removed the Priority: High Needs to be fixed/taken care of asap label Aug 13, 2024
@chfsx
Copy link
Contributor

chfsx commented Aug 13, 2024

@mic-men thanks a lot!

@mic-men
Copy link
Contributor Author

mic-men commented Sep 12, 2024

According to mantis bug tracker the problem is fixed with ILIAS 8.15.
The issue remains open until confirmation by someone with this version.

@dagraf
Copy link

dagraf commented Nov 18, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ILIAS 8 Issue appears or may only appear on ILIAS 8.
Projects
Status: Testing
Development

No branches or pull requests

3 participants