We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22969
    • 158 Posts
    Hi,

    As im developing for a currently live website I have setup the new website on a temp url supplied by my hosting (essentially a sub domain) but despite the base url looking right on the front end the manager refuses to show the left hand tree and dropdowm menu links don't work either.

    The link is http://79.170.44.100/prospectmortgage.co.uk/

    It stopping me from moving forward so any help would be appreciated, ill paste below the config file (omitting DB details)

    Thanks Brett

    if (!defined('MODX_CORE_PATH')) {
        $modx_core_path= '/home/sites/prospectmortgage.co.uk/public_html/core/';
        define('MODX_CORE_PATH', $modx_core_path);
    }
    if (!defined('MODX_PROCESSORS_PATH')) {
        $modx_processors_path= '/home/sites/prospectmortgage.co.uk/public_html/core/model/modx/processors/';
        define('MODX_PROCESSORS_PATH', $modx_processors_path);
    }
    if (!defined('MODX_CONNECTORS_PATH')) {
        $modx_connectors_path= '/home/sites/prospectmortgage.co.uk/public_html/connectors/';
        $modx_connectors_url= '/prospectmortgage.co.uk/connectors/';
        define('MODX_CONNECTORS_PATH', $modx_connectors_path);
        define('MODX_CONNECTORS_URL', $modx_connectors_url);
    }
    if (!defined('MODX_MANAGER_PATH')) {
        $modx_manager_path= '/home/sites/prospectmortgage.co.uk/public_html/manager/';
        $modx_manager_url= '/prospectmortgage.co.uk/manager/';
        define('MODX_MANAGER_PATH', $modx_manager_path);
        define('MODX_MANAGER_URL', $modx_manager_url);
    }
    if (!defined('MODX_BASE_PATH')) {
        $modx_base_path= '/home/sites/prospectmortgage.co.uk/public_html/';
        $modx_base_url= '/prospectmortgage.co.uk/';
        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']) && strtolower($_SERVER['HTTPS']) == 'on') || $_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='79.170.44.100';
            define('MODX_HTTP_HOST', $http_host);
        } else {
            $http_host= array_key_exists('HTTP_HOST', $_SERVER) ? $_SERVER['HTTP_HOST'] : '79.170.44.100';
            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/sites/prospectmortgage.co.uk/public_html/assets/';
        $modx_assets_url= '/prospectmortgage.co.uk/assets/';
        define('MODX_ASSETS_PATH', $modx_assets_path);
        define('MODX_ASSETS_URL', $modx_assets_url);
    }
    

      • 37242 ☆ A M B ☆
      • 339 Posts
      As mentioned in Twitter, I had that once and someone told me to look for the .htaccess file in manager folder. If its still ht.access, rename it. Just guessing, but its worth a try.
        • 3749
        • 24,544 Posts
        If you do have an .htaccess file, check the Rewrite Base line near the top. It should have the subdirectory name in it (basically, what comes after public_html). Make sure it ends with a slash.

        Also, make sure you have this line in the head section of all templates:

        <base href="[[++site_url]]" />
          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
          • 22969
          • 158 Posts
          Hi Guys,

          Tried htaccess trick no difference, i haven't got friendly urls turned on anyway as cant access anywhere in the manager pass the dashboard??

          From looking at the front end code i do appear to have the base url in place as per the default template that comes with modx...

          <html>
          <head>
          <title>MODX Revolution - Home</title>
          <base href="http://79.170.44.100/prospectmortgage.co.uk/" />
          </head>
          <body>
          
          </body>
          </html>
          


          Any other ideas?? :-(

          Brett
            • 18373 ☆ A M B ☆
            • 3,141 Posts
            It's possible that certain extra restrictions are in place due to the temporary (IP-based) domain, which are causing the javascript minification to fail and as a result you don't see a whole lot in the manager.

            Try disabling the compress_js and compress_css settings. As the manager is not functional, you can either change it in the database (modx_system_settings table) followed by emptying the cache; or you can edit the file in core/cache/settings/ (set the value to 0) and then, if the manager works again, go to the system settings grid and update the value from there.
              Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

              Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
              • 22969
              • 158 Posts
              Mark, thank you that worked!!!!

              Will remember that smiley

              Brett
                • 37242 ☆ A M B ☆
                • 339 Posts
                Quote from: markh at Oct 08, 2014, 05:24 AM
                or you can edit the file in core/cache/settings/ (set the value to 0) and then, if the manager works again, go to the system settings grid and update the value from there.
                Buddy, you are a genious. I never thought of that way smiley
                  • 38813
                  • 29 Posts
                  Hi guys,

                  I've been having a similar issue with Revo 2.3.2 but with a domain name and not a temporary IP. Happened on multiple installs. I also tried going back to Revo 2.3.1 which had exactly the same problem.

                  I tried disabling the JS and CSS compression as Mark suggested and that did give me working menus. I've upgraded a 2.2 site to 2.3.1 for a friend of mine and there were no issues of this sort.

                  It appears as though the issues are caused by new installs only.

                  Michael