We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7715
    • 5 Posts
    New to modx, but am seeing similar problem. No errors when checking PDO. Installed r2 (not advanced) via unzip locally, then FTP to server, followed /setup/ (new install) and got greenlghts on all databases and file permissions. Setup appears to have created 58 datatables.

    Tried to login to manager but it kept re-directing me back to login until I removed the config.cache.php (no session records needed to be removed from settings table).

    Once logged in, resource/error panel showed up and home/announcement page displays, however all other menu selections result in blank screen. In most cases, it appears to be doing something, but get no display (whether attempting to create new document, pkg mgmt, or report modx error). Also Logout button in upper right doesn’t function.

    System error log is reporting:
    [Fri May 28 09:44:01 2010] [warn] mod_fcgid: stderr: PHP Fatal error: Class ’xPDOQuery’ not found in [path]/CMS7/core/xpdo/om/xpdoquery.class.php on line 240
    [Fri May 28 09:44:14 2010] [warn] mod_fcgid: stderr: PHP Fatal error: Class ’xPDO’ not found in [path]/CMS7/core/xpdo/xpdo.class.php on line 557
    [Fri May 28 09:44:14 2010] [warn] mod_fcgid: stderr: PHP Fatal error: Class ’xPDO’ not found in [path]/CMS7/core/xpdo/xpdo.class.php on line 557

    APC on/off doesn’t make any difference.

    System configuration is basic lampp...
    FreeBSD 7.2.5 / Apache 2.2.13 / OpenSSL 0.9.8e
    mySQL 5.1.38
    PHP 5.2.10 (ram = 256Mb, upld max = 64Mb)
    PERL 5.8.9

    Have tried three separate browsers firefox (v3.6.3) w/ & w/o firebug, camino (mac 10.4.11) and chrome (mac 10.5.8).

    Additional notes...
    - the menu pull-down hover colour change works in ffx and camino, but not chrome (does change when selected).
    - package management displayed (once only) along far left column in chrome, but disappeared when going anywhere else and no other menu options will display.

    What can I try next?
      • 22303 MODX Staff
      • 10,725 Posts
      Sounds like most likely is FTP transfer of some files failed and is causing the problem... otherwise, you might have some problems in your environment.
        • 20728
        • 53 Posts
        Hi,

        I’ve hit this same issue on our local Ubuntu development server.

        I’ve attached the phpinfo output in the hope someone can point me in the right direction.

        The front-end website is working but the Manager (once logged in) is completely blank, no output whatsoever.

        Thanks
          Enovate Design | Web Design Agency Essex
          • 7715
          • 5 Posts
          Quote from: OpenGeek at May 28, 2010, 09:19 AM

          Sounds like most likely is FTP transfer of some files failed and is causing the problem... otherwise, you might have some problems in your environment.

          Thanks for the quick response, but that’s not terribly specific nor helpful. Clearly, ’something’ is wrong, else several of us wouldn’t be in the forum indicating that the mgr section is blank.

          That said, I re-FTPd all files from the unzipped (modx-2.0.0-rc-2.zip), DROPped all previous datatables, re-installed a std NEW install all w/ the same result... blank and/or non-functional mgr area (except for menu bar & home/announcement screen).

          Still same errors in domain error log...
          [Fri May 28 12:33:27 2010] [warn] mod_fcgid: stderr: in [PATH]/CMS7/core/xpdo/xpdo.class.php on line 557
          [Fri May 28 12:33:37 2010] [warn] mod_fcgid: stderr: PHP Fatal error: Class ’xPDO’ not found in [PATH]/CMS7/core/xpdo/xpdo.class.php on line 557
          [Fri May 28 12:33:38 2010] [warn] mod_fcgid: stderr: PHP Fatal error: Class ’xPDO’ not found in [PATH]/CMS7/core/xpdo/xpdo.class.php on line 557

          and these in the system error log
          [Fri May 28 12:29:21 2010] [notice] mod_fcgid: process [PATH]/CMS7/manager/index.php(79312) exit(lifetime expired), terminated by calling exit(), return code: 0
          [Fri May 28 12:33:27 2010] [notice] mod_fcgid: process [PATH]/CMS7/manager/index.php(79746) exit(lifetime expired), terminated by calling exit(), return code: 0

          safe_mod is off, pdo is enabled, etc., etc. have gone thru all the troubleshooting. Any more hints, clues, breadcrumbs of what else to check?
            • 28215
            • 4,149 Posts
            Can you run this script (replacing with your DB info) without errors?

            <?php
            /* Connect to an ODBC database using driver invocation */
            $dsn = 'mysql:dbname=testdb;host=127.0.0.1';
            $user = 'dbuser';
            $password = 'dbpass';
            
            try {
              $dbh = new PDO($dsn, $user, $password);
            } catch (PDOException $e) {
              echo 'Connection failed: ' . $e->getMessage();
            }
            ?>
            


              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 28215
              • 4,149 Posts
              Also:

              - Are you running eAccelerator? APC?
              - Have you read Troubleshooting Installation and Fresh Installation and have followed those steps, making sure the right dirs were made writable and such?
              - Do you get any errors in core/cache/logs/error.log? Any install error log files in that same directory?
                shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                • 22303 MODX Staff
                • 10,725 Posts
                Class ’xPDO’ not found in [PATH]/CMS7/core/xpdo/xpdo.class.php on line 557
                Hmmm; this makes very little sense; how can a class that is defined in the file causing the error not be found? Sounds very much like a problem with an opcode caching system like APC or eAccelerator.
                  • 7715
                  • 5 Posts
                  Quote from: splittingred at May 28, 2010, 12:29 PM

                  Can you run this script (replacing with your DB info) without errors?

                  <?php
                  /* Connect to an ODBC database using driver invocation */
                  $dsn = 'mysql:dbname=testdb;host=127.0.0.1';
                  $user = 'dbuser';
                  $password = 'dbpass';
                  
                  try {
                    $dbh = new PDO($dsn, $user, $password);
                  } catch (PDOException $e) {
                    echo 'Connection failed: ' . $e->getMessage();
                  }
                  ?>
                  



                  yes, I can as I indicated in my 1st post.

                  Quote from: splittingred at May 28, 2010, 12:32 PM

                  Also:

                  - Are you running eAccelerator? APC?
                  - Have you read Troubleshooting Installation and Fresh Installation and have followed those steps, making sure the right dirs were made writable and such?
                  - Do you get any errors in core/cache/logs/error.log? Any install error log files in that same directory?

                  no eaccelerator and turned off APC, before 2nd install last nite. no change.
                  yes, have followed all troubleshooting and fresh install info, in fact, every file, folder in the entire install is now set to 777 (see next).

                  Here’s what I’m seeing in the core/cache/logs/error.log.
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/cb6735d74324be818cbc168c34fee488/0/ to index.php
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/cb6735d74324be818cbc168c34fee488/1/ to ht.access
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/416c2e5105292945e37fc3fdd8099215/0/ to assets
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/416c2e5105292945e37fc3fdd8099215/1/ to controllers
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/416c2e5105292945e37fc3fdd8099215/2/ to templates
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/416c2e5105292945e37fc3fdd8099215/3/ to ht.access
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not copy [PATH]/CMS7/core/packages/core/modContext/416c2e5105292945e37fc3fdd8099215/4/ to index.php
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/e1a99604dbe3574c67514fb6ee00a822/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/37716d61897c4e3b27eeeea6228fc421/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/20d024f77c7a330017db87ec029a7400/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/db5fe1e0bcf62416c0be9a49e5dc6d81/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/d9ca0463ea831c92ede1051ab7cfc625/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/67fca7fc2fd1d41b99372850903de700/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/87a2082dd4ea568d58eae1fcd1bb88ec/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/874c323e74f2fa87efba0b8407b290bf/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/6236add07797340510d138abafa998ff/ to
                  [2010-05-28 14:42:19] (ERROR @ /setup/index.php) Could not install files from [PATH]/CMS7/core/packages/core/xPDOFileVehicle/269f4f43c713ad772b36298bb6af3e9f/ to

                  which is why I’ve now set everything to 777 on this test install (5th attempt), just to ensure its not permissions.
                    • 28215
                    • 4,149 Posts
                    That’s definitely a permissions error.

                    Do you have safe_mode on?

                    Change the dirs to 0775 and 0664, and ensure that PHP can write to the directories by putting this script in the root and testing:

                    <?php
                    $fp = fopen('data.txt', 'w');
                    fwrite($fp, 'test');
                    fclose($fp);
                    
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 7715
                      • 5 Posts
                      Quote from: splittingred at May 28, 2010, 03:12 PM

                      That’s definitely a permissions error.

                      Do you have safe_mode on?

                      Change the dirs to 0775 and 0664, and ensure that PHP can write to the directories by putting this script in the root and testing:

                      <?php
                      $fp = fopen('data.txt', 'w');
                      fwrite($fp, 'test');
                      fclose($fp);
                      


                      As I indicated safe mode is OFF & EVERY directory & file is 777 incl root directory to eliminate permissions as an issue. Above code ran as expected and deposited a text file in root dir.