We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14930
    • 70 Posts
    My client has a problem when he tries to manage his files through "Resources" -> "Manage Files". The folders and files are there all right, but when he tries to download a file, he gets a 404 error. The "Download file" button points to "http://url.of.site/manager/../folder-or-file".

    The resource paths in "Tools" -> "Configuration" haven’t been tampered with, they should be ok. They are using MODx version 0.9.6.3, rev 4565.

    Thanks for your help in advance! smiley
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You may have to edit the file path; it’s probably relative and the server or his browser doesn’t like that. For example, it may have something like "assets/" and you’ll need to use "/assets/", or possibly even a full path. Also make sure to check his user’s settings in the "User" tab.
        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
        • 14930
        • 70 Posts
        Thanks for your quick reply! I’ll have to look into that. I logged in with my admin account and had the same error, so it can’t be in his own settings.
          • 37550 ☆ A M B ☆
          • 711 Posts
          Ive seen this issue before and it’s generally down to the site - file manager path settings. Could you share with us what you have set?
            http://www.onesmarthost.co.uk
            UK MODX Hosting with love.
            • 14930
            • 70 Posts
            phpinfo shows document root as /home/username/sitename-www

            And the file manager path is
            /home/username/sitename-www/www09/

            I tried to change it to match but then I started getting all sorts of error messages when I went to "Manage files".

              • 37550 ☆ A M B ☆
              • 711 Posts
              What is your resource path set as and also resource URL?

              Has file manager worked before? and if so has anything changed recently with your MODx setup or server?

                http://www.onesmarthost.co.uk
                UK MODX Hosting with love.
                • 14930
                • 70 Posts
                Resource path: /home/username/sitename-www/
                Resource URL: /home/username/sitename-www/www09/assets/

                From what I recall, the file manager has worked fine before. There were problems with it not working when there were umlauts in file names, but I’ve checked that. And no changes that I know of, gotta ask the hosting company if they’ve made any changes. Anything in particular I could ask them that could affect this?
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  A URL is not a path! That should be the actual URL to the assets, something like www.mysite.com/assets/. Usually just /assets/ will do (like the / at the root of your server path, a leading / in a URL indicates the root of your webspace), or if relative URLs are OK assets/ (relative from the main index.php in your webspace).
                    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
                    • 14930
                    • 70 Posts
                    D’oh! How could I have missed that?

                    Well, I tried the full URL or just assets/, still doesn’t work. Hmm, I guess I’ll contact the host and see if they have any idea.
                      • 27330
                      • 884 Posts
                      try /home/username/sitename-www/www09/assets/ in Resource Path
                      and http://yourdomain.com/assets/ in the url.