Hi,
I have special server configuration, images folder is shared between multiple sites, using symlink, so the directory structure looks like this
/var/www/site1/
/var/www/shared/images
and /var/www/site1/images is symbolic link pointing to /var/www/shared/images
In this configuration thumbnails are not created (even all paths are writable). Reason is in adimnistrator/components/com_hikashop/helpers/image.php on line 337
$clean_filename = $fullFilename;
try{
$clean_filename = JPath::clean(realpath($fullFilename));
if((JPATH_ROOT != '') && strpos($clean_filename, JPath::clean(JPATH_ROOT)) !== 0) {
if(!defined('MULTISITES_MASTER_ROOT_PATH') || MULTISITES_MASTER_ROOT_PATH == '' || strpos($clean_filename, JPath::clean(MULTISITES_MASTER_ROOT_PATH)) !== 0)
return $ret;
}
}catch(Exception $e) {
}
as realpath translates /var/www/site1/images/.... to /var/www/shared/images/..... so the check will not pass.
Is it necessary to call realpath at this point?
I solved my issue by defining MULTISITES_MASTER_ROOT_PATH (even I do not use Multisites), but it took me few hours to fnd out reason, if realpath could not be removed, maybe some configuration option would be great.
Pavel