Hi there,
Thank you for writitng! Can you please let us know if you are still experiencing issues when using the latest versions of WordPress and PHP, as you are currently using quite old versions?
Thank you!
WordPress 6.7.4 has been released September 30, 2025 and is quite new.
Issue happens also with WordPress 6.8.3, also released September 30, 2025.
Issue also happens with newer PHP versions as your plugin Form Field library is using quite old PHP functionality for creation of dynamic properties, which is not supported any more since release of PHP 8.2.0 on December 8, 2022.
Hi @ov3rfly,
I tried to replicate this with the issue on same wp and php as you but it dont occur at our end, could you please share any instructions you may have which can help us replicate this?
Best regards
Instructions are described in first post, here again:
- Enable
WP_DEBUG & WP_DEBUG_LOG to generate debug.log, see also WordPress documentation.
- Install & activate your plugin.
- Open backend WordPress > Appearence > Menus editor with a classic theme which has this menu item and a saved menu.
- Find something like this in
debug.log
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Checkbox::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Textarea::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Select::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Select::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Select::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Text::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Text::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: Creation of dynamic property Kucrut_Form_Field_Select::$args is deprecated in .../wp-content/plugins/menu-icons/includes/library/form-fields.php on line 186
[02-Nov-2025 20:04:34 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-includes/formatting.php on line 4724
Hey @ov3rfly,
Thank you for the report. We’ve reported it to the team, and a fix will be deployed in the upcoming version of the plugin.
In the meantime, if you want you can apply the following changes to your files to fix the issues: https://github.com/Codeinwp/wp-menu-icons/pull/324/files
Thanks @hardeepasrani, the linked fix works fine for the Creation of dynamic property errors.
Still getting the last line in above described testcase:
[07-Nov-2025 15:11:02 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-includes/formatting.php on line 4705
It is triggered when rendering textarea field with no value via esc_textarea() line here in form-fields.php
/**
* Field: Textarea
*/
class Kucrut_Form_Field_Textarea extends Kucrut_Form_Field {
protected $template = '<textarea%s>%s</textarea>';
protected $attributes = array(
'class' => 'widefat',
'cols' => 50,
'rows' => 5,
);
public function render() {
printf( // WPCS: XSS ok.
$this->template,
$this->build_attributes(),
esc_textarea( $this->field['value'] )
);
}
}
@hardeepasrani Saw the additional fix which was added at GitHub in the meantime and deployed it, it seems to fix the second issue as well. Thank you very much for the quick response and the good coordination in solving the problems.
@ov3rfly Glad to know it worked, and thank you for detailed debugging logs for helping us debug them.
When will the fixes finally be added to the plugin?