• If you’re getting error messages such as :

    Fatal error: Uncaught Error: Call to undefined function mysql_get_client_info()

    or any db connection error messages, try the quick fix below.

    The Query Monitor plugin, and some other plugins, uses the $db->use_mysqli bool variable to detect if the driver support PDO (_mysqli functions), which is the case for SQLite Integration. But because the $use_mysqli variable is not defined in the PDODB class, this check fails.

    To fix it, declare the variable like this in the PDODB.CLASS.PHP file, right before the constructor function:

    /**
     * @var bool Support PHP MySQL Improved version.
     * @access public
     * @author Guy Dumais (https://guydumais.digital)
     */
    public $use_mysqli = true;
    • This topic was modified 7 years, 5 months ago by Guy Dumais.
  • The topic ‘Quick fix for PHP 7!’ is closed to new replies.