Skip to content

Conversation

@fritzmg
Copy link

@fritzmg fritzmg commented Oct 18, 2021

Currently the following error will occur during contao:migrate:

 [Error]
  Call to protected Contao\System::__construct() from context 'Contao\CoreBundle\Command\MigrateCommand'  


Exception trace:
  at vendor\menatwork\selectmodule\system\modules\selectModule\config\runonce.php:59
 include() at vendor\contao\contao\core-bundle\src\Command\MigrateCommand.php:275

This is because the migration class extends from Contao\Controller and does not provide its own constructor (the parent constructor is protected). Since the migration class does not actually use anything from Contao\Controller (or Contao\System) via its object instance, the inheritance can simply be removed to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant