-
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
Error filtering template: Warning: getimagesize: failed to open stream: No such file or directory in app/code/Magento/Catalog/Model/Product/Image.php #1647
Comments
Hi @dfediuk - can you provide steps to reproduce this error? |
The same error report from another user: http://magento.stackexchange.com/questions/78520 |
I am seeing this same behavior. I was able to reproduce the issue by flushing the image cache from the admin or by deleting the files in pub/media/catalog/product/cache/. After the cached image files are created there are no problems going forward, but there appears to be an issue in recreating cached image files if they do not already exist. I was testing this on a build from the develop branch from August 18th: I initially built some sample products in the admin and used them for testing some functionality, then went to remove a product image to test some behavior, I noticed the image still displayed on the frontend even though I removed the product image on the admin, so I flushed the image cache, and then the site failed to load any category or product pages.
I implemented dfediuk's quick fix and confirmed it to resolve the issue, though I didn't look into why this behavior exists, and what the best way is of correcting it.
I also ran into this same problem from importing a database from another Magento 2 installation. I had loaded the pub/media/catalog/product/ directory with all the product images, but did not include the cache directory expecting it to rebuild the cached images. The symptoms I was seeing was that the home page would load but category page and product pages would not load since it would run into errors trying to get the image size in the getResizedImageInfo() method. |
This appears to be a regression from 1.0.0-beta, but I believe it's fixed in latest develop as I can no longer reproduce the issue after pulling from upstream/develop in my local installation with sample data. I was consistently able to reproduce with sample data on rev a1393fc (the one I happened to have checked out), but the issue did not occur when rolling back to the 1.0.0-beta tag. Pulling in the latest develop at rev 50d6f9a also resolved the issue for me and I could no longer reproduce it. Steps to reproduce were as follows:
Failed result: running an Successful result: images show up on the frontend after following the above steps and are correctly populated into the |
I expect this commit addressed the problem: |
@mttjohnson I suspect you're right. ;) |
@davidalger is it working now? |
@piotrekkaminski It is, yes, and we have not run into the issue since Aug. |
[Helix] MAGETWO-65466 [Backport] - Issue when deleting item from Product options grid containing more than 20 options - for 2.1
The problem line is:
magento2/app/code/Magento/Catalog/Model/Product/Image.php
Line 936 in e5a2d00
The text was updated successfully, but these errors were encountered: