Jul 13
PHP 8.4 deprecation warnings caused by Divi Supreme modules on Divi 4
we are experiencing a large number of PHP deprecation warnings caused by Divi Supreme Pro on our production website.
Environment
WordPress: 7.0.1
PHP: 8.4.16
Divi: Version 4 Version: 4.27.7
Divi Supreme Pro: Version 4.9.61
Website: meeet.de
Problem (written with the help of ChatGPT)
Our WordPress debug.log is growing extremely quickly because Divi Supreme generates a large number of PHP deprecation warnings on almost every request.
The recurring warning is:"PHP Deprecated: Creation of dynamic property DSM_Advanced_Tabs::$icon_path is deprecated in /wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1425"The same warning appears for many Divi Supreme module classes, including:DSM_AnimatedGradientTextDSM_Text_BadgesDSM_Before_After_ImageDSM_BlogCarouselDSM_BreadcrumbsDSM_ButtonDSM_CardDSM_CardCarouselDSM_Filterable_GalleryDSM_ImageCarouselDSM_PostCarouselDSM_Social_Share_ButtonsDSM_Star_RatingDSM_TextRotatorThere are also similar warnings for properties such as:$icon_element_selector$icon_element_classnameIn addition, these warnings point directly to Divi Supreme Pro files:PHP Deprecated: Creation of dynamic property DSM_Settings::$licence is deprecated in/wp-content/plugins/supreme-modules-pro-for-divi/includes/class.page-settings.php on line 11PHP Deprecated: Creation of dynamic property Dsm_Supreme_Modules_Pro_For_Divi::$settings_api is deprecated in/wp-content/plugins/supreme-modules-pro-for-divi/includes/class-dsm-supreme-modules-pro-for-divi.php on line 179Impact
The website itself currently continues to function, but the issue has a significant operational impact:
debug.log grew to approximately 5 GB
hundreds of warnings are written repeatedly
disk usage and file I/O increase continuously
backup, log-analysis and security tools can no longer process the file reliably
the repeated logging may contribute to performance degradation
Likely cause
PHP deprecated the creation of undeclared dynamic properties starting with PHP 8.2. It appears that several Divi Supreme classes assign properties such as $icon_path without declaring them in the class beforehand.
The warnings are triggered while the modules are registered through Divi’s ET_Builder_Element base class.
Expected behaviour
Divi Supreme modules should not generate PHP deprecation warnings under supported PHP versions.
Properties such as the following should either be explicitly declared in the relevant classes:
public $icon_path;
public $icon_element_selector;
public $icon_element_classname;
or handled in another PHP 8.2+ compatible way.
Steps to reproduce
Run WordPress with PHP 8.4.
Use Divi 4.
Install and activate the latest Divi Supreme Pro version.
Enable WordPress debug logging.
Load a frontend or admin page that initializes Divi Supreme modules.
Review wp-content/debug.log.
A large number of Creation of dynamic property ... is deprecated messages are written.
Questions
Could you please confirm:
Whether Divi Supreme Pro currently supports PHP 8.4 together with Divi 4.
Whether this is a known issue.
Whether a patched version is planned.
Whether there is a safe temporary workaround until an update is available.
We can provide additional logs, plugin version numbers and screenshots if required.
Kind regards
Frank Spandl
Meeet GmbH Berlin, Germany
Pending