- This topic has 7 replies, 2 voices, and was last updated 11 months ago by Tom.
February 28, 2020 at 6:35 am #1179551Gary
Why is Wordfence giving me this warning on one of my clients sites.
[FEB 28 14:24:43] Warning: Invalid argument supplied for foreach() in /home/soulchur/public_html/wp-content/plugins/gp-premium/library/EDD_SL_Plugin_Updater.php on line 343
Thanks in advance for your help.
GaryFebruary 28, 2020 at 9:06 am #1179863TomLead DeveloperLead Developer
That’s strange – we’ll take a look.
The best thing to do right now is turn off WP_DEBUG on your client site: https://wordpress.org/support/article/debugging-in-wordpress/
That will prevent warnings like this from showing.February 28, 2020 at 10:16 am #1179900Gary
You can’t see it on the front end mate, it is on the Wordfence scan page after doing a scan.
GaryFebruary 29, 2020 at 12:13 am #1180266TomLead DeveloperLead DeveloperMarch 2, 2020 at 2:24 pm #1182779Gary
Sorry mate I forgot to reply to this.
To date I have only seen this issue on one site.March 2, 2020 at 8:15 pm #1183029TomLead DeveloperLead DeveloperMay 14, 2020 at 12:11 am #1283616Gary
Just to report I have seen this issue again with a Wordfence Scan this morning on another site on different hosting. The line number is different but the file is still EDD_SL_Plugin_Updater.php. See issue below:
[May 14 07:41:54] Warning: Creating default object from empty value in /home/sites/domain.com/public_html/wp-content/plugins/gp-premium/library/EDD_SL_Plugin_Updater.php on line 323 0
GaryMay 14, 2020 at 9:35 am #1284503TomLead DeveloperLead Developer
Thanks for letting us know. I’ll take a look at this one as well, although I’m assuming it’s a false positive in this case. It could be due to our server having some downtime last night (making it so the check for updates call failed).
- You must be logged in to reply to this topic.