I just updated from 3.0.3.2 to 3.0.3.9
How do I resolve this error:
Fatal error: Uncaught TypeError: Argument 1 passed to Image::resize() must be of the type int, null given, called in /home3/lteconne/public_html/catalog/model/tool/image.php on line 38 and defined in /home3/lteconne/public_html/system/library/image.php:143 Stack trace: #0 /home3/lteconne/public_html/catalog/model/tool/image.php(38): Image->resize(NULL, NULL) #1 /home3/lteconne/public_html/system/engine/loader.php(248): ModelToolImage->resize('catalog/AER2200...', NULL, NULL) #2 /home3/lteconne/public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array) #3 /home3/lteconne/public_html/catalog/controller/common/cart.php(59): Proxy->__call('resize', Array) #4 /home3/lteconne/public_html/system/engine/action.php(79): ControllerCommonCart->index(Array) #5 /home3/lteconne/public_html/system/engine/loader.php(48): Action->execute(Object(Registry), Array) #6 /home3/lteconne/public_html/catalog/controller/common/header.php(77): Loader->controller('common/cart') #7 /home3/lteconne/public_html/system/engine/action.php(79 in /home3/lteconne/public_html/system/library/image.php on line 143
Seems like your cart image size width and height are both returning null instead of a number in pixels. You should try going to your theme settings at Extensions » Extensions » select "Themes", and click on the "edit" button for the theme you are using. Then check if "Cart Image Size (W x H)" option is filled up. Make sure the rest of the image sizes are filled up as well.webwizard wrote: ↑Thu Jun 20, 2024 3:39 amI just updated from 3.0.3.2 to 3.0.3.9
How do I resolve this error:
Fatal error: Uncaught TypeError: Argument 1 passed to Image::resize() must be of the type int, null given, called in /home3/lteconne/public_html/catalog/model/tool/image.php on line 38 and defined in /home3/lteconne/public_html/system/library/image.php:143 Stack trace: #0 /home3/lteconne/public_html/catalog/model/tool/image.php(38): Image->resize(NULL, NULL) #1 /home3/lteconne/public_html/system/engine/loader.php(248): ModelToolImage->resize('catalog/AER2200...', NULL, NULL) #2 /home3/lteconne/public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array) #3 /home3/lteconne/public_html/catalog/controller/common/cart.php(59): Proxy->__call('resize', Array) #4 /home3/lteconne/public_html/system/engine/action.php(79): ControllerCommonCart->index(Array) #5 /home3/lteconne/public_html/system/engine/loader.php(48): Action->execute(Object(Registry), Array) #6 /home3/lteconne/public_html/catalog/controller/common/header.php(77): Loader->controller('common/cart') #7 /home3/lteconne/public_html/system/engine/action.php(79 in /home3/lteconne/public_html/system/library/image.php on line 143
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
How did you do that?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
Who is online
Users browsing this forum: Bing [Bot], vourlismenos and 13 guests