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.
Comments
Hi,
I have passed it on to the dev team, and we will correct that.
Best regards
Good morning,
I wanted to add the following information:
I've noticed that, in addition to what I mentioned earlier, I also occasionally see the following logs:
[24-Nov-2025 15:02:31 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/kses.php on line 1807
[24-Nov-2025 15:02:31 UTC] PHP Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-content/themes/betheme/functions/theme-functions.php on line 1936
Best regards.
Thanks for letting us know.
I will pass this information as well.
Best regards