Symfony Exception

InvalidConfigurationException

HTTP 500 Internal Server Error

Unrecognized option "max_size" under "monolog.handlers.main". Available options are "accepted_levels", "action_level", "activation_strategy", "api_version", "app_name", "auto_log_stacks", "bot_name", "bubble", "buffer_size", "channel", "channels", "client_id", "config", "connection_string", "connection_timeout", "console_formater_options", "console_formatter_options", "content_type", "date_format", "deduplication_level", "document_type", "dsn", "elasticsearch", "email_prototype", "environment", "exchange", "exchange_name", "excluded_404s", "excluded_http_codes", "facility", "file_permission", "filename_format", "flush_on_overflow", "formatter", "from_email", "handler", "headers", "host", "hub_id", "icon_emoji", "id", "ident", "ignore_error", "include_extra", "include_stacktraces", "index", "lazy", "level", "logopts", "mailer", "max_files", "max_level", "members", "message_format", "message_type", "min_level", "mongo", "nested", "nickname", "notify", "passthru_level", "path", "persistent", "port", "predis", "priority", "process_psr_3_messages", "publisher", "redis", "region", "release", "room", "source", "stop_buffering", "store", "subject", "tags", "team", "time", "timeout", "title", "to_email", "token", "type", "url", "use_attachment", "use_locking", "use_short_attachment", "use_ssl", "user", "verbosity_levels", "webhook_url".

Exception

Symfony\Component\Config\Definition\Exception\ InvalidConfigurationException

  1.                 $msg .= sprintf('. Did you mean "%s"?'implode('", "'array_keys($guesses)));
  2.             } else {
  3.                 $msg .= sprintf('. Available option%s %s "%s".'=== \count($proposals) ? '' 's'=== \count($proposals) ? 'is' 'are'implode('", "'$proposals));
  4.             }
  5.             $ex = new InvalidConfigurationException($msg);
  6.             $ex->setPath($this->getPath());
  7.             throw $ex;
  8.         }
  1.         // validate type
  2.         $this->doValidateType($value);
  3.         // normalize value
  4.         return $this->normalizeValue($value);
  5.     }
  6.     /**
  7.      * Normalizes the value before any other normalization is applied.
  8.      *
  1.                 }
  2.             }
  3.             $prototype $this->getPrototypeForChild($k);
  4.             if (null !== $this->keyAttribute || !$isList) {
  5.                 $normalized[$k] = $prototype->normalize($v);
  6.             } else {
  7.                 $normalized[] = $prototype->normalize($v);
  8.             }
  9.         }
  1.         // validate type
  2.         $this->doValidateType($value);
  3.         // normalize value
  4.         return $this->normalizeValue($value);
  5.     }
  6.     /**
  7.      * Normalizes the value before any other normalization is applied.
  8.      *
  1.         $normalized = [];
  2.         foreach ($value as $name => $val) {
  3.             if (isset($this->children[$name])) {
  4.                 try {
  5.                     $normalized[$name] = $this->children[$name]->normalize($val);
  6.                 } catch (UnsetKeyException $e) {
  7.                 }
  8.                 unset($value[$name]);
  9.             } elseif (!$this->removeExtraKeys) {
  10.                 $normalized[$name] = $val;
  1.         // validate type
  2.         $this->doValidateType($value);
  3.         // normalize value
  4.         return $this->normalizeValue($value);
  5.     }
  6.     /**
  7.      * Normalizes the value before any other normalization is applied.
  8.      *
  1.      */
  2.     public function process(NodeInterface $configTree, array $configs): array
  3.     {
  4.         $currentConfig = [];
  5.         foreach ($configs as $config) {
  6.             $config $configTree->normalize($config);
  7.             $currentConfig $configTree->merge($currentConfig$config);
  8.         }
  9.         return $configTree->finalize($currentConfig);
  10.     }
  1.      *
  2.      * @return array The processed configuration
  3.      */
  4.     public function processConfiguration(ConfigurationInterface $configuration, array $configs): array
  5.     {
  6.         return $this->process($configuration->getConfigTreeBuilder()->buildTree(), $configs);
  7.     }
  8.     /**
  9.      * Normalizes a configuration entry.
  10.      *
  1.     final protected function processConfiguration(ConfigurationInterface $configuration, array $configs): array
  2.     {
  3.         $processor = new Processor();
  4.         return $this->processedConfigs[] = $processor->processConfiguration($configuration$configs);
  5.     }
  6.     /**
  7.      * @internal
  8.      */
  1.         if (class_exists(FullStack::class) && Kernel::MAJOR_VERSION && Logger::API >= 2) {
  2.             throw new \RuntimeException('Symfony 5 is required for Monolog 2 support. Please downgrade Monolog to version 1.');
  3.         }
  4.         $configuration $this->getConfiguration($configs$container);
  5.         $config $this->processConfiguration($configuration$configs);
  6.         if (isset($config['handlers'])) {
  7.             $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
  8.             $loader->load('monolog.xml');
  1.                 foreach ($exprLangProviders as $provider) {
  2.                     $tmpContainer->addExpressionLanguageProvider($provider);
  3.                 }
  4.                 $extension->load($config$tmpContainer);
  5.             } catch (\Exception $e) {
  6.                 if ($resolvingBag instanceof MergeExtensionConfigurationParameterBag) {
  7.                     $container->getParameterBag()->mergeEnvPlaceholders($resolvingBag);
  8.                 }
  1.             if (!\count($container->getExtensionConfig($extension))) {
  2.                 $container->loadFromExtension($extension, []);
  3.             }
  4.         }
  5.         parent::process($container);
  6.     }
  7. }
  1.      */
  2.     public function compile(ContainerBuilder $container)
  3.     {
  4.         try {
  5.             foreach ($this->passConfig->getPasses() as $pass) {
  6.                 $pass->process($container);
  7.             }
  8.         } catch (\Exception $e) {
  9.             $usedEnvs = [];
  10.             $prev $e;
  1.         if ($resolveEnvPlaceholders && $bag instanceof EnvPlaceholderParameterBag) {
  2.             $compiler->addPass(new ResolveEnvPlaceholdersPass(), PassConfig::TYPE_AFTER_REMOVING, -1000);
  3.         }
  4.         $compiler->compile($this);
  5.         foreach ($this->definitions as $id => $definition) {
  6.             if ($this->trackResources && $definition->isLazy()) {
  7.                 $this->getReflectionClass($definition->getClass());
  8.             }
  1.         }
  2.         try {
  3.             $container null;
  4.             $container $this->buildContainer();
  5.             $container->compile();
  6.         } finally {
  7.             if ($collectDeprecations) {
  8.                 restore_error_handler();
  9.                 @file_put_contents($buildDir.'/'.$class.'Deprecations.log'serialize(array_values($collectedLogs)));
  1.             $_ENV['SHELL_VERBOSITY'] = 3;
  2.             $_SERVER['SHELL_VERBOSITY'] = 3;
  3.         }
  4.         $this->initializeBundles();
  5.         $this->initializeContainer();
  6.         $container $this->container;
  7.         if ($container->hasParameter('kernel.trusted_hosts') && $trustedHosts $container->getParameter('kernel.trusted_hosts')) {
  8.             Request::setTrustedHosts($trustedHosts);
  1.      * {@inheritdoc}
  2.      */
  3.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  4.     {
  5.         if (!$this->booted) {
  6.             $container $this->container ?? $this->preBoot();
  7.             if ($container->has('http_cache')) {
  8.                 return $container->get('http_cache')->handle($request$type$catch);
  9.             }
  10.         }
Kernel->handle() in /var/www/texet_staging/public/index.php (line 69)
  1. // When using the HttpCache, you need to call the method in your front controller
  2. // instead of relying on the configuration parameter
  3. // https://symfony.com/doc/3.4/reference/configuration/framework.html#http-method-override
  4. Request::enableHttpMethodParameterOverride();
  5. $request Request::createFromGlobals();
  6. $response $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request$response);

Stack Trace

InvalidConfigurationException
Symfony\Component\Config\Definition\Exception\InvalidConfigurationException:
Unrecognized option "max_size" under "monolog.handlers.main". Available options are "accepted_levels", "action_level", "activation_strategy", "api_version", "app_name", "auto_log_stacks", "bot_name", "bubble", "buffer_size", "channel", "channels", "client_id", "config", "connection_string", "connection_timeout", "console_formater_options", "console_formatter_options", "content_type", "date_format", "deduplication_level", "document_type", "dsn", "elasticsearch", "email_prototype", "environment", "exchange", "exchange_name", "excluded_404s", "excluded_http_codes", "facility", "file_permission", "filename_format", "flush_on_overflow", "formatter", "from_email", "handler", "headers", "host", "hub_id", "icon_emoji", "id", "ident", "ignore_error", "include_extra", "include_stacktraces", "index", "lazy", "level", "logopts", "mailer", "max_files", "max_level", "members", "message_format", "message_type", "min_level", "mongo", "nested", "nickname", "notify", "passthru_level", "path", "persistent", "port", "predis", "priority", "process_psr_3_messages", "publisher", "redis", "region", "release", "room", "source", "stop_buffering", "store", "subject", "tags", "team", "time", "timeout", "title", "to_email", "token", "type", "url", "use_attachment", "use_locking", "use_short_attachment", "use_ssl", "user", "verbosity_levels", "webhook_url".

  at /var/www/texet_staging/vendor/symfony/config/Definition/ArrayNode.php:314
  at Symfony\Component\Config\Definition\ArrayNode->normalizeValue()
     (/var/www/texet_staging/vendor/symfony/config/Definition/BaseNode.php:410)
  at Symfony\Component\Config\Definition\BaseNode->normalize()
     (/var/www/texet_staging/vendor/symfony/config/Definition/PrototypedArrayNode.php:253)
  at Symfony\Component\Config\Definition\PrototypedArrayNode->normalizeValue()
     (/var/www/texet_staging/vendor/symfony/config/Definition/BaseNode.php:410)
  at Symfony\Component\Config\Definition\BaseNode->normalize()
     (/var/www/texet_staging/vendor/symfony/config/Definition/ArrayNode.php:279)
  at Symfony\Component\Config\Definition\ArrayNode->normalizeValue()
     (/var/www/texet_staging/vendor/symfony/config/Definition/BaseNode.php:410)
  at Symfony\Component\Config\Definition\BaseNode->normalize()
     (/var/www/texet_staging/vendor/symfony/config/Definition/Processor.php:34)
  at Symfony\Component\Config\Definition\Processor->process()
     (/var/www/texet_staging/vendor/symfony/config/Definition/Processor.php:50)
  at Symfony\Component\Config\Definition\Processor->processConfiguration()
     (/var/www/texet_staging/vendor/symfony/dependency-injection/Extension/Extension.php:111)
  at Symfony\Component\DependencyInjection\Extension\Extension->processConfiguration()
     (/var/www/texet_staging/vendor/symfony/monolog-bundle/DependencyInjection/MonologExtension.php:88)
  at Symfony\Bundle\MonologBundle\DependencyInjection\MonologExtension->load()
     (/var/www/texet_staging/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php:76)
  at Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process()
     (/var/www/texet_staging/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php:39)
  at Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process()
     (/var/www/texet_staging/vendor/symfony/dependency-injection/Compiler/Compiler.php:91)
  at Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
     (/var/www/texet_staging/vendor/symfony/dependency-injection/ContainerBuilder.php:744)
  at Symfony\Component\DependencyInjection\ContainerBuilder->compile()
     (/var/www/texet_staging/vendor/symfony/http-kernel/Kernel.php:545)
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/var/www/texet_staging/vendor/symfony/http-kernel/Kernel.php:786)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/var/www/texet_staging/vendor/symfony/http-kernel/Kernel.php:187)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/www/texet_staging/public/index.php:69)