We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1717
    • 5 Posts
    I’m having a similar problem. This is all brand new to me. I have the manager up ok and it seems like it is acting correctly. I created a template and put in some content as directed, but when I go to actual webpage I get the following error:

    Fatal error: Class ’PDO’ not found in /home/mysite/core/model/modx/modx.class.php on line 361

    I tried putting the following lines in the php.ini:

    extension=pdo.so
    extension=pdo_mysql.so

    The error message disappeared, but I only got a blank page.

    Thank you for your help!
    Modx Rev 2.0.6(traditional)
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      That’s really odd that the manager works and the front-end does not -- if I’m not mistaken, the manager requires the PDO stuff every bit as much as the front-end. Did you try clearing your cache? Maybe the error was cached.
        • 1717
        • 5 Posts
        Hi Everett. Thank you for responding. I did clear my cache, and I have tried it on Firefox, Chrome, and Safari, as well as on 2 different computers. Could I have done something wrong in the install?

        Thanks
          • 9207 ☆ A M B ☆
          • 2,475 Posts
          It’s possible something got messed up in the install I guess. I’d try creating a new directory and re-trying the install. It’s really strange that the manager works... is there an .htaccess rule that’s tweaking things in the document root? You’d better post your server details... PHP version, OS, all that jazz.
            • 13284
            • 95 Posts
            I just installed the new Revolution of Modx. I’m also getting the same error when I visit the main site:

            Fatal error: Class ’PDO’ not found in /home/tapanime/public_html/core/model/modx/modx.class.php on line 361

            I’m also able to access the manager and it seems to work just fine. I’d like any advice on the issue before I contact my host if possible. Here are my infos:

            Apache version 2.2.17
            PHP version 5.3.4
            MySQL version 5.1.52
            Architecture x86_64
            Operating system linux
            Perl version 5.8.8
            Kernel version 2.6.18-194.11.4.el5

            Using Google Chrome Browser

            phpinfo() Configure Command with pdo:
            ’--enable-pdo=shared’ ’--with-pdo-mysql=shared’ ’--with-pdo-sqlite=shared’

            Any suggestions or any help on what I should ask or have done?
              • 9207 ☆ A M B ☆
              • 2,475 Posts
              Before contacting your host, did you try a complete reinstall? I’m not sure what’s going on there, but something funny is going on if several people are reporting the same symptoms.

              When you did the installation, did you unzip the zip file on the server? Or did you unzip locally and then upload the files? I have had problems due to FTP wackiness where some files did not upload or did not upload fully. It’s a common problem, I know, but worth mentioning.

              Were there any errors detected during setup?
                • 13284
                • 95 Posts
                I have not tried to reinstall it yet.

                I did unzip it and then upload the files. I was going to attempt to do a reinstall again. There also was no errors when installing.

                I will post back when I attempt the reinstall and let you know how it went.
                  • 13284
                  • 95 Posts
                  Greetings everyone,

                  I have downloaded the new pl2 release did a fresh new database, user, etc. I’m getting the same problem, can log into the manager, but can’t see any main page. Get the same error:

                  Fatal error: Class ’PDO’ not found in /home/tapanime/public_html/core/model/modx/modx.class.php on line 365

                  Any suggestions on what to look into or what I should be telling my host that could need to be fixed or changed etc?
                    • 9207 ☆ A M B ☆
                    • 2,475 Posts
                    Did you create at least one page in the manager so the front-end has something to show? That’s the only idea I got...
                      • 13284
                      • 95 Posts
                      I didn’t at first, but just tried it no change at all.