2

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio() must be of the type integer, string given, called in /Users/mpxq2/Projects/server/vendor/magento/module-catalog/Block/Product/ImageFactory.php on line 155 and defined in /Users/mpxq2/Projects/server/vendor/magento/module-catalog/Block/Product/ImageFactory.php on line 92

TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio() must be of the type integer, string given, called in /Users/mpxq2/Projects/server/vendor/magento/module-catalog/Block/Product/ImageFactory.php on line 155 in /Users/mpxq2/Projects/server/vendor/magento/module-catalog/Block/Product/ImageFactory.php on line 92

I'm trying to open any category page and getting this errors. Just updated to 2.3.0. setup:upgrade, static-content:deploy, setup:di:compile, cache:flush and indexer:reindex already done... How can i solve this?

  • delete the generated folder and clean the cache – Ghulam.M Mar 1 at 14:59
  • @GeeEmm didn't help – dukir Mar 1 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.