импорт товаров выдает ошибку

Issue #65 closed
Nikolai Latskov created an issue

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

Notice: Undefined index: group_id in Z:\home\test1.ru\www\modules\catalog\catalog.commons.class.php on line 323
[Денвер: показать возможную причину ошибки]Ошибка (errore):
Файл (file): Z:\home\test1.ru\www\include\kernel.class.php
GET запрос (GET request):/catalog/avtomobilnye-chasy-c10/
Строка (String): 3694 (kernel->runSQL)
SQL запрос (SQL query):
'SELECT * FROM `sf_catalog_item_groups` WHERE `id`= LIMIT 1'

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 'LIMIT 1' at line 1 
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in Z:\home\test1.ru\www\include\kernel.class.php on line 3696

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in Z:\home\test1.ru\www\include\kernel.class.php on line 3698

Notice: Undefined index: id in Z:\home\test1.ru\www\modules\catalog\catalog.commons.class.php on line 324

Notice: Undefined index: ext_id in Z:\home\test1.ru\www\modules\catalog\catalog.commons.class.php on line 329
Ошибка (errore):
Файл (file): Z:\home\test1.ru\www\include\kernel.class.php
GET запрос (GET request):/catalog/avtomobilnye-chasy-c10/
Строка (String): 3694 (kernel->runSQL)
SQL запрос (SQL query):
'SELECT * FROM `sf_catalog_items_catalog1_` WHERE `id`= LIMIT 1'

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 'LIMIT 1' at line 1 
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in Z:\home\test1.ru\www\include\kernel.class.php on line 3696

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in Z:\home\test1.ru\www\include\kernel.class.php on line 3698

Warning: Cannot modify header information - headers already sent by (output started at Z:\home\test1.ru\www\modules\catalog\catalog.commons.class.php:323) in Z:\home\test1.ru\www\include\kernel.class.php on line 1546

Comments (5)

  1. Nikolai Latskov reporter

    12.gif

    хотя в таблицах sf_catalog_catalog1_items и sf_catalog_items_catalog1_watch есть все данные

  2. Nikolai Latskov reporter

    если зайти в этот пустой товар, то в админке такая ошибка

    Ошибка (errore):
    Файл (file): /var/www/u0034023/data/www/do-intime.ru/include/kernel.class.php
    GET запрос (GET request):/admin/index.php?action=set_left_menu&leftmenu=item_edit&id=&redir2=category_items%26id%3D347%26offset%3D0
    Строка (String): 6364 (kernel->runSQL)
    SQL запрос (SQL query):
    'DESCRIBE `sf_catalog_items_catalog1_`'
    
    Table 'u0034023_default.sf_catalog_items_catalog1_' doesn't exist Ошибка (errore):
    Файл (file): /var/www/u0034023/data/www/do-intime.ru/include/kernel.class.php
    GET запрос (GET request):/admin/index.php?action=set_left_menu&leftmenu=item_edit&id=&redir2=category_items%26id%3D347%26offset%3D0
    Строка (String): 3600 (kernel->runSQL)
    SQL запрос (SQL query):
    'SELECT * FROM `sf_catalog_item_props` WHERE `module_id` = "catalog1" AND (`group_id`= OR `group_id`=0) ORDER BY `order`,`name_full`'
    
    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 'OR `group_id`=0) ORDER BY `order`,`name_full`' at line 1 Ошибка (errore):
    Файл (file): /var/www/u0034023/data/www/do-intime.ru/modules/catalog/catalog.class.php
    GET запрос (GET request):/admin/index.php?action=set_left_menu&leftmenu=item_edit&id=&redir2=category_items%26id%3D347%26offset%3D0
    Строка (String): 7103 (kernel->runSQL)
    SQL запрос (SQL query):
    'SELECT * FROM `sf_catalog_visible_gprops` WHERE group_id= AND `module_id`='catalog1''
    
    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 'AND `module_id`='catalog1'' at line 1
    
  3. Nikolai Latskov reporter

    и еще, если не ставить галку "Определение категории по полю" то товары импортируются (кроме артикула почему-то %code% ) ... сами категории выгружаются так Автомобильные часы/Vst , т.е. категория/подкатегория

  4. Nikolai Latskov reporter

    артикул - это первый столбец, он не импортируется, и не зависит от галки "Пропускать первую строчку"

  5. Log in to comment