Jump to content

Error 500 - Invalid Product Vars


colme

Recommended Posts

[PrestaShopException] Invalid product vars at line 106 in file classes/Link.php

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

 

Despues de dar Error 500 he conseguido ver el fallo detallado pero no doy con la solucion. Alguna idea?

Link to comment
Share on other sites

Hello,

 

This error will be accompanied by something more /module/modulename/file.php style indicating that module is the cause of the problem and the line where it happens. The quick solution is clear about the module but if you want arreglaro, possibly due to trying to make a link to a product that really has not been defined.

 

A greeting.

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...