Hello,
I get this notification when I scan my site: Notice : Undefined index: description in /home/bfrstfi/www/wp-content/plugins/envato-market/inc/class-envato-market-api.php on line 384
What should I do?
Thanks
Have you tried to update the extension if thereâs a newer version?
Yes, the latest version is installed.
I have this issue too - a warning comes up in the Wordpress admin Warning: Undefined array key âdescriptionâ ⌠line 384
Iâm using version 2.0.8-- as far as I can tell, thatâs the latest. The error occurs on this line
âdescriptionâ => self::remove_non_unicode( strip_tags( $plugin[âwordpress_plugin_metadataâ][âdescriptionâ] ) ),
I was wondering-- all the other lines in that array start with ( ! empty
except this one
Yeah, it looks like they forgot to wrap that line in an empty()
check like the rest⌠oops! Iâll submit a pull request to fix it later, but I honestly wouldnât expect it to get merged in for a few months at best.
Perhaps you can silence warnings in your dashboard for now? Itâs mostly guaranteed that they wonât become errors until PHP 9 or later, after all. Or, if youâre comfortable changing the pluginâs code, you can replace the line with this atrocity:
'description' => ( ! empty( $plugin['wordpress_plugin_metadata']['description'] ) ? self::remove_non_unicode( strip_tags( $plugin['wordpress_plugin_metadata']['description'] ) ) : '' ),
Thank you. Yes I think thatâs fine for now. I havenât seen any errors on the front end.
This error is still happening even though there was more than one plugin update since then. Again, no problems on user side but annoying warnings on WP admin side.