On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi All,

    I’m trying to set up file upload capabilities for a client, and have run into a couple problems. When I use TinyMCE to insert an image into the document, TinyMCE uses the wrong image path. It duplicates the images folder, like:

    /assets/images/images/picture.jpg

    And I’m not sure if this is related, but when I try to access the File Manager, I get this error:

    Directory listing for: /
    Access Denied!

    Has anyone had these errors and found a solution?

    Here are my resource path settings for reference:

    Resource URL: /var/www/vhosts/site.com/httpdocs/assets/
    Resource path: /assets/
    File Manager Path: /var/www/vhosts/site.com/httpdocs/manager/

    I’ve also made sure to change all permissions for /assets/images, /assets/cache, /assets/files to 666 or greater.
    (Most are now set to 777 while trying to fix these issues).

    Thanks to anyone who can help!

    **EDIT: I see now I should have put this in the TinyMCE forum, mods if you are watching I’m sure you’ll move this smiley

    Wes
    • Looks to me like your Resource URl & Resource path are the wrong way round.
      • I’ve switched those around now, but the problem still persists. Originally I thought this issue was related to a server setting, but since other modx installs on this server are working fine I believe it’s another issue...

        About 3 weeks ago this site was being very quirky and I couldn’t seem to fix a strange modx problem - so I reinstalled modx and dumped all of the site-specific tables (content, chunks, snippets) into this new modx install.

        Worked great. Fixed the old issue, but now this TinyMCE image path issue has arisen.

        So that’s the backdrop of the problem that’s occurring now... hopefully someone will have had this problem before and can help explain what’s happening here.
        • File Manager Path: /var/www/vhosts/site.com/httpdocs/manager/
          Shouldn’t have manager at the end, usually it’s assets.
          What are the paths on the other sites like?
          • Thanks, I got that changed - other sites just end in httpdocs/ but work fine.