Не получается запустить процессор
Не получается запустить процессор на добавление товара в miniShop2
По итогу исполнения кода получаю такое:
$response = $modx->runProcessor('resource/create', array(
'class_key' => 'msProduct',
'pagetitle' => 'Товар',
'parent' => 2,
'template' => 3,
'show_in_tree' => 1,
'price' => 100
));
if($response->isError()){
print_r($response->getAllErrors());
}
По итогу исполнения кода получаю такое:
stdClass Object
(
[curFocus] => modx-resource-pagetitle
[ext-gen36] => Array
(
[0] => /root
)
[ext-gen42] => Array
(
[0] => /root
)
[minishop2-categories-tree] => Array
(
[0] => /root/web_0
[1] => /root/web_0/web_3
[2] => /root/web_0/web_5
[3] => /root/web_0/web_5/web_43/web_62
[4] => /root/web_0/web_5/web_45/web_56
[5] => /root/web_0/web_5/web_45/web_57
[6] => /root/web_0/web_6
[7] => /root/web_0/web_6/web_47
[8] => /root/web_0/web_6/web_48
[9] => /root/web_0/web_3/web_46
[10] => /root/web_0/web_6/web_44
[11] => /root
[12] => /root/web_0/web_5/web_43
)
[minishop2-category-update-tabpanel] => stdClass Object
(
[activeTab] => 0
)
[minishop2-grid-products] => stdClass Object
(
[columns] => Array
(
[0] => stdClass Object
(
[id] => 0
[width] => 71
)
[1] => stdClass Object
(
[id] => 1
[width] => 62
)
[2] => stdClass Object
(
[id] => product-title
[width] => 179
)
[3] => stdClass Object
(
[id] => 3
[width] => 93
)
[4] => stdClass Object
(
[id] => 4
[width] => 88
)
[5] => stdClass Object
(
[id] => product-thumb
[width] => 88
)
[6] => stdClass Object
(
[id] => 6
[width] => 88
)
[7] => stdClass Object
(
[id] => 7
[width] => 88
)
[8] => stdClass Object
(
[id] => 8
[width] => 88
)
[9] => stdClass Object
(
[id] => actions
[width] => 134
)
)
[sort] => stdClass Object
(
[field] => menuindex
[direction] => asc
)
)
[minishop2-product-update-tabpanel-product] => stdClass Object
(
[activeTab] => 0
)
[minishop2-product-update-tabpanel] => stdClass Object
(
[activeTab] => 0
)
[modx-gr-tree-resource] => Array
(
[0] => /0
)
[modx-leftbar-tabpanel] => stdClass Object
(
[activeTab] => 0
)
[modx-resource-tree] => Array
(
[0] => /root
[1] => /root/web_0
[2] => /root/web_0/web_4
[3] => /root/web_0/web_3
)
[modx-tree-element] => Array
(
[0] => /root
)
[modx-tree-menu] => Array
(
[0] => /n_
[1] => /n_/n_topnav
[2] => /n_/n_usernav
[3] => /n_/n_topnav/n_components
)
[modx-tv-tabpanel-1] => stdClass Object
(
[activeTab] => 0
)
[modx-tv-tabpanel-12] => stdClass Object
(
[activeTab] => 2
)
[modx-tv-tabpanel-21] => stdClass Object
(
[activeTab] => 2
)
[modx-tv-tabpanel-23] => stdClass Object
(
[activeTab] => 0
)
[modx-tv-tabpanel-6] => stdClass Object
(
[activeTab] => 0
)
[source-tree-1] => /Images
[source-tree-2] => /MS2 Images
[source-tree-3] => /Tickets Files
[source-tree-4] => /Filesystem/core
[undefined-sort-default] => menuindex
[undefined-sort] => menuindex
)
Не понимаю, что я должен сделать :(