We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40503
    • 8 Posts
    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;
        }
      • 40503
      • 8 Posts
      This is a fresh install of 2.2.4-pl
      I also tried nightly

      All of the FTP files are OK, I have deleted them and reuploaded to verify

      My PDO MySQL is verified working


      PLEASE HELP!!
        • 3749
        • 24,544 Posts
        Please don't make multiple posts.


        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 40503
          • 8 Posts
          Thanks Bob, Deleting other posts (just was waiting for the first reply)