Post by g30p » Wed Apr 12, 2023 8:50 pm

Hello guys i have installed opencart4 and i notice in error logs i have some type errors

TypeError: Opencart\Catalog\Model\Catalog\Review::getTotalReviewsByProductId(): Argument #1 ($product_id) must be of type int, string given in /www/Store/catalog/model/catalog/review.php on line 24

TypeError: Opencart\Catalog\Model\Catalog\Information::getLayoutId(): Argument #1 ($information_id) must be of type int, string given in /Store/catalog/model/catalog/information.php on line 16

TypeError: Opencart\Catalog\Model\Catalog\Product::getLayoutId(): Argument #1 ($product_id) must be of type int, string given in Store/catalog/model/catalog/product.php on line 343

any recommendation?

Thank in advance

Newbie

Posts

Joined
Wed Aug 30, 2017 3:39 am

Post by IP_CAM » Wed Apr 12, 2023 9:01 pm

Well, the only advise could be, to better download this Version, and use it 'til OC v.4.x is ready for Production:
https://github.com/opencart/opencart/tr ... aintenance
The latest v.4.x Release can be found here, but it's still not ready to really be called a final 'production' Release:
https://github.com/opencart/opencart
define('VERSION', '4.0.2.0')
Last edited by IP_CAM on Wed Apr 12, 2023 9:08 pm, edited 2 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by g30p » Wed Apr 12, 2023 9:03 pm

Thank you very much!! i will till we fix this bugs

Newbie

Posts

Joined
Wed Aug 30, 2017 3:39 am
Who is online

Users browsing this forum: No registered users and 3 guests