Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
christianch
Experienced
Topic Author
Posts: 52
Joined: 08 Mar 2021, 03:27

PHP Version 8.4.24

28 Sep 2026, 05:43

Hi Karl,

I use latest release X3.34.2, but with php since 8.2 to 8.4
I meet an error: 
Deprecated: Twig_NodeVisitor_SafeAnalysis::intersectSafe(): Implicitly marking parameter $b as nullable is deprecated, the explicit nullable type must be used instead in /home/clients/3e1464e2d1ccdcc0b088eeff49550ae7/web/Bleau/app/parsers/Twig/NodeVisitor/SafeAnalysis.php on line 115
Coud you help me?
many thanks
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14491
Joined: 30 Sep 2006, 03:37

Re: PHP Version 8.4.24

29 Sep 2026, 11:17

Hi Christian,
christianch wrote:
Deprecated: Twig_NodeVisitor_SafeAnalysis::intersectSafe(): Implicitly marking parameter $b as nullable is deprecated, the explicit nullable type must be used instead in /home/clients/3e1464e2d1ccdcc0b088eeff49550ae7/web/Bleau/app/parsers/Twig/NodeVisitor/SafeAnalysis.php on line 115
This is really just "deprecated notice" because you are using PHP 8.4. I will fix it in a maintenance release soon, but in the mean time, you would need to do one of the following:
  1. Downgrade to PHP 8.3.
  2. Suppress E_DEPRECATED notices from output (should be default on production servers).
AI instructions for #2:

---

You can remove this deprecation warning by filtering out
E_DEPRECATED notices in your PHP configuration or runtime code. If you have access to your php.ini file, update the error_reporting directive:
Code
error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
On production servers, you should also ensure warnings aren’t printed directly to the screen by setting:
Code
display_errors = Off
log_errors = On
If you use Apache .htaccess, you can set:
Code
php_value error_reporting 24575
php_flag display_errors Off
 
User avatar
PeteD
Posts: 1
Joined: Today, 05:14

Re: PHP Version 8.4.24

Today, 05:54

Hi,
I also had same issue but cleared my cache directory thru my host cpanel (not the web panel) and it cleared the error. So far no problems and the site is working on php 8.5. 

Your fix in the next version will probably be better but my work around might help someone else.

Looking forward to v4.... :)