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

jflash

I confirm, if server does not have EXIF, like my testserver, then i got blank page (errors are disabled) on uploading image.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

exchange in vmuploader.php the line 270

$type = exif_imagetype($media['tmp_name']);


with

if(function_exists('exif_imagetype')){
$type = exif_imagetype($media['tmp_name']);
} else {
$type = false;
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MonkeyT

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


This has solved the exact same issue on my installation of VMart 3.0.12.
Please be certain to incorporate it into the next release. 

Thank You!

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

driver_wedge

I had the same issue recently. My web host then enabled EXIF support on my account. Problem was sorted immediately.

jflash

Quote from: Milbo on November 18, 2015, 15:23:11 PM
exchange in vmuploader.php the line 270

$type = exif_imagetype($media['tmp_name']);


with

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

This works for me :)



qingpool

Hello,

i have same issue. I asked from my provider and they said i can change my php version in cpanel and after that, choose php settings. Problem is, i dont see anything exif related there. any advice where i can check for it?
Thanks!

EDIT: Problem solved by changing PHP version on cpanel (5.5 -> 5.6) and clicking "set as current". According to my provider, clicking on any version and setting as current should have done it.

GJC Web Design

It is very host dependent ..  IMHO most have exif already enabled

a few require you to choose a non-native php version and there will be the exif module selection or in the non-native it is already enabled

or you have to ask them to enable if you have no php version selector..  there is no hard and fast rule
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

papys

Quote from: Milbo on November 18, 2015, 15:23:11 PM
exchange in vmuploader.php the line 270

$type = exif_imagetype($media['tmp_name']);


with

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


Okay, this has solved the problem of white pages, but do not thumbnails

changlee

Quote from: Milbo on November 18, 2015, 15:23:11 PM
exchange in vmuploader.php the line 270

$type = exif_imagetype($media['tmp_name']);


with

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


You ROCK! We hope to be included in the next VM update :-)
Free SMTP Newsletter at https://www.emailbat.com and my complete SEO services at http://www.blb.gr

elgaxton


rado85

Hi,

it worked on VM3.08. now i have 3.16 and it doesn`t work. When i upload image my thumbnail has name product-name.jpg_product
but full image is ok.
http://www.larixogrody.pl/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=129&virtuemart_category_id=18&Itemid=174


i`m wondering why in such great extenssion as virtuemart has such stupid bugs ?

Regards