Make a backup of the file.

On the error block you mentionned, if you replace it with this one:

PHP Code:
if (eregi('\\'$product_name[$i])) {
    
$image substr($product_image[$i], 1);
} else {
    
$image str_replace('\\''/'$image);
    
$image substr($image1);

Will it still return the same error message ?