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.
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????
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.