Hestiacp Error 500

I tried to open Hestiacp Login page, however it shows error 500. Here is nginx error

thrown in /usr/local/hestia/web/login/index.php on line 436" while reading response header from upstream, client: 192.168.0.139, server: _, request: "GET /login/ HTTP/2.>
2024/10/23 03:32:12 [error] 1050#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/hestia/web/inc>
Stack trace:
#0 /usr/local/hestia/web/login/index.php(436): in_array()
#1 {main}

Please attach your detailed error for easy tracking! Thank you!

Details error such as from which file?

#0 /usr/local/hestia/web/login/index.php(436): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 436" while reading response header from upstream, client: 192.168.0.39, server: _, request: "GET /login/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "192.1>

from /var/log/hestia/nginx/nginx-error.log

I’m login Hestiacp using https://:8083

Any other log I should provide?

ip:8083? Or a domain name?

This is the part of the error.

cat /usr/local/hestia/conf/hestia.conf

Ip:8083

I ran ./v-list-sys-languages json and it display list of language without a problem.

I checked /usr/local/hestia/conf/hestia.conf

LANGUAGE=‘en’

Not sure what else the problem

#0 /usr/local/hestia/web/login/index.php(436): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 436" while reading response header from upstream, client: 192.168.0.10, server: _, request: "GET /login/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "192.1>
2025/01/16 01:39:28 [error] 1090#0: *193 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/local/hestia/web/inc/main.php on line 527; PHP message: PHP Warning:  foreach() arg>
Stack trace:

Uh, I’ve seen those types of messages listed as uh… WARNINGS. Not errors.

Are you sure that uh… You have the ‘ERROR ON WARNINGS’ turned on in php.ini?

I can’t remember the name of the setting, maybe someone else can chime in!?!?

Yeah. In other words, I’d make sure you’re NOT set to E_ALL in your various php.ini files :slight_smile:

In a PHP php.ini file, the setting that effectively treats warnings as errors is “error_reporting = E_ALL”; this setting instructs PHP to report all error types, including warnings, notices, and fatal errors.

Key points about this setting:

  • “E_ALL”: This constant represents the flag to report all error types.

  • Modifying the setting: You can adjust the error reporting level by using bitwise operators to include or exclude specific error types.

  • Runtime control: While modifying php.ini is the primary method, you can also use the error_reporting() function within your PHP script to temporarily change the error reporting level.

Thanks.

Now it display

Warning : Trying to access array offset on value of type null in /usr/local/hestia/web/inc/main.php on line 527

Warning : foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 528

Warning : Undefined array key “RELEASE_BRANCH” in /usr/local/hestia/web/inc/main.php on line 105

Warning : Trying to access array offset on value of type null in /usr/local/hestia/web/inc/main.php on line 527

Warning : foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 528

Warning : Trying to access array offset on value of type null in /usr/local/hestia/web/login/index.php on line 434

Warning : Trying to access array offset on value of type null in /usr/local/hestia/web/login/index.php on line 434

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

So how to fix this 439 error still a mystery

I commented line above, now it display broken login page and can’t login. So i guess I need to run force update. Maybe it updated halfway and error.

Any v- command to force update?

After run ./v-update-sys-hestia-git

the error not solve.

Warnings are ‘No Big Deal’.

The Fatal Error is the only one you need to pay attention to.

What do you mean it’s displaying errors? Inline in the HTML?
I think you should restore your PHP.ini to a default config. But please wait for someone more senior about this. I haven’t looked at 1.9 AT ALL. I can’t wait until it’s released though :slight_smile:

Why? Because it do have support for nodejs by default?

What happens of you add


var_dump($languages); 
var_dump($lang);

Just before $_SESSION[“language”] = in_array($lang, $languages) ? $lang : “en”;

NULL
NULL

var_dump($output);