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

asked Jul 14, 2017 at 2:06

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.

answered Jul 14, 2017 at 4:01

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.