2

After applying patch SUPEE-9767 v2, i've often got an error like this

error

but sometimes the uploading process works fine, but for some images when i try to upload it, it shows http error

after doing some log, turns out the error comes out from

app/code/core/Mage/Core/Model/File/Validator/Image.php

in validate() function there's code like this:

$img = imagecreatetruecolor($imageWidth, $imageHeight);
imagealphablending($img, false);
imagecopyresampled($img, $image, 0, 0, 0, 0, $imageWidth, $imageHeight, $imageWidth, $imageHeight);
imagesavealpha($img, true);

when i remove those code, all my file can be uploaded, i don't know why these functions above won't work form some of images

1 Answer 1

0

This question may have been answered in the past. Please review the responses. https://stackoverflow.com/questions/18994648/magento-upload-http-error

I think the issue may be in the size limits.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.