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 having an issue when I try and re-run my setup script for a site migration. After setting up, I moved my test site from another server and another URL to a new server and URL. The new server on a new host (network solution) does not have the same long direct paths as my previous server.

    In calling the host they say the direct path is: /htdocs/

    Anyway, I turned of friendly URLs, cleared cache and sessions and downloaded all site files and database (from working install). I then uploaded all exisitng files to new server and installed the database via phpMyAdmin. I then had to modify the config.core.php file in the root to the new path which is: /htdocs/core/. My problem comes in trying to get my config.inc.php urls correct.

    I re-installed the original setup folder and then run the upgrade option. I keep getting this issue during upgrade:
    Checking if /manager/ directory exists: Failed!
    Checking if /connectors/ directory exists: Failed!


    I tried it with and without the /htdocs/ in front of both these lines but it keeps failing. These directories are there and have proper permissions (755).

    Here is what I have in my config on these lines:
    if (!defined('MODX_CONNECTORS_PATH')) {
    
        $modx_connectors_path= '/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= '/manager/';
    
        $modx_manager_url= '/manager/';
    
        define('MODX_MANAGER_PATH', $modx_manager_path);
    
        define('MODX_MANAGER_URL', $modx_manager_url);
    
    }


    All the others options show the proper path like this: Checking if /data/15/1/99/152/1751315/user/1892486/htdocs/core/export directory exists: OK!

    Although my lines in my config file look like this: /htdocs/core/ so I don't know here the data/15/1/99... riff raff is coming from.

    I am unsure if this is another setting due to the migration or there is something wrong with my lines here.
      Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
    • I seriously doubt that the full path to your installation is /htdocs/. Try creating a file, info.php, with this in it:
      <?php
      phpinfo()


      Put that in your web root, then load it in your browser. Scroll down to the part that describes the SERVER values. Look for the _SERVER["DOCUMENT_ROOT"] value.
        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
        Thanks sottwell that's exactly what I thought. In the phone I questioned the support person over and over telling them I had never seen a path to URL like this (not that they don't exist) and they were adamant it was correct. I just created a test folder and did a fresh install and the new install showed me the path. It was as I had shown above as one that was accepted: /data/15/1/99/152/1751315/user/1892486/htdocs

        There were a few other lines in this file I missing this detail. Install went properly once I used the test install url paths as an example.
          Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
        • I also have my doubts about that one. It may well be that it's a distributed share, and that specific path may not always be valid. The /htdocs/ is probably some kind of alias, which isn't working for MODX.
            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
            • 3749
            • 24,544 Posts
            I agree with Susan that /htdocs/ is meant to be set up as an alias for the full path and that it's not working right. I think putting something like this in the info.php file in the supposed /htdocs/ directory and visiting it might be worth doing. If it throws an error, you can point the host's support team at it.


            info.php file:

            <?php
            
            echo 'Directory: ' . dirname(__FILE__);
            
            if (!file_exists('/htdocs/info.php')) {
               echo "\n/htdocs/info.php does not exist";
            } else {
               echo "\n OK";
            }



              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
              • 32025
              • 305 Posts
              bobray,

              I was able to determine the same thing by doing a fresh install, but this would have saved me much time. Creative solution, love it and hope this helps others. The full path ended up being: /data/15/1/99/152/1751315/user/1892486/htdocs. I ask support over and over again knowing its not right, and they are stuck on their /htdocs/ routine. I knew support was wrong, your script showed the proper path and said the /htdocs does not exist.
                Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
                • 3749
                • 24,544 Posts
                I would email support asking why this line (in another .php file called test.php) throws an error when the file is clearly there:
                <?php
                require '/htdocs/info.php';
                echo 'OK';
                
                  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
                  • 32025
                  • 305 Posts
                  BobRay,

                  Network solutions is just not worth my time anymore. These types of issues have been happening over and over for me (from time to time), and I am just done with the company. I am just going to advise any client I do business with that I will no longer work Network Solutions. You would think in the ever competitive hosting field they would make life a little easier to gain business.
                    Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
                    • 3749
                    • 24,544 Posts
                      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