-
Notifications
You must be signed in to change notification settings - Fork 9.4k
./bin/magento config:show fails with a fatal error #17582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @simonworkhouse. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @simonworkhouse do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@simonworkhouse , thank you for your report. |
Hi, I also encountered this issue. My Magento version is v2.2.5. In my case, this happens when 'system' => [
'default' => [
// ...
'dashboard' => [
'use_aggregated_data' => '0',
],
// ...
]
] It seems that public function process($scope, $scopeCode, $value, $path)
{
// ...
/** @var Field $field */
$field = $configStructure->getElementByConfigPath($path);
/** @var Value $backendModel */
$backendModel = $field && $field->hasBackendModel()
? $field->getBackendModel()
: $this->configValueFactory->create();
// ...
} However, it actually returns an instance of /**
* Find element by config path
*
* @param string $path The configuration path
* @return \Magento\Config\Model\Config\Structure\ElementInterface|null
* @since 100.2.0
*/
public function getElementByConfigPath($path)
{
$allPaths = $this->getFieldPaths();
if (isset($allPaths[$path])) {
$path = array_shift($allPaths[$path]);
}
return $this->getElementByPathParts(explode('/', $path));
} In the case of A fix could be either adjusting the 'dashboard' => [
'use_aggregated_data' => '0',
], If the entry is required to be there, then a temporary adjustment to the |
#khcd2018 |
@max-a-mdmitriev thank you for joining. Please accept team invitation here and self-assign the issue. |
I am working on #mm18pl |
@keyurshah070 thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @simonworkhouse. Thank you for your report. The fix will be available with the upcoming 2.2.8 release. |
Hi @simonworkhouse. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
… with a fatal error #18295
Uh oh!
There was an error while loading. Please reload this page.
The ./bin/magento config:show command fails with a fatal error after running ./bin/magento app:config:dump
Similar issue reported previously #16654
Preconditions
Steps to reproduce
Expected result
All config data output correctly without a fatal error.
Actual result
...
catalog/productalert_cron/error_email -
catalog/product_video/play_if_base - 0
catalog/product_video/show_related - 0
catalog/product_video/video_auto_restart - 0
catalog/review/allow_guest - 1
catalog/search/engine - mysql
catalog/search/min_query_length - 1
catalog/search/max_query_length - 128
catalog/search/max_count_cacheable_search_terms - 100
analytics/subscription/enabled - 1
PHP Fatal error: Uncaught Error: Call to undefined method Magento\Config\Model\Config\Structure\Element\Group\Interceptor::hasBackendModel() in /vendor/magento/module-config/Console/Command/ConfigShow/ValueProcessor.php:100
Stack trace:
#0 /vendor/magento/module-config/Console/Command/ConfigShowCommand.php(197): Magento\Config\Console\Command\ConfigShow\ValueProcessor->process('default', '', 'Magento Analyti...', 'analytics/integ...')
#1 /vendor/magento/module-config/Console/Command/ConfigShowCommand.php(202): Magento\Config\Console\Command\ConfigShowCommand->outputResult(Object(Symfony\Component\Console\Output\ConsoleOutput), 'Magento Analyti...', 'analytics/integ...')
#2 /vendor/magento/module-config/Console/Command/ConfigShowCommand.php(202): Magento\Config\Console\Command\ConfigShow in /vendor/magento/module-config/Console/Command/ConfigShow/ValueProcessor.php on line 100
The text was updated successfully, but these errors were encountered: