octobercms/october · error · ApplicationException

backend::lang.list.missing_parent_definition

Error message

backend::lang.list.missing_parent_definition

What it means

index_onDelete resolves the list definition from the 'definition' POST value and throws the localized missing_parent_definition error when it isn't among $this->listDefinitions — usually a stale AJAX request referencing a definition name that no longer exists or a missing primary definition.

Solutions

  1. Ensure the list definition name posted matches one configured in ListController
  2. Define the definition the client posts, or rely on the primaryDefinition
  3. Refresh stale pages that reference removed definitions
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/behaviors/ListController.php:344 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/8f97333ecb598af4. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/behaviors/ListController.php:344

        $this->makeLists();
    }

    /**
     * index_onDelete bulk deletes records.
     * @return void
     */
    public function index_onDelete()
    {
        if (method_exists($this->controller, 'onDelete')) {
            return call_user_func_array([$this->controller, 'onDelete'], func_get_args());
        }

        // Establish the list definition
        $definition = post('definition', $this->primaryDefinition);

        if (!isset($this->listDefinitions[$definition])) {
            throw new ApplicationException(Lang::get('backend::lang.list.missing_parent_definition', compact('definition')));
        }

        $this->config = $this->controller->listGetConfig($definition);

        // Check conditions for deletion
        if (!$this->listCanDeleteRecords()) {
            throw new ForbiddenException;
        }

        // Validate checked identifiers
        $checkedIds = post('checked');

        if (!$checkedIds || !is_array($checkedIds) || !count($checkedIds)) {
            Flash::error(Lang::get('backend::lang.list.delete_selected_empty'));
            return $this->controller->listRefresh();
        }

        // Create the model

View on GitHub (pinned to b608633a7e)