Jump to content
  • 0

Table 'ps_product_reductions' doesn't exist


ListwySamochodowe.pl

Question

Działa Wam wszystko po włączeniu trybu developerskiego i profilowania?

Bo u mnie wywala błąd na stronach kategorii i nie wiem czy to tylko u mnie czy globalnie.

Na forum znalazłem parę błędów tego typu ale rozwiązania brak - może Wy coś podpowiecie.

Póki co z tego co zrozumiałem, tabela ps_product_reductions jest tabelą tymczasową i to normalne, że jej nie mam w bazie, ale czemu profilowanie się wywala przez to to już nie wiem.

PS 1.6.1.7, PHP 7.0.11

Strona kategorii się normalnie wyświetla, ale poniżej zamiast logu z profilowania jest taki błąd:

[PrestaShopDatabaseException]

Table 'ps_product_reductions' doesn't exist
 

explain SELECT SQL_NO_CACHE product_shop.id_product, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute					FROM					`ps_product_reductions` pr,					`ps_product` p					 INNER JOIN ps_product_shop product_shop		ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)					LEFT JOIN `ps_product_attribute_shop` product_attribute_shop				   		ON (p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1)					WHERE p.id_product=pr.id_product AND (pr.id_product_attribute = 0 OR product_attribute_shop.id_product_attribute = pr.id_product_attribute) AND product_shop.`active` = 1						 AND EXISTS(SELECT 1 FROM `ps_category_product` cp				JOIN `ps_category_group` cg ON (cp.id_category = cg.id_category AND cg.`id_group` = 1)				WHERE cp.`id_product` = p.`id_product`)					 AND product_shop.`visibility` IN ("both", "catalog")					ORDER BY RAND() LIMIT 1

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

786.         if ($webservice_call && $errno) {787.             $dbg = debug_backtrace();788.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);789.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {790.             if ($sql) {791.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');792.             }793. 794.             throw new PrestaShopDatabaseException($this->getMsgError());795.         }796.     }
Edited by ListwySamochodowe.pl (see edit history)
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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