Hey there. Just spotted another lil bug when doing updates tonight. The error in the log is this:
Issue seemed to be coming from a missing endif statement in this section:
Code:
[29-Apr-2025 02:54:26 America/Detroit] PHP Fatal error: Uncaught Twig\Error\SyntaxError: Unexpected end of template. in /home/*****/styles/Game_Universal/template/ucp_register.html:118Stack trace:#0 /home/******/vendor/twig/twig/src/TokenParser/IfTokenParser.php(45): Twig\TokenStream->next()#1 /home/******/vendor/twig/twig/src/Parser.php(184): Twig\TokenParser\IfTokenParser->parse()#2 /home/******/vendor/twig/twig/src/Parser.php(97): Twig\Parser->subparse()#3 /home/******/vendor/twig/twig/src/Environment.php(562): Twig\Parser->parse()#4 /home/******/vendor/twig/twig/src/Environment.php(594): Twig\Environment->parse()#5 /home/******/vendor/twig/twig/src/Environment.php(408): Twig\Environment->compileSource()#6 /home/******/vendor/twig/twig/src/Environment.php(381): Twig\Environment->loadClass()#7 /home/******/phpbb/template/twig/environment.php(276): Twig\Environment->loadTemplate()#8 /home/******/vendor/twig/twig/src/Environment.php(359): phpbb\template\twig\environment->loadTemplate()#9 /home/******/vendor/twig/twig/src/Environment.php(318): Twig\Environment->load()#10 /home/******/phpbb/template/twig/environment.php(223): Twig\Environment->render()#11 /home/******/phpbb/template/twig/environment.php(193): phpbb\template\twig\environment->display_with_assets()#12 /home/******/phpbb/template/twig/twig.php(317): phpbb\template\twig\environment->display()#13 /home/******/includes/functions.php(4334): phpbb\template\twig\twig->display()#14 /home/******/includes/functions_module.php(1044): page_footer()#15 /home/******/ucp.php(79): p_master->display()#16 {main} thrown in /home/******/styles/Game_Universal/template/ucp_register.html on line 118
Code:
<!-- EVENT ucp_register_credentials_after --><hr /><!-- EVENT ucp_register_options_before -->{% if S_LANG_OPTIONS %}<dl><dt><label for="lang">{{ lang('LANGUAGE') ~ lang('COLON') }}</label></dt><dd><select name="lang" id="lang" onchange="change_language(this.value); return false;" tabindex="6" title="{{ lang('LANGUAGE') }}">{{ S_LANG_OPTIONS }}</select></dd></dl><!-- INCLUDE timezone_option.html -->{/code]making it this fixed it:[code]<!-- EVENT ucp_register_options_before -->{% if S_LANG_OPTIONS %}<dl><dt><label for="lang">{{ lang('LANGUAGE') ~ lang('COLON') }}</label></dt><dd><select name="lang" id="lang" onchange="change_language(this.value); return false;" tabindex="6" title="{{ lang('LANGUAGE') }}">{{ S_LANG_OPTIONS }}</select></dd></dl>{% endif %}<!-- INCLUDE timezone_option.html -->
Statistics: Posted by MandiFaux — Tue Apr 29, 2025 11:36 am