Closed Thread
Thread Tools Search this Thread
Unread 4th Nov 2014, 03:51 AM   #1
HyperActive Warrior
War Room Member
 
Join Date: 2003
Location: , , United Kingdom.
Posts: 182
Thanks: 62
Thanked 47 Times in 39 Posts
Default
Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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/
leanfang is offline  
Unread 4th Nov 2014, 06:34 AM   #2
Senior Warrior Member
War Room Member
 
Join Date: 2009
Posts: 1,057
Thanks: 124
Thanked 198 Times in 147 Posts
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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.

rhinocl is offline  
Unread 4th Nov 2014, 07:42 AM   #3
WordPress Corecontributor
 
Join Date: 2014
Location: Alabama
Posts: 75
Thanks: 85
Thanked 25 Times in 21 Posts
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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.
BDazzler is offline  
Unread 4th Nov 2014, 09:20 AM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2003
Location: , , United Kingdom.
Posts: 182
Thanks: 62
Thanked 47 Times in 39 Posts
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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/
leanfang is offline  
Unread 4th Nov 2014, 02:18 PM   #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
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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).
David V is offline  
Unread 5th Nov 2014, 10:18 AM   #6
Senior Warrior Member
War Room Member
 
Join Date: 2009
Posts: 1,057
Thanks: 124
Thanked 198 Times in 147 Posts
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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

rhinocl is offline  
Unread 6th Nov 2014, 11:00 AM   #7
HyperActive Warrior
 
Zenoth's Avatar
 
Join Date: 2014
Posts: 185
Thanks: 32
Thanked 39 Times in 34 Posts
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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.
Zenoth is offline  
Unread 7th Nov 2014, 05:12 AM   #8
Paz
Active Warrior
 
Paz's Avatar
 
Join Date: 2012
Posts: 34
Thanks: 7
Thanked 6 Times in 6 Posts
Default
Re: Wordpress error code question
Share on: 
fb share twitter share gplus share more share

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..
Paz is offline  
Closed Thread


Bookmarks

Tags
code, error, question, wordpress

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:39 PM.