We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54169
    • 12 Posts
    Good day, I am moving a site from one server to another. I have followed https://docs.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server to a tee and still nothing. The wordpress blog migrates perfectly but no matter what I do on the modx portion it either gives a 503 (site temporary down)or if I try a fresh install, dump db and add the old db I get a blank manager. I also cannot click on the third advanced option in setup. I have the site pointed back to the other server in the mean time.
      • 3749
      • 24,544 Posts
      Did you run setup after moving things? That will usually straighten out the paths.

      Some other things to try:

      Make sure the PHP version at the new host is at least 5.6.

      Check the paths and URLs in the core/config/config.inc.php file, and the DB credentials there.

      Check the paths in the three config.core.php files in the root, manager, and connectors directories.

      Make sure the DB user has full rights and that the name of the DB and the user are correct (they're not necessarily what you entered when creating them, -- some hosts will add a prefix).

      Check the MODX error log: core/cache/logs/error.log

      The server's error log is another place to look.

      Another thing to try is firing up Chrome Dev. Tools (Ctrl-shift-i) and watching the Network tab.




        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
        • 54169
        • 12 Posts
        All that was done and this is what the errors are saying

        text/x-log error.log ( ASCII text )
        [2019-03-11 17:12:48] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:12:48] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:12:48] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:13:07] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:13:07] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:13:07] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:17:03] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:17:03] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:17:03] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:19:59] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:19:59] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:19:59] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:20:53] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:20:53] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:20:53] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:25:57] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:25:57] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:25:57] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:30:30] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:30:30] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:30:30] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:32:28] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:32:28] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:32:28] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:33:07] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:33:07] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:33:07] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:33:08] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:33:08] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:33:08] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:33:34] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:33:34] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:33:34] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
        [2019-03-11 17:35:20] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 503) Path specified for package collections is not a valid or accessible directory: /home/letsjamarketing/public_html/core/components/collections/model/
        [2019-03-11 17:35:20] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 644) Could not load class: pdoParser from pdoparser.
        [2019-03-11 17:35:20] (ERROR @ /home/letsjamarketing/public_html/core/xpdo/xpdo.class.php : 1247) Problem getting service parser, instance of class pdoParser, from path /home/letsjamarketing/public_html/core/components/pdotools/model/pdotools/
          • 54169
          • 12 Posts
          I also created this path with the correct folders and files /home/letsjamarketing/public_html/core/components/collections/model/
            • 3749
            • 24,544 Posts
            Normally, a localhost path will have a drive designation, like C:/home/letsjamarketing...

            Do the paths in config.inc.php have one?

            If you have multiple contexts, you may have hard-coded path and URL context settings that need to be corrected.

              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
              • 54169
              • 12 Posts
              The paths so not have drive designation

              <?php
              /**
              * MODX Configuration file
              */
              $database_type = 'mysql';
              $database_server = 'localhost';
              $database_user = '*************';
              $database_password = '***********';
              $database_connection_charset = 'utf8';
              $dbase = 'letsjamarketing_site';
              $table_prefix = 'modx_';
              $database_dsn = 'mysql:host=localhost;dbname=letsjamarketing_site;charset=utf8';
              $config_options = array (
              );
              $driver_options = array (
              );

              $lastInstallTime = 1548867458;

              $site_id = 'modx5c51d782519aa3.36848960';
              $site_sessionname = 'SN5942ca06290c5';
              $https_port = '443';
              $uuid = '5f27d05e-458b-4481-87cf-0bc08a2679c3';

              if (!defined('MODX_CORE_PATH')) {
              $modx_core_path= '/home/letsjamarketing.com/public_html/core/';
              define('MODX_CORE_PATH', $modx_core_path);
              }
              if (!defined('MODX_PROCESSORS_PATH')) {
              $modx_processors_path= '/home/letsjamarketing.com/public_html/core/model/modx/processors/';
              define('MODX_PROCESSORS_PATH', $modx_processors_path);
              }
              if (!defined('MODX_CONNECTORS_PATH')) {
              $modx_connectors_path= '/home/letsjamarketing.com/public_html/connectors/';
              $modx_connectors_url= '/connectors/';
              define('MODX_CONNECTORS_PATH', $modx_connectors_path);
              define('MODX_CONNECTORS_URL', $modx_connectors_url);
              }
              if (!defined('MODX_MANAGER_PATH')) {
              $modx_manager_path= '/home/letsjamarketing.com/public_html/manager/';
              $modx_manager_url= '/manager/';
              define('MODX_MANAGER_PATH', $modx_manager_path);
              define('MODX_MANAGER_URL', $modx_manager_url);
              }
              if (!defined('MODX_BASE_PATH')) {
              $modx_base_path= '/home/letsjamarketing.com/';
              $modx_base_url= '/';
              define('MODX_BASE_PATH', $modx_base_path);
              define('MODX_BASE_URL', $modx_base_url);
              }
              if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
              $isSecureRequest = false;
              } else {
              $isSecureRequest = ((isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') || $_SERVER['SERVER_PORT'] == $https_port);
              }
              if (!defined('MODX_URL_SCHEME')) {
              $url_scheme= $isSecureRequest ? 'https://' : 'http://';
              define('MODX_URL_SCHEME', $url_scheme);
              }
              if (!defined('MODX_HTTP_HOST')) {
              if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
              $http_host='letsjamarketing.com';
              define('MODX_HTTP_HOST', $http_host);
              } else {
              $http_host= array_key_exists('HTTP_HOST', $_SERVER) ? htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES) : 'letsjamarketing.com';
              if ($_SERVER['SERVER_PORT'] != 80) {
              $http_host= str_replace(':' . $_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST
              }
              $http_host .= ($_SERVER['SERVER_PORT'] == 80 || $isSecureRequest) ? '' : ':' . $_SERVER['SERVER_PORT'];
              define('MODX_HTTP_HOST', $http_host);
              }
              }
              if (!defined('MODX_SITE_URL')) {
              $site_url= $url_scheme . $http_host . MODX_BASE_URL;
              define('MODX_SITE_URL', $site_url);
              }
              if (!defined('MODX_ASSETS_PATH')) {
              $modx_assets_path= '/home/letsjamarketing.com/public_html/assets/';
              $modx_assets_url= '/assets/';
              define('MODX_ASSETS_PATH', $modx_assets_path);
              define('MODX_ASSETS_URL', $modx_assets_url);
              }
              if (!defined('MODX_LOG_LEVEL_FATAL')) {
              define('MODX_LOG_LEVEL_FATAL', 0);
              define('MODX_LOG_LEVEL_ERROR', 1);
              define('MODX_LOG_LEVEL_WARN', 2);
              define('MODX_LOG_LEVEL_INFO', 3);
              define('MODX_LOG_LEVEL_DEBUG', 4);
              }
                • 3749
                • 24,544 Posts
                They probably should for a localhost install, assuming that your operating system has them. I've had to use full, hard-coded paths in some localhost installs.
                  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