Anyone seen this wordpress error before?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jace
    FBOP Class Of 2013
    • Jan 2004
    • 35562

    #1

    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
    Confirmed User
    • Sep 2003
    • 9162

    #2
    no solution but at least you are not alone

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

    Comment

    • Jace
      FBOP Class Of 2013
      • Jan 2004
      • 35562

      #3
      Originally posted by OzMan
      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

      Comment

      • jact
        Confirmed User
        • Sep 2002
        • 9134

        #4
        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

        Comment

        • Jace
          FBOP Class Of 2013
          • Jan 2004
          • 35562

          #5
          Originally posted by jact
          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?

          Comment

          • jact
            Confirmed User
            • Sep 2002
            • 9134

            #6
            Originally posted by Jace
            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

            Comment

            • Jace
              FBOP Class Of 2013
              • Jan 2004
              • 35562

              #7
              Originally posted by jact
              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

              Comment

              • jact
                Confirmed User
                • Sep 2002
                • 9134

                #8
                Originally posted by Jace
                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

                Comment

                • GrouchyAdmin
                  Now choke yourself!
                  • Apr 2006
                  • 12085

                  #9
                  Originally posted by Jace
                  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.

                  Originally posted by jact
                  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, 09:03 PM.

                  Comment

                  • jact
                    Confirmed User
                    • Sep 2002
                    • 9134

                    #10
                    Originally posted by GrouchyAdmin
                    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

                    Comment

                    • martinsc
                      Too lazy to set a custom title
                      • Jun 2005
                      • 27047

                      #11
                      Originally posted by jact
                      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

                      Comment

                      Working...