Closed netzarbeiter closed 6 years ago
/cc @aschempp @leofeyer
Here is the error message and stack trace in a more readable format:
Fatal error: Uncaught TypeError: Return value of Contao\ManagerPlugin\Bundle\Parser\DelegatingParser::addParser() must be an instance of Contao\ManagerPlugin\Bundle\Parser\void, none returned in vendor/contao/manager-plugin/src/Bundle/Parser/DelegatingParser.php:30
#0 vendor/contao/manager-bundle/src/HttpKernel/ContaoKernel.php(131): Contao\ManagerPlugin\Bundle\Parser\DelegatingParser->addParser(Object(Contao\ManagerPlugin\Bundle\Parser\JsonParser))
#1 vendor/contao/manager-bundle/src/HttpKernel/ContaoKernel.php(227): Contao\ManagerBundle\HttpKernel\ContaoKernel->getBundleLoader()
#2 vendor/contao/manager-bundle/src/HttpKernel/ContaoKernel.php(53): Contao\ManagerBundle\HttpKernel\ContaoKernel->addBundlesFromPlugins(Array)
#3 /home/user/public_html/domain.com in vendor/contao/manager-plugin/src/Bundle/Parser/DelegatingParser.php on line 30
Since the PHP parses thinks that there is a Contao\ManagerPlugin\Bundle\Parser\void
class, I figure you do not have PHP 7.1?
PHP Version 7.2.6 is running
Are you sure? Apparently PHP does not recognize the void
keyword and thinks it refers to a class.
Sorry, PHP 5.6.
Ok. Still its weird that Composer gave you version 2.3 of the plugin, as it defines PHP 7.1 as minimum requirement: https://github.com/contao/manager-plugin/blob/2.3/composer.json#L13
After private lessons with Yanick, it works now. I had a mess of PHP versions:
Should I close the ticket?
In this case yes. 😄
I'm using the post-release task from mage to clear the opcache. With the new version of the manager-plugin the task has failed.
Going back to version 2.2 (
"contao/manager-plugin": "2.2.*"
) did the trick for me.