I am using Debian 12, Hestia v.1.8.11 and PostgreSQL
This error appears twice when saving “Server Settings” in the /var/log/hestia/nginx-error.log
file
[error] 80843#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "v_mysql_url" in /usr/local/hestia/web/edit/server/index.php on line 671" while reading response header from upstream, client: 172. 68.51.5, server: my.domain.ltd, request: "POST /edit/server/ HTTP/2.0", upstream: "fastcgi://unix:/runun/hestia-php.sock:", host: "my.domain.ltd:2083", referrer: "https://my.domain.ltd:2083/edit/server/"
The error occurs because in the /usr/local/hestia/web/edit/server/index.php
file at line 670 in the block // Update phpMyAdmin url
, there is no check for the empty v_mysql_url
key in the POST (if I don’t use phpmyadmin by default, but use phppgadmin).
Adding this code to the beginning of the block
if (empty($_SESSION["error_msg"])) {
if (empty($_POST["v_mysql_url"])) {
$_POST["v_mysql_url"] = "";
}
... remaining code ...
}
That worked, the code is copied from the block with // Update phpPgAdmin url
.
P.S. Please correct me if I made a critical mistake, but judging by the simplicity of the solution, I don’t think I broke anything)))) Scold me if I did something wrong!