We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1829
    • 15 Posts
    Quote from: someone at Nov 03, 2010, 01:48 PM

    Any idea why I am getting a crazy path back? (/assets/components/phpthumbof/cache/var/www/vhosts/xxx/xxx.xxx.com/htdocs/assets/components/phpthumbof/cache/assets_images_papericon.jpg.44a3e177ce23da9b0c3708f158b746e0.png)

    "/assets/components/phpthumbof/cache" should be sufficient and "/var/www/vhosts/xxx/xxx.xxx.com/htdocs/..." is my system mapping. Not sure how/why this would happen. Any idea?

    The same thing happens to me... Any ideas?
      • 12060
      • 1 Posts
      I am also getting this same error message.....very new to modx so I haven’t the slightest idea as to what is wrong. Hopefully someone here with more knowledge can enlighten us.
        • 22930
        • 5 Posts
        Hi All,

        And more of a designer than a developer so please be gentle.

        My issue with phpThumbOf is...

        From my template I am calling this:

        <img src="[[*ImageArticle:phpthumbof=`&w=588&&zc=1`]]"/>

        And in the source I am getting this reply:

        <img src="/assets/components/phpthumbof/cache/D:/Domains/xxxxxx.co.uk/wwwroot/assets/components/phpthumbof/cache/xxxxxxx.jpg.4972dd8eda5e404a89ba623cd9177e61.png"/>

        Any clues????



          • 26555
          • 38 Posts
          Same problem with generated path here.
          Of course one could workaround this, but it would be nice to know what’s actually going wrong.

          Using MODx Revolution 2.0.8-pl (traditional) and phpthumbof 1.1.0.

          Update:

          After digging a little I found out that in my case this problem is due to symlinking by my hoster:
          /var/www -> /home/www

          To fix this error I adjusted the asset path in my core/config/config.inc.php accordingly:
          $modx_assets_path= ’/home/www/.../’;
          Now everything works as expected.

          The line which causes the "error" within the snippet, is this one:
          $cacheUrl = $assetsUrl.’cache/’.str_replace($phpThumb->config_cache_directory,’’,$cacheKey);

          The replacement does not work because the real path and the symlink path differ.
            • 34078
            • 76 Posts
            I also had the same issue with the generated path with MODx Revolution 2.0.8-pl and phpthumbof 1.1.0.

            On shared hosting server 1&1 Pack Pro, I replaced the real path /kunden/homepages/34/d357976897/htdocs/v1/core/ by /homepages/34/d357976897/htdocs/v1/core/ and now it works !
            Thanks sebwebdev ! wink

            Hope this helps other people.