Twig Errors on New Deployment
Posted: 03 May 2025, 12:10
Hello all,
Wondering if someone has encountered an issue similar to this before during a fresh deployment of X3? I recently stood up a basic Debian Docker container, running Apache 2.4.62 and PHP 8.4.2 on Debian 12. When running the x3_installer.php script, everything appears fine, with the web UI showing a status of "Server OK" in green, as well as all extended diagnostics information (except for exif data, which I don't believe matters). Additionally, all functionality within the panel appears to work properly, as I can change settings, disable diagnostics, upload photos, etc. etc. Finally, the add-on File application that comes with X3 also works as expected.
However, when browsing to the front page of my site, I get the following error displayed:
Please note that this is without any sort of reverse proxy configuration, I'm browsing directly to the site on my LAN. I'm unsure where to begin troubleshooting this issue, as the only functionality which is broken is the front end, and I'm unfamiliar with Twig. Any help is greatly appreciated!
Wondering if someone has encountered an issue similar to this before during a fresh deployment of X3? I recently stood up a basic Debian Docker container, running Apache 2.4.62 and PHP 8.4.2 on Debian 12. When running the x3_installer.php script, everything appears fine, with the web UI showing a status of "Server OK" in green, as well as all extended diagnostics information (except for exif data, which I don't believe matters). Additionally, all functionality within the panel appears to work properly, as I can change settings, disable diagnostics, upload photos, etc. etc. Finally, the add-on File application that comes with X3 also works as expected.
However, when browsing to the front page of my site, I get the following error displayed:
Code
Deprecated: Twig_Environment::__construct(): Implicitly marking parameter $loader as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/app/parsers/Twig/Environment.php on line 84
[b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]Warning[/font][/size][/b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]: Cannot modify header information - headers already sent by (output started at /var/www/html/app/parsers/Twig/Environment.php:84) in [/font][/size][b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]/var/www/html/app/cache.inc.php[/font][/size][/b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif] on line [/font][/size][b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]123[/font][/size][/b]
[b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]Deprecated[/font][/size][/b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]: Twig_NodeVisitor_SafeAnalysis::intersectSafe(): Implicitly marking parameter $a as nullable is deprecated, the explicit nullable type must be used instead in [/font][/size][b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]/var/www/html/app/parsers/Twig/NodeVisitor/SafeAnalysis.php[/font][/size][/b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif] on line [/font][/size][b][size=120][font=Helvetica Neue, Helvetica, Roboto, Arial, sans-serif]115[/font][/size][/b]
Deprecated: Twig_NodeVisitor_SafeAnalysis::intersectSafe(): Implicitly marking parameter $b as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/app/parsers/Twig/NodeVisitor/SafeAnalysis.php on line 115