WebVPF

Results 12 comments of WebVPF

If I remove string `{% component 'ShareButtons' %}`, then the site starts working.

@bennothommo like this? ``` 74 | ReflectionClass->__toString() | ~/vendor/twig/twig/src/Node/Expression/CallExpression.php | 303 73 | Twig\Node\Expression\CallExpression->reflectCallable(…) | ~/vendor/twig/twig/src/Node/Expression/CallExpression.php | 30 72 | Twig\Node\Expression\CallExpression->compileCallable(…) | ~/vendor/twig/twig/src/Node/Expression/FilterExpression.php | 38 71 | Twig\Node\Expression\FilterExpression->compile(…) | ~/vendor/twig/twig/src/Compiler.php...

@bennothommo I already tried clearing the cache. This code worked for several years until this day. The website is down today after an update. Broke on those pages where there...

@bennothommo Here is my component file `{% component 'ShareButtons' %}` https://github.com/WebVPF/wn-share-plugin/blob/master/components/buttons/default.htm Does it have any error?

@LukeTowers there he is https://github.com/WebVPF/wn-share-plugin/blob/master/components/Buttons.php

@bennothommo, @LukeTowers This twig is causing the error ``` {{ ('webvpf.share::lang.buttons.' ~ btnId )|trans }} ```

@bennothommo When I include in another component

@bennothommo In Winter 1.2 the system markup filter `|trans ` was removed? I don't see it in the documentation https://wintercms.com/docs/markup/filter-app ``` {{ "acme.demo::lang.string.example"|trans }} ``` It is he who is...

Why compiling files with translations is bad: - because we will remove the ability for the user to redefine the translation as he needs https://wintercms.com/docs/plugin/localization#overriding

`unique` and `index` ``` $table->unique('email'); $table->index('state'); ```