We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16702 ☆ A M B ☆
    • 536 Posts
    After update drom 2.1.5 to 2.2 i get this error:

    Fatal error: Class 'PDO' not found in /home/ghg/public_html/core/model/modx/modx.class.php on line 436

    can somebody help me? [ed. note: lastoftheromans last edited this post 14 years, 9 months ago.]
      palma non sine pulvere
      • 22303 MODX Staff
      • 10,725 Posts
      Sounds like part of your upload failed if you had 2.1.5 working. PDO is a basic requirement for MODX Revolution to work.
        • 16702 ☆ A M B ☆
        • 536 Posts
        hello Jason,

        yes, my 2.1.5 work perfect. but what kind of upload issue? i upload my files with FileZilla in Binary mode...
        Thanks
          palma non sine pulvere
          • 34926
          • 87 Posts
          I've ran into this issue before and had to re-install. That worked for me so I didn't look into it any further...
            • 16702 ☆ A M B ☆
            • 536 Posts
            Gibbs,

            i try to re-install 2 or 3 times my 2.2.0...but i have no result.
            the real troublesome is when i try to rollback update to 2.1.5 and i get absolutely same error in front of my site and when i try to open my manager panel i get:

            Fatal error: Undefined class constant 'OPT_CONN_INIT' in /home/dfdf/public_html/boss/index.php on line 56
              palma non sine pulvere
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              Do you have a custom php.ini file?
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 16702 ☆ A M B ☆
                • 536 Posts
                yes and in my php.ini i have only:

                date.timezone = 'Europe/Sofia'
                  palma non sine pulvere
                  • 1343 ☆ A M B ☆
                  • 2,213 Posts
                  That's likely whats causing the problem. I would recommend using http://tips-scripts.com/php_ini to create the php.ini file. It copies the system php.ini and makes the adjustments for you.
                    Patrick | Server Wrangler
                    About Me: Website | Tweets |  MODX Hosting
                    • 16702 ☆ A M B ☆
                    • 536 Posts
                    Quote from: AMDbuilder at Dec 12, 2011, 12:26 AM
                    That's likely whats causing the problem. I would recommend using http://tips-scripts.com/php_ini to create the php.ini file. It copies the system php.ini and makes the adjustments for you.


                    GREAT! it`s work!
                      palma non sine pulvere
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Indeed. There are plenty of know-it-alls who will scoff at needing any more than the specific directives you want to change in your custom php.ini file, but it's a far better practice to use a full copy of the default php.ini file and then edit the directives you need to customize.
                        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