Fatal error: Call to a member function getMessage() on a non-object in *insertServerPath*/core/model/modx/modmanagercontroller.class.php on line 616
/**
* Get the default state for the UI
* @return array|mixed|string
*/
public function getDefaultState() {
/** @var modProcessorResponse $response */
$response = $this->modx->runProcessor('system/registry/register/read',array(
'register' => 'state',
'topic' => '/ys/user-'.$this->modx->user->get('id').'/',
'include_keys' => true,
'poll_interval' => 1,
'poll_limit' => 1,
'remove_read' => false,
'show_filename' => false,
'time_limit' => 10,
));
$obj = $response->getMessage();
if (!empty($obj)) {
$obj = $this->modx->fromJSON($obj);
} else {
$obj = array();
}
return $obj;
}This question has been answered by BobRay. See the first response.