Open Minouch opened 11 years ago
I had the same problem with my server and a Wordpress setup. It turned out that the location where the script was executed on the server contained symbolic links (symlinks). These are virtual paths, that don't get resolved with the use of just $_SERVER['DOCUMENT_ROOT'] as in the original setup of Adaptive Images.
I eventually fixed it by replacing the '$document_root'-lines (there are two of them), inside adaptive_images.php, with:
$document_root = realpath($_SERVER['DOCUMENT_ROOT']);
The use of 'realpath' converts the possible returned symlinks to an absolute path.
NOTE: Maybe this could get implemented in the next version to ensure wider support on install?
Hi; I am working on my website located in http://localhost/joomla or (/var/www/joomla) directory (not http://localhost which is /var/www). I did the following : 1 - Copy adaptive-images.php & ai-cookie.php into /var/www/joomla directory 2 - Create directory /var/www/joomla/ai-cache 3 - Assign www-data.www.data to adaptive-images.php, ai-cookie.php and ai-cache directory as well 4 - Added the javascript code at head of joomla website just before anything else as explained. 5 - In adaptive-images.php, correct the path with : $document_root = $SERVER['DOCUMENTROOT'].'/joomla'; 6 - Modified my .htaccess and added appropriate code for Adaptive image
Result: -> The website load with just everything on it except images, no images was loaded at all!
For that i think it could be possible that my .htaccess who is not well configured, so i will past my htaccees content here and i which if you figure out where is the issue. Thank You.
.htaccess