[PrestaShopException]

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

102.             if (is_array($product) && isset($product['id_product'])) {
103.                 $product = new Product($product['id_product'], false, $id_lang, $id_shop);
104.             } elseif ((int)$product) {
105.                 $product = new Product((int)$product, false, $id_lang, $id_shop);
106.             } else {
107.                 throw new PrestaShopException('Invalid product vars');
108.             }
109.         }
110. 
111.         // Set available keywords
112.         $params = array();