Error/crash: Warning: Invalid argument supplied for foreach()......

open (2 posts) (2 voices)

  1. Studio571
    Member

    Hi, I'm experiencing a problem with my site meaoakland.org , which runs on the Dejavu theme. When trying to get onto the site (or even to the wordpress login) I get the following error:

    Warning: Invalid argument supplied for foreach() in /home/content/p3pnexwpnas02_data01/59/2069759/html/wp-content/themes/dejavu/lib/functions/theme.php on line 683

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas02_data01/59/2069759/html/wp-content/themes/dejavu/lib/functions/theme.php:683) in /home/content/p3pnexwpnas02_data01/59/2069759/html/wp-includes/pluggable.php on line 1174

    Even stranger, another employee says it is working fine for them at home but I have tried it twice using two different computers and two different browsers and get the same error. It also works on my phone (on the same wifi network the computers are attached to).

    Help!!!

    Attachments

    1. Screen_Shot_2016-11-07_at_11.32.55_AM..png (122.8 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  2. OnePressTech
    Member

    Sorry to be the bearer of bad news bud no one from MSMW staff have responded to this forum or email contacts for over 8 months.

    Regarding your problem the error would appear to be in the parsing of a shortcode based on your error messages though that could be a red herring so take that with a grain of salt. The problem is not within the theme itself (although the theme could probably complete more gracefully under this circumstance). The likely culprit could be the addition of a very large post to the website or a short-code that was not terminated properly.

    Your employee who said it was working fine for them at home may have had an old copy in their browser cache. If your employee working from home clears their browser cache and the website is still accessible...that would be a head scratcher. Your site fails as you have expressed when I access it.

    The question you need to ask yourself is..."what changed from when the site worked to when it stopped working". The thing about software, in general, if no one touches anything it will keep working. If it stops working...someone touched something. Your challenge is determining what change was made and by whom. Reverse that change and your site should start working again.

    Your site is on GoDaddy and GoDaddy has, in the past, run scripts to clear malware and inadvertently left behind some blank space that triggers this error (see https://blog.sucuri.net/2010/09/godaddy-hacked-fixing-the-headers-already-sent-error.html ). If neither you, your website manager, or your employees have made any changes to the website...and I mean ANY (including adding or editing a post or page) since it went from functioning to non-functioning, then you might need to talk with GoDaddy and see if they made ANY changes during that period. Listen to the words they use...unless they say "no changes were made" then changes were made. If they use words like "no change of consequence" or "no change that would cause this" then challenge them.

    I would look in-house first before contacting GoDaddy.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme