GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone seen this wordpress error before? (https://gfy.com/showthread.php?t=723364)

Jace 04-11-2007 08:10 PM

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

OzMan 04-11-2007 08:30 PM

no solution but at least you are not alone

http://trac.wordpress.org/ticket/3992

Jace 04-11-2007 08:44 PM

Quote:

Originally Posted by OzMan (Post 12239972)
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

jact 04-11-2007 08:46 PM

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?

Jace 04-11-2007 08:56 PM

Quote:

Originally Posted by jact (Post 12240027)
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?

jact 04-11-2007 08:57 PM

Quote:

Originally Posted by Jace (Post 12240058)
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.

Jace 04-11-2007 09:04 PM

Quote:

Originally Posted by jact (Post 12240065)
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

jact 04-11-2007 09:05 PM

Quote:

Originally Posted by Jace (Post 12240081)
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.

GrouchyAdmin 04-11-2007 10:01 PM

Quote:

Originally Posted by Jace (Post 12239902)
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. :thumbsup

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 (Post 12240027)
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). :thumbsup

jact 04-12-2007 12:35 AM

Quote:

Originally Posted by GrouchyAdmin (Post 12240295)
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). :thumbsup

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.

martinsc 04-14-2007 09:28 AM

Quote:

Originally Posted by jact (Post 12240027)
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


All times are GMT -7. The time now is 06:35 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123