{"record":{"id":"9d93c98976fa98f7","repo":"octobercms/october","slug":"invalid-syntax-in-the-put-tag-line-s","errorCode":null,"errorMessage":"Invalid syntax in the put tag. Line %s","messagePattern":"Invalid syntax in the put tag\\. Line (.+?)","errorType":"exception","errorClass":"TwigErrorSyntax","httpStatus":null,"severity":"error","filePath":"modules/cms/twig/tokenparser/PutTokenParser.php","lineNumber":67,"sourceCode":"        else {\n            // Capture mode\n            $capture = true;\n\n            if (count($names) > 1) {\n                throw new TwigErrorSyntax(\n                    'When using put with a block, you cannot have multiple targets.',\n                    $stream->getCurrent()->getLine(),\n                    $stream->getSourceContext()\n                );\n            }\n\n            while (!$stream->test(TwigToken::BLOCK_END_TYPE)) {\n                $current = $stream->next();\n                if ($current->test(TwigToken::NAME_TYPE)) {\n                    $options[] = strtolower(trim($current->getValue()));\n                }\n                else {\n                    throw new TwigErrorSyntax(\n                        sprintf('Invalid syntax in the put tag. Line %s', $lineno),\n                        $stream->getCurrent()->getLine(),\n                        $stream->getSourceContext()\n                    );\n                }\n            }\n\n            $stream->expect(TwigToken::BLOCK_END_TYPE);\n            $values = $this->parser->subparse([$this, 'decidePutEnd'], true);\n\n            // Deprecated usage: {% endput overwrite %}\n            if ($stream->test(TwigToken::NAME_TYPE)) {\n                $options[] = $stream->next()->getValue();\n            }\n\n            $stream->expect(TwigToken::BLOCK_END_TYPE);\n        }\n","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/twig/tokenparser/PutTokenParser.php#L49-L85","documentation":"Error \"Invalid syntax in the put tag. Line %s\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/twig/tokenparser/PutTokenParser.php:67 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}