ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

Exercise Bugfix Fix Setup failing because DIC is array

Open fhelfer opened this issue 1 year ago • 3 comments

PHP Fatal error:  Uncaught Error: Call to a member function isDependencyAvailable() on array in /var/www/ilias_v2/ILIAS/components/ILIAS/your-component/classes/class.your-stakeholder.php:28
Stack trace:
#0 /var/www/ilias_v2/ILIAS/components/ILIAS/your-component/classes/Setup/class.your-migration.php(62): your-stakeholder->__construct()
#1 /var/www/ilias_v2/ILIAS/components/ILIAS/Setup/src/CLI/MigrateCommand.php(154): your-migration->prepare()
#2 /var/www/ilias_v2/ILIAS/components/ILIAS/Setup/src/CLI/MigrateCommand.php(83): ILIAS\Setup\CLI\MigrateCommand->listMigrations()
#3 /var/www/ilias_v2/ILIAS/vendor/composer/vendor/symfony/console/Command/Command.php(298): ILIAS\Setup\CLI\MigrateCommand->execute()
#4 /var/www/ilias_v2/ILIAS/vendor/composer/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#5 /var/www/ilias_v2/ILIAS/vendor/composer/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#6 /var/www/ilias_v2/ILIAS/vendor/composer/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 /var/www/ilias_v2/ILIAS/components/ILIAS/Setup/src/CLI/App.php(53): Symfony\Component\Console\Application->run()
#8 /var/www/ilias_v2/ILIAS/artifacts/bootstrap_setup.php(3016): ILIAS\Setup\CLI\App->enter()
#9 /var/www/ilias_v2/ILIAS/cli/setup.php(21): entry_point()
#10 {main}
  thrown in /var/www/ilias_v2/ILIAS/components/ILIAS/DataCollection/classes/class.your-stakeholder.php on line 28

fhelfer avatar Jun 19 '24 09:06 fhelfer

@fhelfer Thanks for the PR. Please add a mantis bug report for this. Is this happening also in ILIAS 9 or is this trunk only?

alex40724 avatar Jun 26 '24 15:06 alex40724

@alex40724 Mantis Issue is: https://mantis.ilias.de/view.php?id=41574

mjansenDatabay avatar Jun 27 '24 06:06 mjansenDatabay

Discussion currently in #7674

fhelfer avatar Jun 27 '24 07:06 fhelfer

Ok, bug and corresponding PR have been closed. I will close this one, too.

alex40724 avatar Jul 08 '24 04:07 alex40724