adding product images gives 500 error after upgrade too 3.0.11

Started by r_ekkie, October 17, 2015, 21:55:06 PM

Previous topic - Next topic

rado85

I see that issue is with scond and later image. With the first is ok.

ttanidis

Quote from: Milbo on November 13, 2015, 11:11:55 AM
You may try in the vmuploader.php around line 270

EDIT: THIS IS OLD

if(function_exists('exif_imagetype')){
$type = exif_imagetype($media['tmp_name']);
} else if(vmAccess::manager('media.potdang')){
//Just small fallback
if($mediaExtension == 'jpg' or $mediaExtension == 'png' or $mediaExtension == 'gif'){
$type = $mediaExtension;
}
} else {
$type = false;
}


EDIT: Correct code here

if(function_exists('exif_imagetype')){
$type = exif_imagetype($media['tmp_name']);
} else {
$type = false;
}



Thanks! This is works for me! Joomla! 3.7.2, VirtueMart 3.2.2 & PHP Version 7.0.23