PHP 8.2 and later
Example
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
Deprecated: Creation of dynamic property Tempcode::$pure_lang is deprecated in /home/witches/public_html/sources/tempcode.php on line 314
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
And this leads to: Dynamic Properties are deprecated - PHP 8.2 • PHP.Watch
There may be a PHP.ini setting to defeat this, but as of PHP 9+, these will be fatal errors.
You can disable those errors under Setup → Configuration → Site options → Error handling
Malatesa said
With fresh install of v11, using PHP 8.2 or later, we get a ton of:
Example
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
Deprecated: Creation of dynamic property Tempcode::$pure_lang is deprecated in /home/witches/public_html/sources/tempcode.php on line 314
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
Deprecated: Creation of dynamic property Tempcode::$is_all_static is deprecated in /home/witches/public_html/sources/tempcode.php on line 1707
And this leads to: Dynamic Properties are deprecated - PHP 8.2 • PHP.Watch
There may be a PHP.ini setting to defeat this, but as of PHP 9+, these will be fatal errors.
From “Post #9276”, 25th Feb 2012
I solved this very easy.
In .htaccess file (root file) you need to add following lines:
<FilesMatch "\.(inc|php5|php4|php3|php2|php|phtml)$">
SetHandler application/x-lsphp74
</FilesMatch>
I have several webpages, and now I am strugling with Joomla…. And latest version runs only on php 8.x, so I have tons of "Deprecated…." messages, very anoying for working in admin panel.
Since change in .htaccess works like a charm. Composr and Joomla.
