DivisionByZeroError
alexagui opened this issue · 2 comments
alexagui commented
Describe the bug
We're getting a division by zero error on Craft 4 Commerce site that's under development.
To reproduce
When we attempt to view a product detail on the frontend or visit products index in the admin.
Screenshots
Versions
PHP 8.2.3
MariaDB 10.6.12
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Craft 4.4.11
Commerce 4.2.8
ImageOptimize 4.0.5
SEOmatic 4.0.25
khalwat commented
Looks like you have an asset in there that has no width at all. I can add some guards to avoid the error, but still probably an asset in there is corrupted or the like
alexagui commented
Thanks Andrew! Yes it seems this was an issue on our end. Closing this one out.