Wordpress error code question

7 replies
Hi Folks

Can anyone who is good with wordpress code tell me what might be causing these errors on one of my blogs?

Warning: Invalid argument supplied for foreach() in /home/leanfang/public_html/wp-includes/update.php on line 303

Warning: Invalid argument supplied for foreach() in /home/leanfang/public_html/wp-includes/update.php on line 307

Then when I installed a new plug in I got these additional error messages too:

Warning: Invalid argument supplied for foreach() in /home/leanfang/public_html/wp-includes/update.php on line 303

Warning: Invalid argument supplied for foreach() in /home/leanfang/public_html/wp-includes/update.php on line 307

Warning: Invalid argument supplied for foreach() in /home/leanfang/public_html/wp-includes/update.php on line 303

Warning: Invalid argument supplied for foreach() in /home/leanfang/public_html/wp-includes/update.php on line 307

Warning: Cannot modify header information - headers already sent by (output started at /home/leanfang/public_html/wp-includes/update.php:303) in /home/leanfang/public_html/wp-includes/pluggable.php on line 1173

Warning: Cannot modify header information - headers already sent by (output started at /home/leanfang/public_html/wp-includes/update.php:303) in /home/leanfang/public_html/wp-includes/pluggable.php on line 1173


Any help great;u recived !

Thanks

Fraser
#code #error #question #wordpress
  • Profile picture of the author rhinocl
    If this is a new blog or site I would start by reinstalling Wordpress, removing all plugins and using one of the default themes. Once good test the theme you want and then proceed with adding your plugins back in one at a time. If it is a more established site post what changes you made right before the problem arose, and some one may be able to help you.
    {{ DiscussionBoard.errors[9644156].message }}
  • Profile picture of the author BDazzler
    Rhincol has great advice. An alternative is to start by removing the last plugin you added before the problems started happening. Then remove the next etc.

    Based on where the errors are occurring, it's possible that this was caused during a theme or plugin update. If it was a plugin, start by removing the plugin you were trying to update when the error started.
    {{ DiscussionBoard.errors[9644276].message }}
  • Profile picture of the author David V
    You should follow some basic troubleshooting protocols before you reinstall WP.
    You left our a lot of detail like version, if you just updated, exactly what you were doing/uploading etc.. before the error occurred, if you've modified your functions.php file, but no matter.

    It could be an offending plugin, an interruption during an update, or a little mod you made.
    FAQ Troubleshooting « WordPress Codex
    http://www.warriorforum.com/blogs/da...s-website.html

    If things started happening after a plugin install, deactivate the plugin.
    You may even have to FTP to the server and rename the offending plugin folder.
    This assumes the plugin did not modify files like the wp-config.php or htaccess (like security plugins do).
    {{ DiscussionBoard.errors[9645174].message }}
    • Profile picture of the author rhinocl
      You can disable them all at once (and re-enable them all at once) to see if it is the plugins.(I recommend a full back-up first just in case - but only once habe I had an issue with a plugin that didn't store its settings in the database properly).
      {{ DiscussionBoard.errors[9647411].message }}
  • Profile picture of the author Zenoth
    I think is a compatibility problem caused by a plugin that is not compatible with the version of WordPress you use. Disable all plugins and see if the error still occurs. If not, activate them one by one.
    This is a quite general error that usually occurs after you try to either update a theme, a plugin, WordPress core, etc, so is harder to trace just after the error message.
    {{ DiscussionBoard.errors[9650229].message }}
  • Profile picture of the author Paz
    I saw something similar when my hosting upgraded from php5.2 to php5.4 but it was only visible in the backend... Just one more thing for you to think about..
    {{ DiscussionBoard.errors[9652105].message }}

Trending Topics