{"record":{"id":"006d399eee5a1fb4","repo":"livewire/livewire","slug":"unable-to-evaluate-dynamic-session-key-placeholder","errorCode":null,"errorMessage":"Unable to evaluate dynamic session key placeholder: ${matches[0]}","messagePattern":"Unable to evaluate dynamic session key placeholder: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/Features/SupportSession/BaseSession.php","lineNumber":58,"sourceCode":"    protected function write()\n    {\n        Session::put($this->key(), $this->getValue());\n    }\n\n    protected function key()\n    {\n        if (! $this->key) {\n            return (string) 'lw' . crc32($this->component->getName() . $this->getName());\n        }\n\n        return self::replaceDynamicPlaceholders($this->key, $this->component);\n    }\n\n    static function replaceDynamicPlaceholders($key, $component)\n    {\n        return preg_replace_callback('/\\{(.*)\\}/U', function ($matches) use ($component) {\n            return data_get($component, $matches[1], function () use ($matches) {\n                throw new \\Exception('Unable to evaluate dynamic session key placeholder: '.$matches[0]);\n            });\n        }, $key);\n    }\n}\n","sourceCodeStart":40,"sourceCodeEnd":63,"githubUrl":"https://github.com/livewire/livewire/blob/1a3fde34c5789366411c450cf4e630356f18b584/src/Features/SupportSession/BaseSession.php#L40-L63","documentation":"Error \"Unable to evaluate dynamic session key placeholder: ${matches[0]}\" thrown in livewire/livewire.","triggerScenarios":"Thrown at src/Features/SupportSession/BaseSession.php:58 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":"1a3fde34c5789366411c450cf4e630356f18b584","analyzedAt":"2026-08-17T02:02:20.412Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}