Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
5.2-dev
-
None
Description
When running ezpublish:configure from a fresh install, I get this notice:
PHP Notice: Trying to get property of non-object in /home/bertrand/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/SetupWizard/ConfigurationDumper.php on line 111 PHP Stack trace: PHP 1. {main}() /home/bertrand/www/ezpublish5/ezpublish/console:0 PHP 2. Symfony\Component\Console\Application->run($input = *uninitialized*, $output = *uninitialized*) /home/bertrand/www/ezpublish5/ezpublish/console:21 PHP 3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun($input = *uninitialized*, $output = *uninitialized*) /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:106 PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun($input = *uninitialized*, $output = *uninitialized*) /home/bertrand/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41 PHP 5. Symfony\Component\Console\Application->doRun($input = *uninitialized*, $output = *uninitialized*) /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:78 PHP 6. Symfony\Component\Console\Command\Command->run($input = *uninitialized*, $output = *uninitialized*) /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193 PHP 7. eZ\Bundle\EzPublishLegacyBundle\Command\LegacyConfigurationCommand->execute($input = *uninitialized*, $output = *uninitialized*) /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:242 PHP 8. eZ\Bundle\EzPublishLegacyBundle\SetupWizard\ConfigurationDumper->dump($configArray = *uninitialized*, $options = *uninitialized*) /home/bertrand/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Command/LegacyConfigurationCommand.php:58
It comes from this code block:
ConfigurationDumper.php
$this->sensioConfigurator->mergeParameters( array( // Step #1 is SecretStep 'secret' => $this->sensioConfigurator->getStep( 1 )->secret ) );
getStep( 1 ) doesn't seem to return the expected object.
The secret also ends up set to null, which means a non working install.