Jump to content
  • 0

ROZWIĄZANE Problem z komentarzami produktów


sylwekb

Question

Dzień dobry

Mam Prestashop 1.7.8.8 i Komentarze produktu w najnowszej wersji z poniższej strony, w trybie debugowania mam poniższe błędy. Co może być przyczyna i jak naprawić. Oczywiście gdy wyłączam moduł błąd znika. Link do modułu, wydaje się aktualny.

https://mypresta.eu/pl/modules/advertising-marketing/ocena-i-komentarz-o-produkcie.html

 

[PrestaShopDatabaseException]

Unknown column 'pc.id_shop' in 'where clause'<br /><br /><pre> SELECT (SUM(pc.`grade`) / COUNT(pc.`grade`)) AS grade FROM `ps_product_comment` pc WHERE pc.`id_product` = 64 AND pc.`id_shop` = 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.     }

    DbCore->displayError - [line 385 - classes/db/Db.php] - [1 Arguments]
    DbCore->query - [line 663 - classes/db/Db.php] - [1 Arguments]
    DbCore->getRow - [line 207 - modules/myprestacomments/MyprestaComment.php] - [1 Arguments]
    MyprestaComment::getAverageGrade - [line 1233 - modules/myprestacomments/myprestacomments.php] - [1 Arguments]
    myprestacomments->hookDisplayProductListReviews - [line 1007 - classes/Hook.php] - [1 Arguments]

 

--------------------------------------------------------------------------------------------------------

Rozwiązaniem problemu jest odinstalowanie i zainstalowanie ponowne najnowszej wersji modułu. Rzeczywiście zainstalowanie nowego modułu na już istniejącą starszą wersję powoduje takie błędy.

Edited by sylwekb (see edit history)
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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