Any idea why I am getting this, how to resolve, when I try to access UCP?
Exception
Please ask for a valid directory
/**
* Get All Groups
*
* Get a List of all User Manager users and their data
*
* @return array
*/
public function getAllGroups($directory=null) {
if (!empty($directory) && empty($this->directories[$directory])) {
throw new \Exception(“Please ask for a valid directory”);
}
if(!empty($directory)) {
$groups = $this->directories[$directory]->getAllGroups();
} else {
$groups = $this->globalDirectory->getAllGroups();
}
return $groups;
}