All my code worked fine, but I couldn't open the manager. Thought I'd leave this up here if anybody wants to test.
This is the error:
"PHP Fatal error: Uncaught Error: Call to a member function setProperties() on null in core/model/modx/modmanagerresponse.class.php"
Open the file: core/model/modx/modmanagerresponse.class.php
Depending on your version, find this line (in my file it's line #190):
$this->modx->controller = call_user_func_array(array($c,$getInstanceMethod),array($this->modx,$className,$this->action));
And change it to:
$this->modx->controller = call_user_func_array(array($c,$getInstanceMethod),array(&$this->modx,$className,$this->action));
The only difference is passing $this->modx as a reference by using ampersand &$this->modx. Got my whole manager up and running again!
Here's the complete function:
public function instantiateController($className,$getInstanceMethod = 'getInstance') {
try {
$c = new $className($this->modx,$this->action);
if (!($c instanceof modExtraManagerController) && $getInstanceMethod == 'getInstanceDeprecated') {
$getInstanceMethod = 'getInstance';
}
/* this line allows controller derivatives to decide what instance they want to return (say, for derivative class_key types) */
$this->modx->controller = call_user_func_array(array($c,$getInstanceMethod),array(&$this->modx,$className,$this->action));
$this->modx->controller->setProperties($c instanceof SecurityLoginManagerController ? $_POST : array_merge($_GET,$_POST));
$this->modx->controller->initialize();
} catch (Exception $e) {
die($e->getMessage());
}
return $this->modx->controller;
}
Good luck to y'all.