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

    I'm having a small problem with using site_url and base_url.

    When using site_url the url comes out as http://mydomain.co.uk/mydomain.

    So I manually set the base as such <base href="http://www.mydomain.co.uk" /> but when using base_url the link still produces http://mydomain.co.uk/mydomain/assets.... etc

    My thoughts are that the website was originally built before the domain was ported across, so to access the website you would put in the IP address followed by the website name http://xxx.xxx.xxx.xxx/mydomain.co.uk, and this is where the confusion has come in.

    Reading some posts in the forum I am wondering if I need to re-run the setup but I'm not sure how I go about it, thinking I might just need to copy the setup files back over and re-run it?

    Many thanks in advance for the help.

    Note: sorry forgot to mention Im running Revo 2.2.4-pl, and that I have checked the config.inc.php files as per http://forums.modx.com/thread/76422/site-finally-works-online-but-manager-doesn-t [ed. note: mflammia last edited this post 11 years, 6 months ago.]
    • If you used a temporary domain, you'll want to modify the config files that were set at install. If you didn't check the documentation for moving your site, but only that thread, there may be more config files you missed.

      About halfway down in the documentation here : http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server
      are ALL the files you need to check into. You may still need to modify the variables in config.inc.php as is noted (before, your site was in a subdirectory, now you need to set the variables to '/' indicating a root install), and also these files:

      /config.core.php
      /connectors/config.core.php
      /manager/config.core.php


      Check the workspaces table as well, and delete the files located in the core/cache folder rather than using the manager to clear the cache.

      Also, it's never a bad idea to re-run setup and in this situation, probably essential. I typically don't just use the setup folder, but rather I run it like an upgrade and merge all the installation files on the server. Follow the upgrading information here http://rtfm.modx.com/display/revolution20/Upgrading+MODx
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 40541
        • 85 Posts
        Hi,

        Thanks for posting.

        Believe i have done everything correctly, but must have done something wrong.....

        I made sure the connectors folder and core/config.core.php could not be overwritten.

        Used Transit ftp software and made sure the folders where set to merge.

        Deleted everything in the core/cache folder.

        Edited the config.core.php files as detailed.

        Run upgrade.

        But somehow it seem to have killed my website, which now displays 500 error and the manager page loads without any css?

        The website is here www.thingstodonearyou.co.uk, don't know if anything obvious stands out

        Many thanks. [ed. note: mflammia last edited this post 11 years, 6 months ago.]
        • The problem may lie in the fact that ftp'ing that many unpacked files could have resulted in corrupted or missing files.

          To be sure, do it again as instructed. On the server itself. No ftp. If the error remains after that, then we can look for another solution.

          Other things to try: Turn off compress_css and compress_js in the system settings, remove/rename .htaccess and turn off FURL's in system settings for the moment.
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 40541
            • 85 Posts
            Ok, so almost all done.

            I couldn't unzip the file directly on the webserver due to some issue with my service provider, but managed to do another FTP and upload all the files. Thought seeing as I am going through the motions of upgrading I would bring myself up to date from 2.2.4-pl to 2.2.5-pl.

            I updated all the config files as per http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server

            Made sure FURL's where turned off along with compress_css and compress_js as per http://rtfm.modx.com/display/revolution20/Troubleshooting+Installation#TroubleshootingInstallation-TheManagerdisplaysasplaintext%2CManagerpartsaremissing%2CorthereareJavaScript400ErrorsintheManager

            Now the website is restored, but the only issue I have is the Manager displaying in plain text, no css. When I look at the css links in the header they seem to look ok, but don't work, which is confusing me somewhat.

            Sure this is probably going to come down to some school boy error, but I've been over the config files many times and searched the forum for a solution without any success.

            Many thanks.
              • 40541
              • 85 Posts
              Sorted it, wahoo!

              The config.inc.php should have been:

              $modx_connectors_url= '/connectors/';
              $modx_manager_url= '/manager/';
              $modx_assets_url= '/assets/';
              $modx_base_url= '/';

              but I had it set to.....

              $modx_connectors_url= '/';
              $modx_manager_url= '/';
              $modx_assets_url= '/';

              [ed. note: mflammia last edited this post 11 years, 6 months ago.]