 |
Your forum announcement here! |
|
 |

24-05-2007, 14:09
|
 |
Member
|
|
Join Date: Apr 2007
Posts: 53
|
|
foreach() error with WordPress
Hello All,
I recently came across many of our clients complaining about an error mentioned below, encountered with wordpress blogs installed on their website hostings:
Quote:
Warning: Invalid argument supplied for foreach() in /home/user/public_html/wp-includes/capabilities.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-includes/capabilities.php:31) in /home/user/public_html/wp-includes/functions.php on line 1348
|
Fortunately, I did find a solution for this error. All I could make out is to 'turn off magic_quotes_runtime'. You can put the php_flag mentioned below under the .htaccess located in the wp installation folder and that's it, you are good to go
Quote:
|
php_flag magic_quotes_runtime off
|
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
"The secret of greatness is simple: do better work than any other man in your field - and keep on doing it"
|

24-05-2007, 15:32
|
 |
Chief Marketing Officer
|
|
Join Date: Sep 2005
Posts: 4,409
|
|
lol
Your post came at right time. I was dealing with similar errors on some of our blogs. Thanks Andy 
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. for FREE and earn 20% commission on each referral.
|

25-05-2007, 20:42
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,890
|
|
Its nice to see a bit of preventative support as well as support after a problem.
Thanks Andy! 
__________________
David Smith
DPS Computing
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

26-05-2007, 22:30
|
 |
Member
|
|
Join Date: Apr 2007
Posts: 53
|
|
Hello,
Thank you everybody for the compliments 
But well, this is again what eUKhost always intends to. To provide all the support and help to clients, irrespective of prior to the problem being resolved or after the problem occurs, right? 
Good Luck!
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
"The secret of greatness is simple: do better work than any other man in your field - and keep on doing it"
|

28-05-2007, 12:08
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,890
|
|
Just a question, has this error come about due to the recent WordPress update?
__________________
David Smith
DPS Computing
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

28-05-2007, 22:04
|
 |
Chief Marketing Officer
|
|
Join Date: Sep 2005
Posts: 4,409
|
|
Quote:
Originally Posted by DPS Computing
Just a question, has this error come about due to the recent WordPress update?
|
it seems to be due to recent wordpress update. They have been messing with their code since 2.0.24.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. for FREE and earn 20% commission on each referral.
|

29-05-2007, 02:36
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,890
|
|
Quote:
Originally Posted by eukhost.com
it seems to be due to recent wordpress update. They have been messing with their code since 2.0.24.
|
Damn!!  What was so important they had to break everything!! lol
__________________
David Smith
DPS Computing
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

27-06-2007, 16:00
|
|
new member
|
|
Join Date: Jun 2007
Posts: 1
|
|
Found this thread with a google search and it did solve the same problem on a WordPress Version 2.2.1 installation. The host was Omnis and they have a PHP Setting in the control panel where you can turn OFF magic_quotes_runtime.
Thanks for the solution.
|

27-06-2007, 16:06
|
 |
Chief Marketing Officer
|
|
Join Date: Sep 2005
Posts: 4,409
|
|
Quote:
Originally Posted by MichaelH
Found this thread with a google search and it did solve the same problem on a WordPress Version 2.2.1 installation. The host was Omnis and they have a PHP Setting in the control panel where you can turn OFF magic_quotes_runtime.
Thanks for the solution.
|
 to our Forum, Michael
Andy's post has helped many customers so far and many online visitors searching for a solution on google.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. for FREE and earn 20% commission on each referral.
|

28-06-2007, 23:24
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,890
|
|
Yes, welcome to the forum as well Micheal - I hope to see you become part of the ever growing community!
Yes, this little bit of support definitely helped me - as I am sure it did others.
__________________
David Smith
DPS Computing
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
NEW LAUNCH! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 07:03.
|
|
|