Subscribe: RSS
  • 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
    • 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.
      • 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.
        • onesmarthost Reply #4, 4 years ago
          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.
          • 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".

            • onesmarthost Reply #6, 4 years ago
              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.
              • 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?
                • 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).
                  • 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.
                    • try /home/username/sitename-www/www09/assets/ in Resource Path
                      and http://yourdomain.com/assets/ in the url.