Hallo Marcel,
ich bin gerade dabei, die Sprachvariablen umzubenennen und bekomme bei dem Inhalt für den Index eine Fehlermeldung
clan.index.stats.detail
Ausgangscode
Code
{#$stats[clans]} {plural value=$stats[clans] 1=CLAN_LANGUAGE_SG_NOMINATIVE|language other=CLAN_LANGUAGE_PL_NOMINATIVE|language} - {#$stats[authors]} Gründer -{plural value=$stats[comments] 1='1 Kommentar' other='# Kommentare'} ({#$stats[commentsPerDay]} Kommentare pro Tag)
Meine Änderung
Code
{#$stats[clans]} {plural value=$stats[clans] 1=Foren WG other=Foren WGs - {#$stats[authors]} Gründer -{plural value=$stats[comments] 1='1 Kommentar' other='# Kommentare'} ({#$stats[commentsPerDay]} Kommentare pro Tag)
Wenn ich nur die erste Variable änder in Foren WG und die Plural Variante weglasse, ist der Fehler weg. Wenn ich die Plural Form umbenenne, taucht der Fehler auf.
Fehlercode:
Code
Sat, 05 Nov 2022 16:34:10 +0000
Message: Template compilation failed: unexpected '[' in tag 'Foren WGs - {#$stats[authors]' in template 'clanList' on line 108
PHP version: 8.0.21
WoltLab Suite version: 5.5.6
Request URI: GET /clan/
Referrer:
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Peak Memory Usage: 13684408/268435456
======
Error Class: wcf\system\exception\SystemException
Error Message: Template compilation failed: unexpected '[' in tag 'Foren WGs - {#$stats[authors]' in template 'clanList' on line 108
Error Code: 0
File: /customers/shalin/home/borderline-forum.eu/lib/system/template/TemplateScriptingCompiler.class.php (1766)
Extra Information: -
Stack Trace: [{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateScriptingCompiler.class.php","line":1193,"function":"compileVariableTag","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateScriptingCompiler.class.php","line":656,"function":"parseTagArgs","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateScriptingCompiler.class.php","line":625,"function":"compileFunctionPlugin","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateScriptingCompiler.class.php","line":375,"function":"compileTag","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateCompiler.class.php","line":35,"function":"compileString","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateEngine.class.php","line":497,"function":"compile","class":"wcf\\system\\template\\TemplateCompiler","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/template\/TemplateEngine.class.php","line":343,"function":"compileTemplate","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/page\/AbstractPage.class.php","line":390,"function":"display","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/page\/AbstractPage.class.php","line":135,"function":"show","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/request\/Request.class.php","line":90,"function":"__run","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/lib\/system\/request\/RequestHandler.class.php","line":107,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"\/customers\/shalin\/home\/borderline-forum.eu\/clan\/index.php","line":4,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":[]}]
Alles anzeigen
Was mache ich da falsch?
LG
Shalin