{"record":{"id":"2be6874d7d5b01bc","repo":"octobercms/october","slug":"invalid-syntax-in-the-partial-tag-line-s-2be687","errorCode":null,"errorMessage":"Invalid syntax in the partial tag. Line %s","messagePattern":"Invalid syntax in the partial tag\\. Line (.+?)","errorType":"exception","errorClass":"Twig\\Error\\SyntaxError","httpStatus":null,"severity":"error","filePath":"modules/system/twig/tokenparser/MailPartialTokenParser.php","lineNumber":54,"sourceCode":"        // Parse partial name (first argument)\n        $nodes['__partial_name'] = $this->parser->parseExpression();\n\n        // Parse optional parameters\n        while (!$stream->test(TwigToken::BLOCK_END_TYPE)) {\n            $current = $stream->next();\n\n            if ($current->test(TwigToken::NAME_TYPE, 'body') && !$stream->test(TwigToken::OPERATOR_TYPE, '=')) {\n                $hasBody = true;\n                continue;\n            }\n\n            if ($current->test(TwigToken::NAME_TYPE)) {\n                $paramName = $current->getValue();\n                $stream->expect(TwigToken::OPERATOR_TYPE, '=');\n                $nodes[$paramName] = $this->parser->parseExpression();\n                $paramNames[] = $paramName;\n            } else {\n                throw new TwigErrorSyntax(\n                    sprintf('Invalid syntax in the partial tag. Line %s', $lineno),\n                    $stream->getCurrent()->getLine(),\n                    $stream->getSourceContext()\n                );\n            }\n        }\n\n        $stream->expect(TwigToken::BLOCK_END_TYPE);\n\n        if ($hasBody) {\n            $body = $this->parser->subparse([$this, 'decidePartialEnd'], true);\n            $stream->expect(TwigToken::BLOCK_END_TYPE);\n        }\n\n        return new MailPartialNode($nodes, $paramNames, $body, $lineno);\n    }\n\n    /**","sourceCodeStart":36,"sourceCodeEnd":72,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/system/twig/tokenparser/MailPartialTokenParser.php#L36-L72","documentation":"Twig syntax error in MailPartialTokenParser::parse: the {% partial %} tag arguments did not match the expected grammar (a name expression followed by optional name=value parameters, with an optional body flag). A malformed partial tag in the mail template causes the compile to abort at the given line.","triggerScenarios":"Thrown at modules/system/twig/tokenparser/MailPartialTokenParser.php:54 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the reported line: quote values and pair each parameter with '='","Use only simple names and the 'body' keyword in mail partial tags"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}