drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

[config:export] Export site configuration results in a PHP Fatal error

Open hugronaphor opened this issue 11 years ago • 1 comments

This piece of code:

$this->addSuccessMessage(
  $output,
  sprintf($this->trans('commands.config.export.messages.directory'), $config_export_file)
);

is throwing an error:

PHP Fatal error:  Call to undefined function 
Symfony\Component\Console\Formatter\_drupal_get_last_caller() in 
/var/www/DrupalAppConsole/vendor/symfony/console/Symfony/Component/Console/
Formatter/OutputFormatter.php on line 37

It seems like $output var is obsolete in addSuccessMessage() as a string is need to be passed.

hugronaphor avatar Mar 01 '15 16:03 hugronaphor

Closed in favor of pull request: https://github.com/hechoendrupal/DrupalAppConsole/pull/476

hugronaphor avatar Mar 01 '15 19:03 hugronaphor