Creation of dynamic property depreciated

Post

Posted
Rating:
#9492 (In Topic #3339)
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
Hi,
I have just created a brand new site from a softaculous installer which has installed composr v 10.0.43, and my hosting site php version is 8.2.13, however I am seeing a large number of errors similar to

Deprecated: Creation of dynamic property Breadcrumb_substitution_loader::$substitution_current_match_key is deprecated in /home/vol8_8/[server]/htdocs/sources/breadcrumbs.php on line 157

Deprecated: Creation of dynamic property Tempcode::$is_empty is deprecated in /home/vol8_8/[server]/htdocs/sources/tempcode.php on line 1930

Any thoughts as to how this can be resolved

Thanks
Chris
Online now: No Back to the top

Post

Posted
Rating:
#9493
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’

supertramp4 said

Hi,
I have just created a brand new site from a softaculous installer which has installed composr v 10.0.43, and my hosting site php version is 8.2.13, however I am seeing a large number of errors similar to

Deprecated: Creation of dynamic property Breadcrumb_substitution_loader::$substitution_current_match_key is deprecated in /home/vol8_8/[server]/htdocs/sources/breadcrumbs.php on line 157

Deprecated: Creation of dynamic property Tempcode::$is_empty is deprecated in /home/vol8_8/[server]/htdocs/sources/tempcode.php on line 1930

Any thoughts as to how this can be resolved

Thanks
Chris

Hello,

[Edited] This is because you are running PHP 8.2. Composr CMS does not yet support PHP versions above 8.0. You can probably run Composr on 8.1 or 8.2, but you will get some deprecation errors. We're working on 8.1 right now but have not yet addressed 8.2. PHP 9 is going to remove a lot of past functionality which Composr uses, and Composr treats deprecations seriously, thus why you are receiving them.

The suggested workaround is to run Composr on PHP 8.0 for now.

Last edit: by Patrick Schmalstig


  • 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.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top