octobercms/october · error · October\Rain\Exception\SystemException

system::lang.config.not_found

Error message

system::lang.config.not_found

What it means

Sentinel from ConfigMaker::makeConfig (lang key system::lang.config.not_found): the requested config file could not be located through getConfigPath on either the behavior or its controller, so no configuration could be loaded.

Solutions

  1. Check the config file path and filename spelling relative to the class's config directory
  2. Create the missing config file or pass an inline array instead
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/system/traits/ConfigMaker.php:55 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21). Data as JSON: /api/errors/e533817de381e0d7. Report an issue: GitHub.

Appendix: source

Thrown at modules/system/traits/ConfigMaker.php:55

        // Config already made
        if (is_object($configFile)) {
            $config = $configFile;
        }
        // Embedded config
        elseif (is_array($configFile)) {
            $config = $this->makeConfigFromArray($configFile);
        }
        // Process config from file contents
        else {
            if (isset($this->controller) && method_exists($this->controller, 'getConfigPath')) {
                $configFile = $this->controller->getConfigPath($configFile);
            }
            else {
                $configFile = $this->getConfigPath($configFile);
            }

            if (!File::isFile($configFile)) {
                throw new SystemException(Lang::get(
                    'system::lang.config.not_found',
                    ['file' => $configFile, 'location' => get_called_class()]
                ));
            }

            $config = Yaml::parseFileCached($configFile);

            /**
             * @event system.extendConfigFile
             * Provides an opportunity to modify config files
             *
             * Example usage:
             *
             *     Event::listen('system.extendConfigFile', function ((string) $path, (array) $config) {
             *         if ($path === '/plugins/author/plugin-name/controllers/mycontroller/config_relation.yaml') {
             *             unset($config['property_value']['view']['recordUrl']);
             *             return $config;
             *         }

View on GitHub (pinned to b608633a7e)