We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42049 ☆ A M B ☆
    • 250 Posts
    Just been bugging me for a while and would like to know the answer.

    I have a server that I host clients on, more often than not, I set up the enviroment, and wait until project completion, get them to change there nameservers, re-run setup and everything works great.

    However, before this happens the site is at an address similar to this http://12.12.12.12/~clientname

    When it is like that above, all rendered images (such as tv images selected from the filesystem and then this.renderImage), don't load.

    If I inspect with development tools, it trys to load the images from http://12.12.12.12/assets... as opposed to the correct http://12.12.12.12/~clientname/assets...

    Any ideas on what setting I need to change to get this to work? As I said above, everything else works fine, including rendering of those images in say a getResources call!

    Many thanks
      GEL STUDIOS
      MODX Professional | MODX Ambassador

      Website | Email | Twitter | Facebook
      • 35150 ☆ A M B ☆
      • 191 Posts
      Quote from: gelstudios at Apr 20, 2013, 01:45 AM

      However, before this happens the site is at an address similar to this http://12.12.12.12/~clientname

      For TV images, phpThumb doesn't handle paths which reference a particular user's home directory ( ~username/ ) so it isn't creating those thumbnails. I'm not sure about the MIGX crosstick, but it's also path/url related I'm sure.

      You could set up a temporary url like dev.somecompany.com and use that for the development site. Having a “real” URL will fix things, as you mentioned. You might also experiment with $modx_assets_path and $modx_assets_url in config.inc.php...
        Extras :: pThumb • Resizer • imageSlim • setPlaceholders