Hi,
I am trying to use adaptive images with modx, I have completed all of the steps of the setup, but get the following error when viewing an image:
Warning: mkdir() [function.mkdir]: Permission denied in ....
I think this is because I am using a temporary domain eg.
http://12.34.567.80/~mysite/
I have a feeling I need to change the source_file var in adaptive-images.php:
/* get all of the required data from the HTTP request */
$document_root = $_SERVER['DOCUMENT_ROOT'];
$requested_uri = parse_url(urldecode($_SERVER['REQUEST_URI']), PHP_URL_PATH);
$requested_file = basename($requested_uri);
$source_file = $document_root.$requested_uri;
any ideas what it needs to be changed to?
thanks,
G