Ошибка при загрузке картинки в галерею товара
Добрый вечер. Подскажите в чем может быть проблема. Хочу загрузить картинки в галерею через процессор у уже существующего товара.
$gallery = array(
'id' => $id,
'name' => '',
'rank' => 0,
'file' => $image_path
);
$upload = $modx->runProcessor('gallery/upload', $gallery, array(
'processors_path' => MODX_CORE_PATH.'components/minishop2/processors/mgr/'
));
if ($upload->isError()) {
print_r($upload->getResponse());
}
выдает ошибку
Could not get table class for class: msProductFile
Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => 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 'AS `msProductFile` WHERE ( `msProductFile`.`product_id` = '855' AND `msProductF' at line 1
)
что это может быть?
СПАСИБО
7
$gallery = array(
'id' => $id,
'name' => '',
'rank' => 0,
'file' => $image_path
);
$upload = $modx->runProcessor('gallery/upload', $gallery, array(
'processors_path' => MODX_CORE_PATH.'components/minishop2/processors/mgr/'
));
if ($upload->isError()) {
print_r($upload->getResponse());
}
выдает ошибку
Could not get table class for class: msProductFile
Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => 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 'AS `msProductFile` WHERE ( `msProductFile`.`product_id` = '855' AND `msProductF' at line 1
)
что это может быть?
СПАСИБО
Комментарии: 7