• Beee

    (@beee)


    i’m running several wordpress sites but i ran into an error which i’ve never seen before

    Warning: mysql_error(): 14 is not a valid MySQL-Link resource in /url/httpdocs/wp-includes/wp-db.php on line 615

    Warning: mysql_affected_rows(): 14 is not a valid MySQL-Link resource in /url/httpdocs/wp-includes/wp-db.php on line 621

    anybody know what causes this ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Samuel B

    (@samboll)

    add this to your wp-config.php

    define('USE_PCONNECT', 'false'); // use persistent connections?

    right before closing
    ?>

    Hi,

    I’m using Exec-PHP and am getting a similar error when I try and connect to another database.

    <?php
      $connection = mysql_connect("localhost", "dcourt_rootadmin", "*******");
      mysql_select_db("dcourt_XXXXXX");
      $result = mysql_query("select * from product", $connection);
      $row = mysql_fetch_row($result);
    
      ...
      // other stuff here
      ...
    
      mysql_close($connection);
    ?>

    The code is working, but the warning message:

    Warning: mysql_error(): 9 is not a valid MySQL-Link resource in /home/dcourt/public_html/sportswatchinformant/wp-includes/wp-db.php on line 615

    is output on the page about 6 times.

    I tried adding define(‘USE_PCONNECT’, ‘false’); to the end of wp-config.php, but no joy.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘no valid resource’ is closed to new replies.