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}
#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:
Yeah. In other words, I’d make sure you’re NOT set to E_ALL in your various php.ini files
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.
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
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