We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32025
    • 305 Posts
    I am running MODx Revolution v2.2.8. My site was up and running just fine, but today I went to my site and all I see is this fatal error on the page:

    Fatal error: Class 'PDO' not found in /MYROOT/public_html/core/xpdo/om/xpdoquery.class.php on line 754

    I went to file contained within this error and this is what this line says:
    } else {
                    $param_type= PDO::PARAM_STR;
                }


    This error shows an any/all pages inluding my manager login. The only thing that has changed, is I was migrated to a new server and given a new IP address for my server. However I several MODx revolution sites installed on this same server and all those installations are running fine after the migration.

    Please help!

      Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That means that the PHP being used by that site doesn't have PDO enabled. Check a phpinfo() listing to make sure, though. Create a file named info.php in your site's web root:
      <?php
      phpinfo();

      Then run the info.php file from your browser (yourdomain.com/info.php) and scan down the resulting listing, looking for pdo.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 32025
        • 305 Posts
        Thank you Sottwell! I contacted my hosting company and they initiated a new php file and now the site is showing fine. Something happened to the file during the migration. This was the problem.
          Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/