[Resolved] Foreach errors shows in Dashboard

Home Forums Support [Resolved] Foreach errors shows in Dashboard

Home Forums Support Foreach errors shows in Dashboard

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #533284
    Rodrigo

    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.

    #533309
    FEDERIKOS

    I am having the same problem ๐Ÿ™

    #533323
    Olgierd Koczorowski

    I am having the same problem ๐Ÿ™

    #533327
    Siger

    Me too:
    Operating System: Linux
    Software: Apache/2
    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 right

    #533343
    Tom
    Lead Developer
    Lead Developer

    Our Sites server is currently under DDoS attack. We’re working on a fix.

    Sorry!

    #533348
    Siger

    Hi Tom,
    That sucks.. Good luck fixing this!

    #533361
    Sashe

    Hello,

    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…

    #533375
    Maria

    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….

    #533378
    Tom
    Lead Developer
    Lead 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!

    #533391
    Maria

    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?
    https://www.soulspace.com.au/

    #533393
    Tom
    Lead Developer
    Lead Developer
    #533395
    Maria

    Also notice this page: it is showing a folder at the end of the post https://www.soulspace.com.au/magazine-publications/

    #533397
    Tom
    Lead Developer
    Lead Developer

    Any chance you can open a new topic, just so we keep this one focused?

    Thanks!

    #533401
    Maria

    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

    #533406
    Maria

    Ok, will create a new topic.

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.