Unexpected tag {_}, did you mean {=}
- MKI-Miro
- Člen | 277
Ahojte
Po aktualizacii balickov dostavam tuto chybu vzdy ked zadam zlu URL (pri spravnych url apliakcia funguje)
Unexpected tag {_}, did you mean {=}? (in '...\UI/@layout.latte'
<a n:href="Account:default">{$user->getIdentity()->firstname} {$user->getIdentity()->lastname}</a> / <a n:href="Sign:out">{_'logout'}</a>
nepaci sa mu {_'logout'} pricom ak to prepisem na {=‚logout‘|translate} tak to uz chybu nehlasi
Translator v BasePresentri
public function beforeRender()
{
$this->template->setTranslator($this->translator);
class Translator implements \Nette\Localization\Translator
{
public function __construct(private int $languageId)
{
}
public function translate(string|\Stringable $message, mixed ...$parameters): string
{
V com moze byt problem?
dakujem
- David Grudl
- Nette Core | 8218
To by mohlo mít souvislost s řešením tohoto issue https://github.com/…n/issues/320, zjistím
- MKI-Miro
- Člen | 277
@DavidGrudl tu je link
https://www.mki.sk/webproject.zip
a este callstack:
...\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:178
...\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:114
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:57
...\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:92
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:130
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:83
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:54
...\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:92
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:130
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:83
...\latte\latte\src\Latte\Compiler\TemplateParserHtml.php:54
...\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:92
...\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:73
\vendor\latte\latte\src\Latte\Engine.php:158
vendor\latte\latte\src\Latte\Engine.php:122
\vendor\latte\latte\src\Latte\Engine.php:246
\vendor\latte\latte\src\Latte\Engine.php:96
...\vendor\latte\latte\src\Latte\Runtime\Template.php:173
...\vendor\latte\latte\src\Latte\Runtime\Template.php:152
\vendor\latte\latte\src\Latte\Engine.php:72
...\application\src\Bridges\ApplicationLatte\Template.php:46
...\application\src\Application\Responses\TextResponse.php:41
...\vendor\nette\application\src\Application\Application.php:158
...\vendor\nette\application\src\Application\Application.php:84
\www\index.php:10
Editoval MKI-Miro (21. 4. 10:23)
- MKI-Miro
- Člen | 277
Tak dostal som sa o krok dalej na tuto chybu
User Warning
Invalid link: Cannot load presenter 'Error:Sign', class 'App\UI\Error\Sign\SignPresenter' was not found
Divne je ze SignPresenter hlada na adrese App\UI\Error\Sign\SignPresenter a nie na App\UI\Sign\SignPresenter
Pricom to padne na tomto riadku:
<a n:href="Sign:up">{_'registration'}</a> / <a n:href="Sign:in">{_'login'}</a>
Editoval MKI-Miro (21. 4. 14:01)
- David Grudl
- Nette Core | 8218
MKI-Miro napsal(a):
asi som na to prisiel pisnaim posledneho prispevku Error4xx presenter nemal extends BasePresenter
Tě normálně zabiju 🤦♂️