In ProcessorDecorator.php line 55: The system configuration variable…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
In ProcessorDecorator.php line 55:
The system configuration variable "moog_saleslead.show_partners_leads" is n
ot defined. Please make sure that it is either added to bundle configuratio
n settings or marked as "ui_only" in config.
pls help find error
Based on the error and provided code, the issue is that the configuration setting moog_saleslead.show_partners_leads is not properly declared in the bundle's configuration. Here's the solution:
ui_only Declaration:system_configuration.yml since it appears to be a presentation setting:# system_configuration.yml
fields:
moog_saleslead.show_partners_leads:
ui_only: true # Add this line
data_type: boolean
type: Oro\Bundle\ConfigBundle\Form\Type\ConfigCheckbox
options:
label: moog.saleslead.system_configuration.fields.show_partners_leads.label
tooltip: moog.saleslead.system_configuration.fields.show_partners_leads.tooltip
tree:
system_configuration:
commerce:
children:
sales:
children:
leads:
children:
leads_section:
children:
- moog_saleslead.show_partners_leads
Why this works:
ui_only: true flag tells OroCommerce that this setting is purely for UI configuration and shouldn't be validated against the backend configuration schema.system_configuration > commerce > sales > leads > leads_section) is correctly structured.Important Note:
If you actually need this setting to be stored in the backend (not just UI), you must ensure it's properly declared in your bundle's DependencyInjection/Configuration.php (which you've already done). The error would then indicate a deeper issue like cache not being cleared or a missing extension declaration. In that case:
bin/console cache:clearMoogSalesLeadExtension.php) loads the configuration:class MoogSalesLeadExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$container->prependExtensionConfig($configuration->getConfigTreeBuilder()->getRootNode()->getName(), $config);
}
}
But based on your use case, ui_only: true should resolve the immediate error.