Jump to content

Invalid product vars at line 103?


motion2082

Recommended Posts

[PrestaShopException]

Invalid product vars
at line 103 in file classes/Link.php

98. 			if (is_array($product) && isset($product['id_product']))
99. 				$product = new Product($product['id_product'], false, $id_lang, $id_shop);
100. 			elseif ((int)$product)
101. 				$product = new Product((int)$product, false, $id_lang, $id_shop);
102. 			else
103. 				throw new PrestaShopException('Invalid product vars');
104. 		}
105. 
106. 		// Set available keywords
107. 		$params = array();
108. 		$params['id'] = $product->id;
LinkCore->getProductLink - [line 3940 - classes/Product.php] - [4 Arguments]
ProductCore::getProductProperties - [line 4080 - classes/Product.php] - [2 Arguments]
ProductCore::getProductsProperties - [line 269 - modules/ppb/ppb.php] - [2 Arguments]
Ppb->hookProductTabContent - [line 512 - classes/Hook.php] - [1 Arguments]
HookCore::exec - [line 276 - controllers/front/ProductController.php] - [2 Arguments]
ProductControllerCore->initContent - [line 180 - classes/controller/Controller.php]
ControllerCore->run - [line 373 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]

Can anyone explain this error for me?

 

Prestashop V1.6.0.14

 

I can fix by deleting ID 44 but then it moves the problem to ID 43 and so on

Edited by motion2082 (see edit history)
Link to comment
Share on other sites

It is perhaps something wrong in the ppb module. What is it?

 

That makes sense. The ppb module is "Related Products Pro" by MyPresta.Eu

 

Could be a category changed or was not present

 

Thanks for the  extra set of eyes and thinking

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...