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
The error you're encountering:
The system configuration variable "moog_saleslead.show_partners_leads" is not defined.
Please make sure that it is either added to bundle configuration settings or marked as "ui_only" in config.
...means that the system could not find the configuration variable moog_saleslead.show_partners_leads registered properly in the configuration tree expected by the OroPlatform (assuming you're using Oro).
You've written the right code to define the config setting via the Configuration class and included the system_configuration section in your YAML. However, OroPlatform requires another step to fully register system configuration options in the bundle's Resources/config/oro/system_configuration.yml.
Even though the setting is defined in code, Oro expects the show_partners_leads setting to be declared under settings: key in the bundle configuration to register it correctly.
You need to define the settings node in your bundle’s Resources/config/config.yml or equivalent configuration file (e.g., in DependencyInjection/Configuration.php but available to the container), or declare the option as UI-only.
However, since you're appending settings in the Configuration class using:
SettingsBuilder::append($rootNode, [...]);
Make sure your bundle configuration is correctly loaded from
DependencyInjection/MoogSalesLeadExtension.php.
So check and add this to your bundle Extension class:
MoogSalesLeadExtension.php
namespace Moog\Bundle\SalesLeadBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\Config\FileLocator;
class MoogSalesLeadExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration(); // this is your Configuration.php
$config = $this->processConfiguration($configuration, $configs);
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('services.yml');
$loader->load('system_configuration.yml'); // ✅ Ensure this is loaded
}
}
➤ Ensure that system_configuration.yml is loaded here!
show_partners_leads is under a settings: sectionYou're using SettingsBuilder::append(...) — that's right.
But the error might occur if:
Extension is not loading your configuration properlyMake sure this file exists:
Moog\Bundle\SalesLeadBundle\Resources\config\system_configuration.yml
With correct Oro config structure, which you've already added (✓)
ui_onlyIf you do not want this value to be stored in config settings and only need it in UI, declare it this way in system_configuration.yml:
fields:
moog_saleslead.show_partners_leads:
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
ui_only: true # <- ✅ Add this to mark it as UI-only (optional)
Once you've ensured the config is registered:
php bin/console cache:clear
php bin/console oro:config:update --force
php bin/console oro:platform:update
php bin/console debug:container --parameter=moog_saleslead.show_partners_leads
The issue occurs because system config values must be registered:
SettingsBuilder::append(...))Extension classsystem_configuration.yml with correct structureLet me know if you need help checking your Extension class or directory structure.