Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибка при заходе на карточку товара


Recommended Posts

Fatal error: Uncaught exception 'Exception' with message 'Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1<br />Error No: 1064<br />SELECT DISTINCT(p2c.product_id) FROM `oc_product_to_category` p2c LEFT JOIN `oc_product` p ON (p2c.product_id = p.product_id) LEFT JOIN `oc_product_to_store` p2s ON (p.product_id = p2s.product_id) WHERE p2c.category_id IN ('67,82') AND p2c.product_id != '367' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' ORDER BY RAND() LIMIT ' in /home/p444895/www/ka.tokio.market/system/storage/modification/system/library/db/mysqli.php:47 Stack trace: #0 /home/p444895/www/ka.tokio.market/system/library/db.php(16): DB\MySQLi->query('SELECT DISTINCT...', Array) #1 /home/p444895/www/ka.tokio.market/system/storage/modification/catalog/model/catalog/product.php(21): DB->query('SELECT DISTINCT...') #2 [internal function]: ModelCatalogProduct->getRelatedByCategory('367') #3 /home/p44489 in /home/p444895/www/ka.tokio.market/system/storage/modification/system/library/db/mysqli.php on line 47

Здравствуйте, уважаемые форумчане. Вот такая ошибка при заходе на карточку товара... Что делать помогите!

Link to comment
Share on other sites


ошибка в запросе
в автору модуля рекомендуемых для категории

Link to comment
Share on other sites


Я переносил с одного домена на другой - сделал бэкап базы и развернул на другой, содержимое домена скопировал и вставил в нужный поддомен...поменял пути к домну и базе в файлах config и admin/config.

Link to comment
Share on other sites


А так же когда заходим в настройки магазина

Fatal error: Uncaught exception 'Exception' with message 'Error: Duplicate column name 'related_category'<br />Error No: 1060<br />ALTER TABLE `oc_product` ADD `related_category` varchar(255) NOT NULL' in /home/p444895/www/ka.tokio.market/system/storage/modification/system/library/db/mysqli.php:47 Stack trace: #0 /home/p444895/www/ka.tokio.market/system/library/db.php(16): DB\MySQLi->query('ALTER TABLE `oc...', Array) #1 /home/p444895/www/ka.tokio.market/system/storage/modification/admin/controller/setting/setting.php(8): DB->query('ALTER TABLE `oc...') #2 [internal function]: ControllerSettingSetting->index() #3 /home/p444895/www/ka.tokio.market/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #4 /home/p444895/www/ka.tokio.market/admin/controller/startup/router.php(26): Action->execute(Object(Registry), Array) #5 [internal function]: ControllerStartupRouter->index() #6 /home/p444895/www/ka.tokio.market/system/storage/modification/system/engine/action.php(51): call_user_func_arr in /home/p444895/www/ka.tokio.market/system/storage/modification/system/library/db/mysqli.php on line 47

 

Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.