johny77 Posted October 20, 2013 Share Posted October 20, 2013 (edited) Hello everyone, I have e-shop on prestashop version 1.4.7.3. Today I did upgrade on prestashop version 1.5.6.0. In the administration, when I click on the customer who has performed an invalid order or I the order canceled - error will be displayed. PLEASE HELP ME [PrestaShopException] Invalid product varsat 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; LinkCore->getProductLink - [line 640 - controllers/admin/AdminCustomersController.php] - [6 Arguments] 634. $product->link_rewrite, 635. Category::getLinkRewrite($product->id_category_default, $this->default_form_language), 636. null, 637. null, 638. $interested[$i]['cp_id_shop'] 639. ); 640. $interested[$i]['id'] = (int)$product->id; 641. $interested[$i]['name'] = Tools::htmlentitiesUTF8($product->name); 642. } 643. 644. $connections = $customer->getLastConnections(); AdminCustomersControllerCore->renderView - [line 1495 - classes/controller/AdminController.php] - [0 Argument] 1489. elseif ($this->display == 'view') 1490. { 1491. // Some controllers use the view action without an object 1492. if ($this->className) 1493. $this->loadObject(true); 1494. $this->content .= $this->renderView(); 1495. } 1496. elseif (!$this->ajax) 1497. { 1498. $this->content .= $this->renderModulesList(); 1499. $this->content .= $this->renderList(); AdminControllerCore->initContent - [line 182 - controllers/admin/AdminCustomersController.php] - [0 Argument] 176. )); 177. 178. if (!$this->can_add_customer && !$this->display) 179. $this->informations[] = $this->l('You have to select a shop if you want to create a customer.'); 180. 181. parent::initContent(); 182. } 183. 184. public function initToolbar() 185. { 186. parent::initToolbar(); AdminCustomersControllerCore->initContent - [line 167 - classes/controller/Controller.php] - [0 Argument] 161. 162. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) 163. $this->initHeader(); 164. 165. if ($this->viewAccess()) 166. $this->initContent(); 167. else 168. $this->errors[] = Tools::displayError('Access denied.'); 169. 170. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) 171. $this->initFooter(); ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] 342. // Execute hook dispatcher 343. if (isset($params_hook_action_dispatcher)) 344. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 345. 346. // Running controller 347. $controller->run(); 348. } 349. catch (PrestaShopException $e) 350. { 351. $e->displayMessage(); 352. } DispatcherCore->dispatch - [line 53 - administracee/index.php] - [0 Argument] 47. $_POST['controller'] = strtolower($_POST['tab']); 48. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) 49. $_REQUEST['controller'] = strtolower($_REQUEST['tab']); 50. 51. // Prepare and trigger admin dispatcher 52. Dispatcher::getInstance()->dispatch(); Edited October 20, 2013 by johny77 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 20, 2013 Share Posted October 20, 2013 my post here, went unanswered but it not relevant to this post. http://www.prestashop.com/forums/topic/271232-constant-errors-invalid-product-vars-at-line-108-in-file-classeslinkphp/?do=findComment&comment=1359284 the customer id in the above was '2', this make me belive you are testing from your own testing account. try creating a new test account, retest using that account and report back Link to comment Share on other sites More sharing options...
johny77 Posted October 21, 2013 Author Share Posted October 21, 2013 Hi El Patron, thank you for your response. Bug caused table ps_cart_product - I transferred the contents this table of version 1.4.7.3. When I emptied the table ps_cart_product error is no longer displayed. It required the contents of this table from version 1.4.7.3 to version 1.5.6.0 ? I let the contents of the table ps_cart_product empty ? From version 1.4.7.3 to version 1.5.6.0 I want to transfer customers and orders. What kind of table of contents would have transferred? Link to comment Share on other sites More sharing options...
El Patron Posted October 22, 2013 Share Posted October 22, 2013 Hi El Patron, thank you for your response. Bug caused table ps_cart_product - I transferred the contents this table of version 1.4.7.3. When I emptied the table ps_cart_product error is no longer displayed. It required the contents of this table from version 1.4.7.3 to version 1.5.6.0 ? I let the contents of the table ps_cart_product empty ? From version 1.4.7.3 to version 1.5.6.0 I want to transfer customers and orders. What kind of table of contents would have transferred? did you create a new test account and retest? this will tell us that your transfer of customers (old) did not go smoothly and that new accounts do work. Link to comment Share on other sites More sharing options...
Recommended Posts