Wordpress error code question

by 7 replies
9
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
#programming #code #error #question #wordpress
  • 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.
  • 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.
    • [1] reply
    • Damn - I was hoping it was going to be something obvious and general - not plug in specific:-)

      It's quite an old blog so wasn't looking forward to removing about 10 plug ins one by one....
  • 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).
    • [1] reply
    • 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).
  • 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.
  • 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..

Next Topics on Trending Feed