No images are displaying in the slider when the module uses Ytools to re-size the image. Looking at the image source path being generated it becomes clear why there is no image.
---
www.domain.com///home/public/www/www/cache/mod_sj_vm_slickslider/227b70760e226f5960dc84434ae422b5.jpeg
---
I think the solution is somewhere in this code string from ytools.php. I just don't know what to change...
if (is_array($width)){
$config = $width;
$width = isset($config['output_width']) ? $config['output_width'] : null;
$height = isset($config['output_height']) ? $config['output_height'] : null;
$config['function'] = in_array($config['function'], array('none', 'center', 'fill', 'fit', 'stretch'))
? 'resize_' . $config['function']
: $config['function'];
}
if (!is_string($image)){
return false;
} else if (isset($config['function']) && $config['function']=='resize_none'){
if (!self::isUrl($image)){
$image = JURI::root() . '/' . str_replace('\\', '/', $image);
}
return $image;
} else if (self::isUrl($image)){
$get_url_cache = self::getRemoteFile($image);
if (is_array($get_url_cache)){
$image = array_pop($get_url_cache);
} else {
return $image;
}
}
Any help would be greatly appreciated.