PHP Warning: Undefined array key “label” …
-
Menu Icons 0.13.2 and WordPress 6.1.1 causes many of these entries in error log on a client website:
PHP Warning: Undefined array key "label" in ../wp-admin/includes/media.php on line 1987
Problem is this in
vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php
at line 508 in a function “Add promo to attachment modal” where nolabel
is defined.$fields['optimole'] = array( 'input' => 'html', 'html' => '<div id="ti-optml-notice-helper"></div>', );
Fields added via
attachment_fields_to_edit
filter should contain alabel
– at least similar to this:$fields['optimole'] = array( 'input' => 'html', 'html' => '<div id="ti-optml-notice-helper"></div>', 'label' => '' );
Maybe similar issue as described here (not sure why that issue is currently marked as resolved).
Feel free to mark this issue as resolved after a plugin update with a fix has been released, not before, thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘PHP Warning: Undefined array key “label” …’ is closed to new replies.