Archived topic
Wordfence Issue
7 replies · Started by Gary on February 28, 2020
Hi Guys
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.
Cheers
Gary
Hi there,
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.
Hi Tom
You can't see it on the front end mate, it is on the Wordfence scan page after doing a scan.
Cheers
Gary
Got it. Out of curiosity, have you observed this on more than one server?
Sorry mate I forgot to reply to this.
To date I have only seen this issue on one site.
Strange, it must be some sort of server configuration issue, as I haven't noticed it before. I'll look into it :)
Hi Guys
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
Cheers
Gary
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).