When debugging my site to figure out why I’m occasionally (and seemingly, quite randomly) not able to save any edits I’m making to my site I came across this.
Well, there are actually 37 similar errors to this:
Example
PHP Deprecated Creation of dynamic property EDD_SL_Plugin_Updater_Oxygen
Using the latest PHP and the latest version of Oxygen.
The error occurred since updating oxygen so naturally I tried restoring and using an older version.
I´ve also done the usual, signing all short codes, clearing all caches etc.
I’m just about to go in with a new staging copy to try it out with all my existing templates and components on a ‘new’ site.
2
Answers
It is PHP 8.2 https://php.watch/versions/8.2/dynamic-properties-deprecated
You may:
error_reporting(E_ALL);
Also you can add
#[AllowDynamicProperties]
before class inEDD_SL_Plugin_Updater_Oxygen.php
, but it will disappear after an updateBefore update the Oxygen builder and your PHP to the last version, check the requirements and recommendations of oxygen:
With that, you can’t use the last PHP version available.