twigphp/Twig
Documented errors, page 2 of 2. Back to twigphp/Twig
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Cannot merge incompatible values for key | exception | error | twig, merge-conflict, html-attr |
| Unable to format the given list | exception | error | php, intl, icu, formatting |
| Macro " " is not defined in template " ". | exception | error | template, macro, runtime |
| The "merge" filter expects a sequence or a mapping, got | exception | error | twig, filter, type-error, merge |
| Only iterable values can be appended to SeparatedTokenList. | exception | error | twig, html-extra, separated-token-list, append, type-error |
| Tag " " is already registered. | exception | error | twig, extension, token-parser, duplicate-registration |
| Unable to add a token parser as extensions have already… | exception | error | php, twig, lifecycle, extensions |
| Enum " " does not exist. | exception | error | twig, enum, class-not-found, argument-validation |
| Trimming side must be "left", "right" or "both". | exception | error | twig, argument-validation, trim, runtime-error |
| A template name cannot contain NUL bytes. | exception | error | template, loader, security, input-validation |
| The "cycle" function expects a non-empty sequence. | exception | error | twig, runtime-error, empty-array |
| The " " attribute value cannot be JSON encoded. | exception | error | twig, json, html-attr |
| Locale " " is not supported. | exception | error | php, twig, i18n, locale, invalid-argument |
| The "has some" test expects a sequence or a mapping, got | exception | error | twig, test, type-mismatch, runtime-error |
| Unable to add test " " as extensions have already been… | exception | error | php, twig, lifecycle, extensions |
| A block chain cannot contain templates from different Twig… | exception | error | php, twig, logic-exception, environment |
| SeparatedTokenList can only be constructed from iterable or… | exception | error | twig, html-extra, separated-token-list, type-error |
| The "round" filter only supports the "common", "ceil", and… | exception | error | twig, filter, invalid-enum-value, round |
| Supported guard types are function, filter and test | exception | error | twig, guard, syntax-error, invalid-enum |
| The sandbox requires a strict security policy, call… | exception | error | twig, php, security, sandbox, configuration |
| The "sort" filter expects a sequence or a mapping, got | exception | error | twig, filter, type-error, sort |
| Unexpected character | exception | error | lexer, template, syntax-error, twig |
| Neither the property "%1$s" nor one of the methods… | exception | error | twig, runtime-error, strict-variables, property-access |
| Function " " is not allowed. | exception | error | twig, sandbox, security-policy, functions |
| Unable to create the cache directory | exception | error | twig, cache, filesystem, permissions, mkdir |
| Attributes using InlineStyle can only be merged with… | exception | error | twig, html-extra, inline-style, merge, type-error |
| Calling " " method on a " " object is not allowed. | exception | error | twig, sandbox, security-policy, methods |
| The string to escape is not a valid UTF-8 string. | exception | error | twig, escaping, utf-8, encoding, runtime-error |
| Using " " for the macro " " of " " is not supported. You… | exception | error | twig, ast, macro |
| Cannot assign to " ", only variables can be assigned in… | exception | error | twig, destructuring, syntax-error, template-compilation |
| Using " " for the value of node " " of " " is not… | exception | error | twig, ast, node |
| The block ' ' has already been defined line . | exception | error | twig, blocks, duplicate-definition, syntax-error |
| Tag " " is not allowed. | exception | error | twig, sandbox, security-policy |
| A block chain requires at least one template. | exception | error | php, twig, invalid-argument, empty-collection |
| Unable to find one of the following templates | exception | error | twig, loader, template-not-found |
| Unexpected " ". | exception | error | lexer, brackets, unbalanced, twig |
| Unknown attribute type | exception | error | twig, enum, html-attr |
| The " " directory does not exist (" "). | exception | error | twig, filesystem, path-config, directory |
| The variadic argument | exception | error | twig, macro, syntax-error, template |
| Expected endmacro for macro | exception | error | twig, macro, syntax-error, template-parsing |
| The variadic argument | exception | error | twig, macro, variadic, compile-time |
| Invalid escaping strategy | exception | error | twig, escaping, invalid-argument |
| The "random" function cannot pick from an empty sequence or… | exception | error | twig, runtime-error, empty-array |
| A default value for an argument must be a constant (a… | exception | error | twig, macro, syntax-error, default-value |
| Block " " is not defined in trait " ". | exception | error | twig, template-inheritance, trait, blocks |
| The " " modifier takes exactly one argument (2 given). | exception | error | twig, template-syntax, argument-count, cache-extension |
| The first argument of the "enum_cases" function must be a… | exception | error | twig, enum, type-mismatch, compile-time |
| The first argument of the "enum" function must be the name… | exception | error | twig, enum, empty-enum, compile-time |
| Unable to register extension | exception | error | twig, extension, duplicate-registration |
| A " " can only contain " " nodes; replacing the macro " "… | exception | error | twig, ast, macro |
| Calling " " property on a " " object is not allowed. | exception | error | twig, sandbox, security-policy, properties |
| Filter " " is not allowed. | exception | error | twig, sandbox, security-policy, filters |
| Unable to find template | exception | error | twig, filesystem, template-not-found |
| There are no registered paths for namespace | exception | error | twig, namespace, template-not-found |
| Cannot use "extend" in a block. | exception | error | twig, template-inheritance, syntax-error |
| Test " " is already registered. | exception | error | twig, extension, test, duplicate-registration |
| %sUnexpected token " " (" " expected ). | exception | error | twig, syntax-error, token-stream, template |
| The date format " " does not exist, known formats are: " ". | exception | error | php, intl, date, invalid-argument |
| The first argument of the "enum_cases" function must be the… | exception | error | twig, enum, compile-time, class-not-found |
| Only "include" tags are allowed within a "sandbox" section. | exception | error | twig, sandbox, security, syntax-error |
| Unable to add function | exception | error | twig, extension, function, initialization-order |
| The documentation target for a tag can only be set once. | exception | error | twig, php, parser, api-misuse |
| Variable does not exist. | exception | error | twig, runtime, undefined-variable, template |
| Variables passed to the "with" tag must be a mapping. | exception | error | twig, with-tag, runtime, type-error |
| Cannot use "extend" in a macro. | exception | error | twig, macros, template-inheritance, syntax-error |
| Multiple extends tags are forbidden. | exception | error | twig, template-inheritance, syntax-error |
| Unable to format the given number as a currency. | exception | error | intl, currency, formatter |
| Unexpected end of file: Unclosed "verbatim" block. | exception | error | lexer, verbatim, unclosed-block, twig |
| A block must start with a tag name. | exception | error | twig, parser, syntax-error, template-syntax |
| Only empty strings may be passed as string arguments to… | exception | error | twig, type-error, html-attr |
| The first argument of the "enum" function must be a string. | exception | error | twig, enum, type-mismatch, compile-time |
| The "column" filter expects a sequence or a mapping, got | exception | error | twig, filter, column, iterable |
| Malformed namespaced template name | exception | error | twig, namespace, invalid-name-format |
| The template references in a "use" statement must be a… | exception | error | twig, use, syntax-error, template |
| Unclosed comment. | exception | error | lexer, comment, unclosed, twig |
| Unable to format the given date. | exception | error | intl, date-format, formatter |
| Only iterable values can be appended to InlineStyle. | exception | error | twig, html-extra, inline-style, append, type-error |
| Unable to format the given number. | exception | error | intl, number-format, formatter |
| The " " modifier takes exactly one argument (0 given). | exception | error | twig, template-syntax, argument-count, cache-extension |
| Accessing \Twig\Template attributes is forbidden. | exception | error | twig, runtime-error, template-internals |
| The number formatter rounding mode | exception | error | php, intl, number-formatting, rounding |
| Unable to add filter | exception | error | twig, extension, filter, initialization-order |
| Unexpected end of template. | exception | error | twig, syntax-error, template, unclosed-tag |
| The "filter" filter expects a sequence/mapping or… | exception | error | twig, filter, arrow-function, iterable |
| The argument " " in macro " " cannot be defined because the… | exception | error | twig, macro, compile-time, reserved-name |
| The number formatter padding position | exception | error | php, intl, number-formatting, padding |
| The list type " " does not exist, known types are: " ". | exception | error | php, intl, list-formatting, invalid-argument |
| The number formatter attribute | exception | error | php, intl, number-formatting, invalid-argument |
| When using set with a block, you cannot have a multi-target. | exception | error | twig, set, syntax-error, template |
| The list width " " does not exist, known widths are: " ". | exception | error | php, intl, list-formatting, invalid-argument |
| The style " " does not exist, known styles are: " ". | exception | error | php, intl, number-formatting, invalid-argument |
| The variadic argument | exception | error | twig, macro, syntax-error, template |
| The time format " " does not exist, known formats are: " ". | exception | error | php, intl, date, invalid-argument |