Internal server error 500 can't access to admin

User sites work fine, but cant access to admin.

In hestia nginx logs I have that :

2025/02/24 01:46:38 [error] 1146#0: *16 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 185.247.137.22, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "37.18.74.33:8083", referrer: "https://37.18.74.33:8083/"
2025/02/24 02:46:30 [error] 1146#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 205.210.31.56, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "37.18.74.33:8083"
2025/02/24 05:52:25 [error] 1146#0: *26 open() "/usr/local/hestia/web/aaa9" failed (2: No such file or directory), client: 80.82.77.202, server: _, request: "GET /aaa9 HTTP/1.1", host: "37.18.74.33:8083"
2025/02/24 05:52:25 [error] 1146#0: *29 open() "/usr/local/hestia/web/aab9" failed (2: No such file or directory), client: 80.82.77.202, server: _, request: "GET /aab9 HTTP/1.1", host: "37.18.74.33:8083"
2025/02/24 07:03:40 [error] 1146#0: *34 open() "/usr/local/hestia/web/aaa9" failed (2: No such file or directory), client: 80.82.77.202, server: _, request: "GET /aaa9 HTTP/1.1", host: "37.18.74.33:8083"
2025/02/24 07:03:40 [error] 1146#0: *37 open() "/usr/local/hestia/web/aab9" failed (2: No such file or directory), client: 80.82.77.202, server: _, request: "GET /aab9 HTTP/1.1", host: "37.18.74.33:8083"
2025/02/24 09:36:22 [error] 1146#0: *41 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 85.142.100.138, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "37.18.74.33:8083", referrer: "https://37.18.74.33:8083/"
2025/02/24 10:31:56 [error] 1146#0: *51 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 85.142.100.106, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "sro-svs.ru:8083", referrer: "https://sro-svs.ru:8083/"
2025/02/24 10:37:51 [error] 1146#0: *64 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 5.164.187.66, server: _, request: "GET /login/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.muscipula.ru:8083"
2025/02/24 12:05:52 [error] 1146#0: *72 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 35.94.157.203, server: _, request: "GET /login/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "sro-svs.ru:8083"

Change 448 to $_SESSION[“language”] = “en”;
It works for me, but panel would be English only

Try running it all over again?

cp /usr/local/hestia/install/common/sudo/hestiaweb /etc/sudoers.d/
chown hestiaweb:hestiaweb /run/hestia-php.sock
chown -R hestiaweb:hestiaweb /usr/local/hestia/data/sessions

After running the first one, refreshing is effective.