You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when trying to create a new scheduler task:
TypeError
strpos() expects parameter 1 to be string, null given
in /var/www/html/vendor/helhum/typo3-console/Classes/Console/Mvc/Cli/CommandDispatcher.php line 95
It seems that your UpgradeCommand needs a cli environment to be loaded correctly as it calls CommandDispatcher::createFromCommandRun() in its constructor, leading to the error above in non-cli.
To clarify, I did not try to add your command as a scheduler task. The error happens once you open the form to add new tasks. Maybe just exclude it from scheduler?
The text was updated successfully, but these errors were encountered:
CommandDispatcher must not be instantiated in contructor to avoid this error to happen.
The command should also be marked not schedulable in addition, just to be sure to avoid confusion.
TYPO3 version: 10.4.9 (composer)
I'm getting the following error when trying to create a new scheduler task:
It seems that your
UpgradeCommand
needs a cli environment to be loaded correctly as it callsCommandDispatcher::createFromCommandRun()
in its constructor, leading to the error above in non-cli.To clarify, I did not try to add your command as a scheduler task. The error happens once you open the form to add new tasks. Maybe just exclude it from scheduler?
The text was updated successfully, but these errors were encountered: