Archived topic
GPP 1.6 Beta 2 - Error on Sites overview
5 replies · Started by Patrick on March 8, 2018
Hi,
with the update to the Beta 2 from 1.6 GPP, the Sites overview is broken.
The following message is shown after each sitetemplate.
: Invalid argument supplied for foreach() in
/www/htdocs/xxxx/xxxx/testdrive/02/wp-content/plugins/gp-premium/sites/classes/class-site.php on line 204
Best regards
Patrick
Hi Patrick,
That's strange - can you try clicking the "Refresh sites" link below all of the sites?
Hello Tom,
I have the same problem with the new version GP Premium1.6 (stable). With 1.5.6 works fine.
"Warning: Invalid argument supplied for foreach() in C:\wamp\www\proyecto.com\wp-content\plugins\gp-premium\sites\sites.php on line 338"
"Warning: Invalid argument supplied for foreach() in C:\wamp\www\proyecto.com\wp-content\plugins\gp-premium\sites\sites.php on line 365"
In these two days since the update (March 26), my WP session had not closed. It was today that I have started a new session when the messages have appeared on top of the Desktop.
I am developing the website at localhost.
Any suggestions?
Attached image.
(I had to use a translator, I'll comment on it in case some phrase is not well understood)
Thank you.

We just experienced a DDoS attack, which we've fixed.
If you go to “Appearance > GeneratePress > Site Library” and click “Refresh Sites”, the error should go away now.
Let me know – sorry for the inconvenience!
Thanks, Tom. Solved. I appreciate the quick response.
What I do not understand is the external dependency of my WP with the new Site module.
I think it would be a good idea to have the option to unlink it in case this type of incident occurs.
Regards,
Víctor D.
There's a filter in GPP 1.6.1 which will allow you disable the Site Library completely.
We'll also be working in some other measures to prevent this from happening again.