Hi guys,
this is the error I can't seem to figure out..
Fatal error: Class 'xPDODriver_' not found in /home/www/cms/modx/core/xpdo/xpdo.class.php on line 1821 I have installed pdo_mysql (5.5.24) and pdo_sqlite (3.7.13) all my php.ini settings appear to be correct:
exension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
I have deleted the directory and tried reuploading and chmoding everything to 775, didn't change anything. Please help Wordpress is so freaking slow and I really want modx to work.
the advanced install and command line installs have the same issues. Also I have verified that this code does work:
/* Connect to an ODBC database using driver invocation */
$dsn = 'mysql:dbname=...;host=localhost';
$user = '...';
$password = '...';
try {
$dbh = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
echo 'Connection failed: ' . $e->getMessage();
}
it only says xPDODriver_ because for whatever reason it's not reading the db type, I updated the following function to default to mysql and now the error goes away and the error changes to "500 error site temporarily unavailable" (and the error log reports nothing)
public function getDriver() {
if ($this->driver === null || !$this->driver instanceof xPDODriver) {
$_type = $this->config['dbtype'];
if ( empty($_type) ) $_type = "mysql";
$loaded= include_once(XPDO_CORE_PATH . 'om/' . $_type . '/xpdodriver.class.php');
if ($loaded) {
$driverClass = 'xPDODriver_' . $_type;
$this->driver= new $driverClass($this);
}
if (!$this->driver) {
$this->log(xPDO::LOG_LEVEL_ERROR, "Could not load xPDODriver class for the {$_type} PDO driver. " . print_r($this->config, true));
}
}
return $this->driver;
}