Jump to content

Problem: [PrestaShopException] Invalid product vars at line 104 in file classes/Link.php


Recommended Posts

Hey guys, when i click on certain customer accounts, i get the following error:

 

Prestashop 1.5.6

 

Any ideas?

 

[PrestaShopException]

Invalid product vars
at line 104 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;
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...