PHP Warnings in BeTheme with PHP 8.4
Hi,
I’m using BeTheme 28.1.12 together with WordPress 6.8.3 and PHP 8.4, and I’m seeing several PHP Warnings that occur only when accessing certain BeTheme backend pages, such as:
- wp-admin/admin.php?page=be-options
- wp-admin/admin.php?page=be-changelog
In the server error log, these warnings appear repeatedly:
PHP Warning: Undefined array key "std" in .../wp-content/themes/betheme/muffin-options/fields/color_multi/field_color_multi.php on line 17;
PHP Warning: foreach() argument must be of type array|object, null given in .../wp-content/themes/betheme/muffin-options/fields/color_multi/field_color_multi.php on line 17;
PHP Warning: foreach() argument must be of type array|object, null given in .../wp-content/themes/betheme/muffin-options/fields/color_multi/field_color_multi.php on line 17', referer: .../wp-admin/admin.php?page=be-options
They don’t cause any fatal errors and the frontend works normally, but the warnings are logged every time those backend pages are opened.
It looks like some internal option values or array keys may not be defined when running under PHP 8.4, which is stricter with undefined indexes and null array offsets.
Could you please confirm if these warnings are expected and whether there is an upcoming fix or adjustment to improve compatibility with PHP 8.4 for these sections of the BeTheme panel?
Thanks.
While waiting for a response from one of our team members, we recommend to check Support Center where it is highly likely that you will find the answer to your question in no time.
FAQ | Video Tutorials | How to