octobercms/october · error · ApplicationException

Missing a hint name.

Error message

Missing a hint name.

What it means

Thrown by the onHideBackendHint AJAX handler when the POST body contains no 'name' value. It is a simple required-parameter guard: the request to dismiss a backend hint must identify which hint (by name) to hide, and post('name') returned empty.

Solutions

  1. Include the hint name in the AJAX request payload (the hint partial's hide button normally sends it)
  2. If customizing hint markup, preserve the data-post-data name attribute on the hide control
  3. Guard client-side before sending to avoid empty requests
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/classes/Controller.php:677 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/d5fc69677fb83749. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/classes/Controller.php:677

        }

        return $this->makeLayoutPartial('hint', [
            'hintName' => $name,
            'hintPartial' => $partial,
            'hintContent' => array_get($params, 'content'),
            'hintParams' => $params
        ] + $params);
    }

    /**
     * onHideBackendHint ajax handler to hide a backend hint, once hidden the partial
     * will no longer display for the user.
     * @return void
     */
    public function onHideBackendHint()
    {
        if (!$name = post('name')) {
            throw new ApplicationException('Missing a hint name.');
        }

        $preferences = UserPreference::forUser();
        $hiddenHints = $preferences->get('backend::hints.hidden', []);
        $hiddenHints[$name] = 1;

        $preferences->set('backend::hints.hidden', $hiddenHints);
    }

    /**
     * isBackendHintHidden checks if a hint has been hidden by the user.
     * @param  string $name Unique key name
     * @return bool
     */
    public function isBackendHintHidden($name)
    {
        $hiddenHints = UserPreference::forUser()->get('backend::hints.hidden', []);
        return array_key_exists($name, $hiddenHints);

View on GitHub (pinned to b608633a7e)