The problem is, many servers have the readfile() function disabled for security reasons.
Problem: Thumbnails don’t show
Server error log: “readfile() has been disabled for security reasons”
This can be solved adding a new function to replace readfile(), like this:
function rpl_readfile($file){
$handle=@fopen($file,"r");
echo @fread($handle,filesize($file));
@fclose($handle);
}
Then replace all ocurrences of readfile() function in these scripts:
/components/com_virtuemart/fetchscript.php
/components/com_virtuemart/show_image_in_imgtag.php
/administrator/components/com_virtuemart/classes/shipping/minixml/classes/doc.inc.php
More info:
http://forum.virtuemart.net/index.php?topic=40289.0
Thanks