Runing this code:
$response = $modx->runProcessor('element/chunk/create',array(
'name' => 'NewChunk',
'description' => 'A test Chunk made with runProcessor.',
'snippet' => '<h3>Chunkify!</h3>',
));
if ($response->isError()) {
return 'Error:'.$response->getMessage();
}
$chunkArray = $response->getObject();
return 'The chunk "'.$chunkArray['name'].' was created with ID '.$chunkArray['id'];
I get a false error return. The chunk was created as expected, but the return is an empty error instead the message of success.
???