Wpis z mikrobloga

Kurde mam problem z instalacją prestshop, ktoś jest w stanie mi pomóc? Wyświetla się taki błąd

W bazie danych zauważyliśmy taki błąd:
Unknown column 'pc.id_shop' in 'where clause'<br /><br /><pre> SELECT (SUM(pc.
grade) / COUNT(pc.grade)) AS grade FROM psproductcomment pc WHERE pc.idproduct = 2 AND pc.idshop = 1 AND pc.deleted = 0 AND pc.validate = 1 LIMIT 1</pre>
at line 769 in file classes/db/Db.php

764. if ($webservice_call && $errno) {
765. $dbg = debug_backtrace();
766. WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768. if ($sql) {
769. throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770. }
771.
772. throw new PrestaShopDatabaseException($this->getMsgError());
773. }
774. }

Może ktoś mnie poprowadzić co zrobić po kolei

#prestashop #informatyka #kiciochpyta
  • 5
@Olenek z ChatGPT It looks like you’re encountering a SQL error related to an unknown column in a PrestaShop database query. The error message indicates that the column idshop in the table psproductcomment does not exist or is not recognized.
Here’s a possible solution:
Verify that the column id
shop exists in the psproductcomment table. You can do this by checking the table structure in your database management tool (like phpMyAdmin).