Jump to content

Loyalty points database error 1.5.3.1


Recommended Posts

When accessing the loyalty points from the customer account I get the following error

 

 

[PrestaShopDatabaseException]

Unknown column 'f.id_cart_rule' in 'field list' SELECT f.id_cart_rule AS id_cart_rule, f.date_upd AS date_add FROM `pr_loyalty` f LEFT JOIN `pr_orders` o ON (f.`id_order` = o.`id_order`) WHERE f.`id_customer` = 2 AND f.`id_cart_rule` > 0 AND o.`valid` = 1 GROUP BY f.id_cart_rule

at line 605 in file classes/db/Db.php

 

599. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

600. }

601. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

602. {

603. if ($sql)

[color=#F20000][b]604. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

[/b][/color]605. throw new PrestaShopDatabaseException($this->getMsgError());

606. }

607. }

608.

609. /**

[/font][/color]

Link to comment
Share on other sites

×
×
  • Create New...