octobercms/october · error · ApplicationException

backend::lang.model.not_found

Error message

backend::lang.model.not_found

What it means

Error "backend::lang.model.not_found" thrown in octobercms/october.

Source

Thrown at modules/backend/behaviors/relationcontroller/HasManageMode.php:212

    }

    /**
     * makeManageFormWidget prepares the form widget for management
     */
    protected function makeManageFormWidget(): ?FormWidget
    {
        if (!$config = $this->makeConfigForMode('manage', 'form')) {
            return null;
        }

        $this->manageModel = $this->relationModel;

        // Existing record
        if ($this->manageId) {
            $this->manageModel = $this->findManageModelObject($this->manageId);

            if (!$this->manageModel) {
                throw new ApplicationException(Lang::get('backend::lang.model.not_found', [
                    'class' => get_class($this->relationModel),
                    'id' => $this->manageId,
                ]));
            }
        }

        $config->model = $this->manageModel;
        $config->arrayName = class_basename($this->relationModel);
        $config->context = $this->evalFormContext('manage', !!$this->manageId);
        $config->alias = $this->alias . 'ManageForm';
        $config->parentFieldName = $this->field;

        $widget = $this->makeWidget(FormWidget::class, $config);

        return $widget;
    }

    /**

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/behaviors/relationcontroller/HasManageMode.php:212 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/13cdf7c0907f8d22. Report an issue: GitHub.