{"record":{"id":"4830840184577c98","repo":"yiisoft/yii2","slug":"invalid-captcha-action-id-this-captchaaction","errorCode":null,"errorMessage":"Invalid CAPTCHA action ID: {$this->captchaAction}","messagePattern":"Invalid CAPTCHA action ID: (.+?)","errorType":"exception","errorClass":"yii\\base\\InvalidConfigException","httpStatus":null,"severity":"error","filePath":"framework/captcha/CaptchaValidator.php","lineNumber":84,"sourceCode":"    }\n\n    /**\n     * Creates the CAPTCHA action object from the route specified by [[captchaAction]].\n     * @return CaptchaAction the action object\n     * @throws InvalidConfigException\n     */\n    public function createCaptchaAction()\n    {\n        $ca = Yii::$app->createController($this->captchaAction);\n        if ($ca !== false) {\n            list($controller, $actionID) = $ca;\n            /** @var CaptchaAction|null $action */\n            $action = $controller->createAction($actionID);\n            if ($action !== null) {\n                return $action;\n            }\n        }\n        throw new InvalidConfigException('Invalid CAPTCHA action ID: ' . $this->captchaAction);\n    }\n\n    /**\n     * {@inheritdoc}\n     */\n    public function clientValidateAttribute($model, $attribute, $view)\n    {\n        ValidationAsset::register($view);\n        $options = $this->getClientOptions($model, $attribute);\n\n        return 'yii.validation.captcha(value, messages, ' . Json::htmlEncode($options) . ');';\n    }\n\n    /**\n     * {@inheritdoc}\n     */\n    public function getClientOptions($model, $attribute)\n    {","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/captcha/CaptchaValidator.php#L66-L102","documentation":"Error \"Invalid CAPTCHA action ID: {$this->captchaAction}\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/captcha/CaptchaValidator.php:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}