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

Yesterday, 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

Today, 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