Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-11-2007, 08:10 PM   #1
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Anyone seen this wordpress error before?

this is a new one for me, it only happens a few times after making a new post, and only on the front page within the new post that I just made, right below the title

Warning: mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /wp-includes/wp-db.php on line 18
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 08:30 PM   #2
OzMan
Confirmed User
 
OzMan's Avatar
 
Join Date: Sep 2003
Location: Los Begas
Posts: 9,162
no solution but at least you are not alone

http://trac.wordpress.org/ticket/3992
OzMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 08:44 PM   #3
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by OzMan View Post
no solution but at least you are not alone

http://trac.wordpress.org/ticket/3992
shit, nice find....nice to see I am not alone

not a big deal really, it only happens once or twice right after I update
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 08:46 PM   #4
jact
Confirmed User
 
Join Date: Sep 2002
Location: Oakville, Canada
Posts: 9,134
Haven't seen that one myself, but I'm having my own issues lately

Warning: Cannot modify header information - headers already sent by (output started at /home/wordpress/http/wp/index.php:6) in /home/wordpress/http/wp/wp-rss2.php on line 8

http://blog.homegrownvideo.com/wp/feed/

Any ideas?
__________________
Free agent
jact is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 08:56 PM   #5
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by jact View Post
Haven't seen that one myself, but I'm having my own issues lately

Warning: Cannot modify header information - headers already sent by (output started at /home/wordpress/http/wp/index.php:6) in /home/wordpress/http/wp/wp-rss2.php on line 8

http://blog.homegrownvideo.com/wp/feed/

Any ideas?
wow, that is some crazy shit

did you install any new plugins or is this all the same from when we last chatted?
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 08:57 PM   #6
jact
Confirmed User
 
Join Date: Sep 2002
Location: Oakville, Canada
Posts: 9,134
Quote:
Originally Posted by Jace View Post
wow, that is some crazy shit

did you install any new plugins or is this all the same from when we last chatted?
Haven't installed anything new on that one, I'm suspectng the RSS engine isn't able to handle the number of posts or something. I'm gunna look for an RSS plugin when I get some time.
__________________
Free agent
jact is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 09:04 PM   #7
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by jact View Post
Haven't installed anything new on that one, I'm suspectng the RSS engine isn't able to handle the number of posts or something. I'm gunna look for an RSS plugin when I get some time.
try lowering your rss posts then, try 5 or something
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 09:05 PM   #8
jact
Confirmed User
 
Join Date: Sep 2002
Location: Oakville, Canada
Posts: 9,134
Quote:
Originally Posted by Jace View Post
try lowering your rss posts then, try 5 or something
Hm, lowered it to 5 and changed it to summary and it didn't work. I'll have to fuck with it.
__________________
Free agent
jact is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2007, 10:01 PM   #9
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by Jace View Post
Warning: mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /wp-includes/wp-db.php on line 18
79 function escape($string) {
80 return addslashes( $string ); // Disable rest for now, causing problems
81 if( !$this->dbh || version_compare( phpversion(), '4.3.0' ) == '-1' )
82 return mysql_escape_string( $string );
83 else
84 return mysql_real_escape_string( $string, $this->dbh );
85 }

This code is broken. It depends on your PHP version for what calls are actually evaulated, so 'line 18' is not necessarily correct.

The code around line 18x, however, is for the whole 'Query' wrapper. It's hard to tell what's wrong with that without actually stepping through it. I don't do those kinds of repairs for free.. I can't afford to.

mysql_escape_string() and mysql_real_escape_string() do not work unless you have already connected to the database. Either there's a problem connecting to the database, as it states, or it's trying to use the above function before it has actually connected. This is a "race condition", and has nothing to do with Imus.

A really awful fix would be to replace your call to addslashes(), but the proper fix is to connect to the DB first.

Quote:
Originally Posted by jact View Post
Any ideas?
You have something sending data before it's able to properly tag/set cookies/other data. Look for either a hard return in a new add-on, your template above your <html>, scripts with this on top (index.php/wp-rss2.php), or any include files which may have caused this. It's usually due to editing a file by hand or uploading with the wrong type (binary instead of ascii).
__________________

Last edited by GrouchyAdmin; 04-11-2007 at 10:03 PM..
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-12-2007, 12:35 AM   #10
jact
Confirmed User
 
Join Date: Sep 2002
Location: Oakville, Canada
Posts: 9,134
Quote:
Originally Posted by GrouchyAdmin View Post
You have something sending data before it's able to properly tag/set cookies/other data. Look for either a hard return in a new add-on, your template above your <html>, scripts with this on top (index.php/wp-rss2.php), or any include files which may have caused this. It's usually due to editing a file by hand or uploading with the wrong type (binary instead of ascii).
Found the issue, it was the meta tag that Google has you put in for site verification, got it corrected. Thanks for the tip on which direction to look.
__________________
Free agent
jact is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-14-2007, 09:28 AM   #11
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by jact View Post
Haven't seen that one myself, but I'm having my own issues lately

Warning: Cannot modify header information - headers already sent by (output started at /home/wordpress/http/wp/index.php:6) in /home/wordpress/http/wp/wp-rss2.php on line 8

http://blog.homegrownvideo.com/wp/feed/

Any ideas?
i had that a few times... it's known as the whitespace problem...
read this
http://www.geeklog.net/faqman/index.php?op=view&t=38
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.