PHP 8.2 and later

Post

Posted
Rating:
#9276 (In Topic #3215)
Avatar
Standard member
Malatesa is in the usergroup ‘Well-settled’
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.



 
Online now: No Back to the top

Post

Posted
Rating:
#9290
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Noted. However, v11 does not support PHP 9 as PHP 9 has not yet been released. I don't think it will (or if it does, it'll probably be a later minor version like 11.1).

You can disable those errors under Setup → Configuration → Site options → Error handling

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#9442
Avatar
Standard member
Bitmain is in the usergroup ‘Fan in training’

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.



 

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.
Online now: No Back to the top

Post

Posted
Rating:
#9443
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Awesome to hear. I do know Composr is not compatible with PHP 8.2 yet. It's only good up to 8.0 and partially 8.1 I believe.

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top