{"record":{"id":"4b1f48af1ffe3eda","repo":"octobercms/october","slug":"errormessage-property-this-propertydefinitio","errorCode":null,"errorMessage":"${errorMessage} Property: ${this.propertyDefinition.property}","messagePattern":"(.+?) Property: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/foundation/controls/inspector/inspector.editor.base.js","lineNumber":128,"sourceCode":"    }\n\n    /**\n     * Updates displayed value in the editor UI. The value is already set\n     * in the Inspector and should be loaded from Inspector.\n     */\n    BaseEditor.prototype.updateDisplayedValue = function(value) {\n    }\n\n    BaseEditor.prototype.getPropertyName = function() {\n        return this.propertyDefinition.property\n    }\n\n    BaseEditor.prototype.getUndefinedValue = function() {\n        return this.propertyDefinition.default === undefined ? undefined : this.propertyDefinition.default\n    }\n\n    BaseEditor.prototype.throwError = function(errorMessage) {\n        throw new Error(errorMessage + ' Property: ' + this.propertyDefinition.property)\n    }\n\n    BaseEditor.prototype.getInspectableElement = function() {\n        return this.getRootSurface().getInspectableElement()\n    }\n\n    BaseEditor.prototype.isEmptyValue = function(value) {\n        return value === undefined\n            || value === null\n            || (typeof value == 'object' && $.isEmptyObject(value) )\n            || (typeof value == 'string' && $.trim(value).length === 0)\n            || (Object.prototype.toString.call(value) === '[object Array]' && value.length === 0)\n    }\n\n    //\n    // Validation\n    //\n","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/foundation/controls/inspector/inspector.editor.base.js#L110-L146","documentation":"In capture mode (`{% put name %}` without `=`), PutTokenParser only accepts bare NAME tokens as options between the target name and the block end — anything else (a quoted string, a number, an operator) reaches the else branch and throws this SyntaxError. The line number in the message comes from the token that started the `{% put %}` tag.","triggerScenarios":"Writing `{% put sidebar 'left' %}` or `{% put sidebar = 'left' %}` with a stray trailing token after the option loop; any quoted literal or number where a bare option word is expected before `{% endput %}`-style capture begins.","commonSituations":"Trying to pass a mode/argument to the captured block, e.g. `{% put sidebar default %}` is fine but `{% put sidebar 'default' %}` fails; hand-editing and leaving punctuation behind.","solutions":["Remove the offending token — capture-mode options must be unquoted single words (NAME tokens), e.g. `{% put sidebar %}`.","If you meant to assign a value, use assignment mode: `{% put sidebar = 'left' %}`.","Pass configuration inside the body instead of the tag arguments when it is not a bare word."],"exampleFix":"// before\n{% put sidebar 'left' %}<nav>...</nav>{% endput %}\n\n// after\n{% put sidebar %}<nav>...</nav>{% endput %}","handlingStrategy":"try-catch","validationCode":"// Lint: in capture mode only bare word options are allowed before %}\nif (preg_match('/{%-?\\s*put\\s+[\\w]+\\s+[^%\\w\\s-][^%]*%-?}/', $template)) {\n    throw new RuntimeException('Non-word token in {% put %} tag arguments');\n}","typeGuard":null,"tryCatchPattern":"try {\n    $twig->load($template);\n} catch (Twig\\Error\\SyntaxError $e) {\n    // 'Invalid syntax in the put tag. Line N' — inspect that line for quoted/stray tokens\n    throw $e;\n}","preventionTips":["In capture mode pass only bare option words; never quoted strings or numbers.","Use assignment mode {% put x = value %} to assign literals.","Run templates through a Twig parse in CI."],"tags":["twig","october-cms","put","template-syntax","compile-time"],"backgroundTag":"twig-syntax-error","analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}