# Uncaught TypeError: in\_array()

**URL:** <https://forum.hestiacp.com/t/uncaught-typeerror-in-array/16684>\
**Category:** Web\
**Created:** [November 19, 2024, 3:37pm UTC](https://forum.hestiacp.com/t/uncaught-typeerror-in-array/16684 "2024-11-19T15:37:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carisa](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/carisa/32/7655_2.png) [@carisa](https://forum.hestiacp.com/u/carisa)\
**Post date:** [November 19, 2024, 3:37pm UTC](https://forum.hestiacp.com/t/uncaught-typeerror-in-array/16684/1 "2024-11-19T15:37:38Z")

</div>

Hey all, first time posting here so I apologize if I make any mistakes.

I recently tried to install moodle on my hestia server, but I think I messed up some permissions, and now I am unable to access the control panel; all my other websites are up and well, but the control panel continuously returns error 500.  
Tracing down a few forum threads, I enabled php error messages and the below is shown.

```auto
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:439 Stack trace: #0 /usr/local/hestia/web/login/index.php(439): in_array() #1 {main} thrown in /usr/local/hestia/web/login/index.php on line 439

```

I apologize if the solution is apparent, I am not the most experienced with linux permissions.  
If anyone has any idea what I can do to repair this, any help is appreciated!
