If no location is set the JSONtoChunk Snippet crashed while trying to convert JSON to array.
Possible fix can be a guardian. Tested modification:
if (!$input) return "null";
$array = $modx->fromJSON($input);
if (count($array) > 0) {
$chunk = $modx->getObject('modChunk', array('name' => $options));
if ($chunk) {
$output = $chunk->process($array);
}
}
return $output;
If no location is set the JSONtoChunk Snippet crashed while trying to convert JSON to array.
Possible fix can be a guardian. Tested modification: