Hi Takis, and thanks for your quick reply. I’m afraid to mess with my live site right now, as there’s another image+caching solution already in place working smoothly of Nginx over Apache.
Taking a quick-look at the code in adaptive-images-actions.php
though, it seems apparent the concatenations happening to $adaptive_images_php_script
imply a unix-style path. As each save of the AI settings also modifies .htaccess
, adding the following piece of code is currently addressing the Windows/WAMP idiosyncrasies for me:
adaptive-images-actions.php ~line 150
// If no starting slash then add it.
if ( strpos( $adaptive_images_php_script, '/' ) !== 0 ) {
$adaptive_images_php_script = '/' . $adaptive_images_php_script;
}
#alx359-->
// https://stackoverflow.com/questions/1240462/
if( strtoupper(substr(PHP_OS, 0, 3) ) === 'WIN') {
$adaptive_images_php_script = realpath( $adaptive_images_dir_path_relative . '/adaptive-images-script.php' );
$adaptive_images_php_script = str_replace( '\\','/',$adaptive_images_php_script );
$adaptive_images_php_script = str_replace( $_SERVER['DOCUMENT_ROOT'], '', $adaptive_images_php_script );
//$adaptive_images_php_script = '//'.$_SERVER['HTTP_HOST'].$adaptive_images_php_script;
}
//error_log( var_export( $adaptive_images_php_script , true ) );
#<--alx359
Hope you may consider a better compatibility with the aforementioned configuration in the near future.
Thanks.