Change the vmlistAdditionalImages2 function in theme.php file to the following:
function vmlistAdditionalImages2( $product_id, $images, $title='', $limit=1000 ) {
global $sess;
$html = '';
$i = 0;
foreach( $images as $image ) {
if( $this->get_cfg('useLightBoxImages', 1 )) {
$thumbtag = str_replace('product', 'product/resized', $image->file_url);
$thumbtag = str_replace('.jpg', '_'.$image->file_image_thumb_height.'x'.$image->file_image_thumb_width.'.jpg', $tagfile);
$thumbtag = str_replace('.JPG', '_'.$image->file_image_thumb_height.'x'.$image->file_image_thumb_width.'.JPG', $tagfile);
$html .= '<a href="'.$image->file_url.' "rel="enlargeimage::mouseover" rev="loadarea" title="'.$title.'"><img src="'.$thumbtag.'"></a>';
}
else {
$thumbtag = ps_product::image_tag( $image->file_name, 'class="browseProductImage"', 1, 'product', $image->file_image_thumb_width, $image->file_image_thumb_height );
$fulladdress = $sess->url( 'index2.php?page=shop.view_images&image_id='.$image->file_id.'&product_id='.$product_id.'&pop=1' );
$html .= vmPopupLink( $fulladdress, $thumbtag, 640, 550 );
}
$html .= ' ';
if( ++$i > $limit ) break;
}
return $html;
}
Let me know if this fixes the problem.