octobercms/october · error · SystemException

Class name is not registered for the component

Error message

Class name is not registered for the component "%s". Check the component plugin.

What it means

Strict-mode guard in makeComponent: resolve() could not map the requested component name/alias to a registered class, and cms.strict_components is enabled, so instead of returning null the manager throws. The unregistered component name is the fault.

Solutions

  1. Register the component (plugin boot / ComponentManager::registerComponent) before use
  2. Fix the component alias used in the page/layout definition
  3. Disable cms.strict_components to restore lenient null behavior
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/cms/classes/ComponentManager.php:292 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/57b51edadcd5f03c. Report an issue: GitHub.

Appendix: source

Thrown at modules/cms/classes/ComponentManager.php:292

        }

        return isset($this->classMap[$className]);
    }

    /**
     * makeComponent object with properties set.
     * @param string $name A component class name or code.
     * @param CmsObject $cmsObject The Cms object that spawned this component.
     * @param array $properties The properties set by the Page or Layout.
     * @return ComponentBase|null The component object.
     */
    public function makeComponent($name, $cmsObject = null, $properties = [])
    {
        $className = $this->resolve($name);
        if (!$className) {
            $strictMode = Config::get('cms.strict_components', false);
            if ($strictMode) {
                throw new SystemException(sprintf(
                    'Class name is not registered for the component "%s". Check the component plugin.',
                    $name
                ));
            }
            else {
                return null;
            }
        }

        if (!class_exists($className)) {
            throw new SystemException(sprintf(
                'Component class not found "%s". Check the component plugin.',
                $className
            ));
        }

        $component = App::make($className, [
            'cmsObject' => $cmsObject,

View on GitHub (pinned to b608633a7e)