-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
catalog:images:resize = getimagesize(): Read error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes #8204
Comments
@spyrule Thanks for reporting this issue. |
@spyrule, thank you for your report. |
I'm working on it #SQUASHTOBERFEST |
Hi @spyrule |
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204 - Added checks for zero byte files
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204 - Added checks for zero byte files
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204 - Fix for integration tests
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204 - Added integration test
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204 - Static test fixes
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204 - Static test fixes
- fixed "[GitHub] catalog:images:resize = getimagesize(): Read error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204" - fixed "CMS page of the second website with same URL key as first website, show content of the First website instead of second website content." - fixed "Error appears when a restricted user tries to add a new category from the product page" - fixed "Product attribute cannot be edited if the attribute was created with 2 same values" - fixed "Invalid join condition in Product Flat Indexer" - fixed "Fatal error on Import/Export page if deleted category ids exist in category path"
Hi ... Is this fixed? Because I can see it is still happening with me on 2.3.2. |
I got the same problem on 2.3.2 as well. Ran this command to find and delete files with 0 bytes:
|
Hi, guys! The problem is still present in 2.3.2. |
When I attempt to execute:
php bin\magento catalog:images:resize
After a period of time, I receive this error:
Notice: getimagesize(): Read error! in /vendor/magento/module-catalog/Model/Product/Image.php on line 410
However, no report is pushed into any log file, so there is no way to find out the file causing the read error.
After some digging I realized its due to images that have a zero byte size (I use a 3rd party image upload tool that will upload zero byte files (ticket is open with them as well)
Luckily, I upload all of my files from a single image directory, so I was able to identify the offending file, but many won't be this lucky.
Preconditions
Steps to reproduce
Expected result
The text was updated successfully, but these errors were encountered: