| | #1 |
| HyperActive Warrior War Room Member Join Date: 2003 Location: , , United Kingdom.
Posts: 182
Thanks: 62
Thanked 47 Times in 39 Posts
|
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 |
|
Are you making these 5 outsourcing mistakes? http://Outsourcing.PublishingTips.com Top 10 Freedom Tools Report http://Living-Free.net/optin-2step/ | |
| |
| | #2 |
| Senior Warrior Member War Room Member Join Date: 2009
Posts: 1,057
Thanks: 124
Thanked 198 Times in 147 Posts
|
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.
|
| | |
| |
| | #3 |
| WordPress Corecontributor Join Date: 2014 Location: Alabama
Posts: 75
Thanks: 85
Thanked 25 Times in 21 Posts
|
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. |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2003 Location: , , United Kingdom.
Posts: 182
Thanks: 62
Thanked 47 Times in 39 Posts
|
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.... |
|
Are you making these 5 outsourcing mistakes? http://Outsourcing.PublishingTips.com Top 10 Freedom Tools Report http://Living-Free.net/optin-2step/ | |
| |
| | #5 |
| WP Dev & Design War Room Member Join Date: 2011 Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4 |
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). |
| |
| | #6 |
| Senior Warrior Member War Room Member Join Date: 2009
Posts: 1,057
Thanks: 124
Thanked 198 Times in 147 Posts
|
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).
|
| | |
| |
| | #7 |
| HyperActive Warrior Join Date: 2014
Posts: 185
Thanks: 32
Thanked 39 Times in 34 Posts
|
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. |
| |
| | #8 |
| Active Warrior Join Date: 2012
Posts: 34
Thanks: 7
Thanked 6 Times in 6 Posts
|
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.. |
| |
|
| Bookmarks |
| Tags |
| code, error, question, wordpress |
| |