- This topic has 15 replies, 7 voices, and was last updated 2 years ago by Rodrigo.
March 27, 2018 at 11:44 pm #533284Rodrigo
Hello Tom & Leo,
I get the following error messages from time to time:
Warning: Invalid argument supplied for foreach() in /home/dh_8kfwgz/domain.com/wp-content/plugins/gp-premium/sites/sites.php on line 338 Warning: Invalid argument supplied for foreach() in /home/dh_8kfwgz/domain.com/wp-content/plugins/gp-premium/sites/sites.php on line 365 Warning: Cannot modify header information - headers already sent by (output started at /home/dh_8kfwgz/domain.com/wp-content/plugins/gp-premium/sites/sites.php:338) in /home/dh_8kfwgz/domain.com/wp-admin/includes/misc.php on line 1114
I can see you have already some other posts on this topic. They have vanished for the moment but I’m worried if that will break my site.GP Premium 1.6March 28, 2018 at 12:07 am #533309FEDERIKOS
I am having the same problem 🙁March 28, 2018 at 12:15 am #533323Olgierd Koczorowski
I am having the same problem 🙁March 28, 2018 at 12:19 am #533327Siger
Operating System: Linux
MySQL version: 5.6.27
PHP Version: 7.0.17
PHP Max Input Vars: 1000
PHP Max Post Size: 64M
GD Installed: Yes
Write Permissions: All rightMarch 28, 2018 at 12:27 am #533343TomLead DeveloperLead DeveloperMarch 28, 2018 at 12:31 am #533348Siger
That sucks.. Good luck fixing this!March 28, 2018 at 12:40 am #533361Sashe
I was experiencing the same problem thus I added these checks in /plugins/gp-premium/sites/sites.php
On line 339 immediately after:
$data = json_decode( wp_remote_retrieve_body( $data ), true );
$data = is_array($data) ? $data : array();
On line 365 immediately after:
$trusted_authors = json_decode( wp_remote_retrieve_body( $trusted_authors ), true );
$trusted_authors['trusted_author'] = is_array( $trusted_authors['trusted_author']) ? $trusted_authors['trusted_author'] : array();
So now if there is no connection to gp servers, there is no error also…March 28, 2018 at 12:59 am #533375Maria
I’m having the same issue. I just did an update to one of my websites, and it is NOT WORKING WELL.
I’m reverting website to a back up copy. Will this help? Or does it mean all other website will be affected (updates or not)? Soooo concerning….
Graphic Designer – Print and DigitalMarch 28, 2018 at 1:03 am #533378TomLead DeveloperLead Developer
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!March 28, 2018 at 1:13 am #533391Maria
Hi Tom. I can’t see the errors, but my site is not the same. Notice the end of the front page, it’s showing a nav menu! I haven’t added any of that. What should I do?
Graphic Designer – Print and DigitalMarch 28, 2018 at 1:15 am #533393TomLead DeveloperLead Developer
That’s a different issue. Are you using NextGen by chance?: https://generatepress.com/forums/topic/nextgen-results-in-primary-menu-lood-in-after-footer/#post-533038March 28, 2018 at 1:16 am #533395Maria
Also notice this page: it is showing a folder at the end of the post https://www.soulspace.com.au/magazine-publications/
Graphic Designer – Print and DigitalMarch 28, 2018 at 1:17 am #533397TomLead DeveloperLead DeveloperMarch 28, 2018 at 1:19 am #533401Maria
yes, I am. I can also see Facebook plug in is gone.
I can see the error now:
ent supplied for foreach() in /home/soulspac/public_html/wp-content/plugins/gp-premium/sites/sites.php on line 338
Warning: Invalid argument supplied for foreach() in /home/soulspac/public_html/wp-content/plugins/gp-premium/sites/sites.php on line 365
Graphic Designer – Print and DigitalMarch 28, 2018 at 1:20 am #533406Maria
Ok, will create a new topic.
Graphic Designer – Print and Digital
- You must be logged in to reply to this topic.