# New Server - UCP Issue

**URL:** <https://community.freepbx.org/t/new-server-ucp-issue/51218>\
**Category:** FreePBX\
**Created:** [July 14, 2018, 9:37pm UTC](https://community.freepbx.org/t/new-server-ucp-issue/51218 "2018-07-14T21:37:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike366](https://community.freepbx.org/letter_avatar_proxy/v4/letter/m/958977/32.png) [@mike366](https://community.freepbx.org/u/mike366)\
**Post date:** [July 14, 2018, 9:37pm UTC](https://community.freepbx.org/t/new-server-ucp-issue/51218/1 "2018-07-14T21:37:44Z")

</div>

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;
}
```

---

<div class="post-metadata">

**Author:** ![tm1000](https://community.freepbx.org/user_avatar/community.freepbx.org/tm1000/32/30227_2.png) [@tm1000](https://community.freepbx.org/u/tm1000)\
**Post date:** [July 14, 2018, 9:41pm UTC](https://community.freepbx.org/t/new-server-ucp-issue/51218/2 "2018-07-14T21:41:20Z")

</div>

Uninstall the pms module

---

<div class="post-metadata">

**Author:** ![mike366](https://community.freepbx.org/letter_avatar_proxy/v4/letter/m/958977/32.png) [@mike366](https://community.freepbx.org/u/mike366)\
**Post date:** [July 14, 2018, 9:44pm UTC](https://community.freepbx.org/t/new-server-ucp-issue/51218/3 "2018-07-14T21:44:04Z")

</div>

appropriate name 🙂

Yes, that did the trick, thanks much!

---

<div class="post-metadata">

**Author:** ![system](https://community.freepbx.org/uploads/default/original/3X/f/7/f7056d57e04fdbf71c6ad967e1ced351317f5c3f.png) [@system](https://community.freepbx.org/u/system)\
**Post date:** [July 14, 2019, 9:44pm UTC](https://community.freepbx.org/t/new-server-ucp-issue/51218/4 "2019-07-14T21:44:05Z")

</div>

Closed on July 14, 2019, 9:44pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
