search.php
page. This is from the server logs:
Code: Select all
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: PHP Fatal error: Uncaught Twig_Error_Syntax: Unexpected character "$". in /home/[user]/[webdirectory]/ext/kinerity/bestanswer/styles/prosilver/template/event/search_results_topic_title_after.html:2, referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: Stack trace:, referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: #0 /home/[user]/[webdirectory]/vendor/twig/twig/lib/Twig/Lexer.php(216): Twig_Lexer->lexExpression(), referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: #1 /home/[user]/[webdirectory]/vendor/twig/twig/lib/Twig/Lexer.php(122): Twig_Lexer->lexBlock(), referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: #2 /home/[user]/[webdirectory]/phpbb/template/twig/lexer.php(137): Twig_Lexer->tokenize(Object(Twig_Source)), referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: #3 /home/[user]/[webdirectory]/cache/production/container_4335734bbdd20f586549a504dff5f80c.php(6125): phpbb\\template\\twig\\lexer->tokenize('{% if searchres...', '@kinerity_besta...'), referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: #4 /home/[user]/[webdirectory]/vendor/twig/twig/lib/Twig/Environment.php(677): phpbbtemplatetwiglexer_000000002286083e0000000033f87060->tokenize(Object(Twig_Source)), referer: https://www.[webdirectory]/index.php
[Wed Apr 17 18:05:27 2019] [warn] [client 23.16.30.83] mod_fcgid: stderr: #5 /home/[user]/[webdirectory]/vendor/twig/twig/lib/Twig/Environment.php(774): Twig_Envi in /home/[user]/[webdirectory]/ext/kinerity/bestanswer/styles/prosilver/template/event/search_results_topic_title_after.html on line 2, referer: https://www.[webdirectory]/index.php
Whether any post is marked as Best Answer has no influence - clearing the database data doesn't help.
Disabling the extension fixes the issue.
phpBB 3.2.5
PHP 7.1 and 7.2