We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 309
    • 24 Posts
    For some reason some of my .png images are not displaying after upgrading. Is this a bug? Does anybody know what might cause this? I’m using Firefox 3.6.3

    I discovered that for some reason it is only having trouble displaying .png images located in assets/images/.

    If I place the .png image under assets/templates/custom/images/test.png it displays fine.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That is odd; MODx doesn’t care at all where your images are stored, or what kind they are. The src attribute of your img tags works just the same from your browser as if the page were a flat HTML page (which as far as your browser is concerned it may as well be; the browser requests a file from the server and neither knows nor cares how the server produces that file).
        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
        • 309
        • 24 Posts
        I actually discovered the problem had to do with some code I had in my .htaccess file for the assets directory. I’m using the assets directory as a sort of file share for members and had to add some workaround to make the index directories available only when clicked from an internal link. I’m still not exactly sure why the issues was only with .png files, but after updating my .htaccess files in the respective asset directories the issue went away.