We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    I've read other threads pertaining to this problem but the suggested solutions haven't worked for me. I'm sure it's something simple (still new to MODX).

    I moved a site from the local server to the remote and everything went fine except that the 'Files' tab in the Doc Tree only shows an empty folder named 'Media'. Not sure if it's a setting I missed or something else. I'm using Revo 2.2.4

    Thanks [ed. note: todd.b last edited this post 11 years, 10 months ago.]
      Todd
      • 1841
      • 141 Posts
      Have you checked the folder permissions are set right? One possibility is the filepaths have changed after the move and need to be updated in the config.php file. Did you run setup again after you moved?
        • 3749
        • 24,544 Posts
        First, check the path in the modx_workspaces table in the DB with PhpMyAdmin (through cPanel or the equivalent).

        Try going to Tools -> Media Sources. Right-click on the FileSystem Media Source and select Update Media Source. Check the settings. Usually, the basePath and baseUrl are empty and both are set to 'relative'.


        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          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
          • 40088
          • 708 Posts
          Quote from: BobRay at Jun 30, 2012, 07:12 PM
          First, check the path in the modx_workspaces table in the DB with PhpMyAdmin (through cPanel or the equivalent).

          Try going to Tools -> Media Sources. Right-click on the FileSystem Media Source and select Update Media Source. Check the settings. Usually, the basePath and baseUrl are empty and both are set to 'relative'.

          Hi Bob,

          The modx_workspaces path shows
          {core_path}


          The basePath and baseUrl are indeed empty. See screenshot http://tinyurl.com/76mxwn4. Are you saying I should set it to 'relative'?
            Todd
            • 40088
            • 708 Posts
            Quote from: antsplace at Jun 30, 2012, 05:39 PM
            Have you checked the folder permissions are set right? One possibility is the filepaths have changed after the move and need to be updated in the config.php file. Did you run setup again after you moved?

            Permissions for which folder?

            No, I haven't run 'setup' again, but I will do so right now.

            Thanks
              Todd
              • 40088
              • 708 Posts
              Quote from: antsplace at Jun 30, 2012, 05:39 PM
              Did you run setup again after you moved?

              I ran 'setup' again but nothing changed.
                Todd
                • 40088
                • 708 Posts
                Also, this problem doesn't exist with a clean install so it has to do with moving between servers.

                Sure would like to get this fixed.
                  Todd
                  • 40088
                  • 708 Posts
                  Something else I noticed: If I'm on either the Resources or Elements tab and click over to the Files tab the disclosure triangle for the Media folder is visible for just a second before it disappears.

                  I also did a clean install but imported the old db into the new install yet the Files tab is still empty save for the Media folder.
                    Todd
                    • 3749
                    • 24,544 Posts
                    Quote from: todd.b at Jun 30, 2012, 07:47 PM

                    Hi Bob,

                    The modx_workspaces path shows
                    {core_path}


                    The basePath and baseUrl are indeed empty. See screenshot http://tinyurl.com/76mxwn4. Are you saying I should set it to 'relative'?

                    The Workspaces value is probably correct, although my install has the path to the core hard-coded (/home/username/public_html/core/).

                    Your Media Source looks fine too -- I meant to set relative to 'Yes' which is is.

                    When you say nothing shows up but the Media folder -- that's normal -- when you expand the media folder by clicking on it, you should see the /core and /manager folders (among others). Does that not happen?


                    ------------------------------------------------------------------------------------------
                    PLEASE, PLEASE specify the version of MODX you are using.
                    MODX info for everyone: http://bobsguides.com/modx.html
                      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
                      • 40088
                      • 708 Posts
                      Quote from: BobRay at Jul 01, 2012, 05:04 AM
                      When you say nothing shows up but the Media folder -- that's normal -- when you expand the media folder by clicking on it, you should see the /core and /manager folders (among others). Does that not happen?

                      No it doesn't. Other than an occasional flash of the disclosure triangle clicking on the Media folder does absolutely nothing.

                      Should I try hard-coding the Workspaces path like yours?
                        Todd