PHP errors when editing firewall

Hello, one question has arisen for a long time; when editing firewall rules, I get the following errors (and I’ve been encountering this for a long time). I haven’t changed anything in the default Hestia configs, where should I look for complexity? Thank you
nginx-error.log

2025/01/05 21:54:41 [error] 1126#0: *95 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_rule" in /usr/local/hestia/web/edit/firewall/index.php on line 123" while reading response header from upstream, client: 213.108.6.232, server: _, request: "POST /edit/firewall/?rule=11&token=557c2a56f0c48002b21c3b3a5d4c0749 HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/edit/firewall/?rule=11&token=557c2a56f0c48002b21c3b3a5d4c0749"
2025/01/05 21:56:42 [error] 1126#0: *106 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_rule" in /usr/local/hestia/web/edit/firewall/index.php on line 123" while reading response header from upstream, client: 213.108.6.232, server: _, request: "POST /edit/firewall/?rule=12&token=557c2a56f0c48002b21c3b3a5d4c0749 HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/edit/firewall/?rule=12&token=557c2a56f0c48002b21c3b3a5d4c0749"

Hi @bestperson

Could you please show the output of these commands?

cat -A /usr/local/hestia/data/firewall/rules.conf
v-list-firewall json

Hello,

cat -A /usr/local/hestia/data/firewall/rules.conf
v-list-firewall json
RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16'$
RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='2083' IP='0.0.0.0/0' COMMENT='HESTIA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'$
RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='21:14:57' DATE='2024-11-16'$
RULE='4' ACTION='DROP' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='21:14:13' DATE='2024-11-16'$
RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='21:47:04' DATE='2018-11-07'$
RULE='9' ACTION='ACCEPT' PROTOCOL='TCP' PORT='80,443' IP='0.0.0.0/0' COMMENT='WEB' SUSPENDED='no' TIME='17:04:27' DATE='2014-09-24'$
RULE='10' ACTION='ACCEPT' PROTOCOL='TCP' PORT='9899' IP='0.0.0.0/0' COMMENT='SSH' SUSPENDED='no' TIME='17:14:41' DATE='2014-09-16'$
RULE='11' ACTION='ACCEPT' PROTOCOL='TCP' PORT='5443,5222,5223' IP='0.0.0.0/0' COMMENT='Tcpjabber' SUSPENDED='no' TIME='21:54:40' DATE='2025-01-05'$
RULE='12' ACTION='ACCEPT' PROTOCOL='TCP' PORT='5269,4369,5270' IP='0.0.0.0/0' COMMENT='Tcpjabber2' SUSPENDED='no' TIME='21:56:42' DATE='2025-01-05'$
RULE='13' ACTION='ACCEPT' PROTOCOL='UDP' PORT='49152-65535,2096' IP='0.0.0.0/0' COMMENT='Udpjabber' SUSPENDED='no' TIME='10:36:57' DATE='2024-11-14'$
RULE='14' ACTION='ACCEPT' PROTOCOL='UDP' PORT='443' IP='0.0.0.0/0' COMMENT='Quic' SUSPENDED='no' TIME='20:00:42' DATE='2024-10-27'$
{
    "1": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "ICMP",
        "PORT": "0",
        "IP": "0.0.0.0/0",
        "COMMENT": "PING",
        "SUSPENDED": "no",
        "TIME": "17:13:48",
        "DATE": "2014-09-16"
    },
    "2": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "2083",
        "IP": "0.0.0.0/0",
        "COMMENT": "HESTIA",
        "SUSPENDED": "no",
        "TIME": "07:40:16",
        "DATE": "2014-05-25"
    },
    "3": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "993",
        "IP": "0.0.0.0/0",
        "COMMENT": "IMAP",
        "SUSPENDED": "no",
        "TIME": "21:14:57",
        "DATE": "2024-11-16"
    },
    "4": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "110,995",
        "IP": "0.0.0.0/0",
        "COMMENT": "POP3",
        "SUSPENDED": "no",
        "TIME": "21:14:13",
        "DATE": "2024-11-16"
    },
    "5": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "25,465,587",
        "IP": "0.0.0.0/0",
        "COMMENT": "SMTP",
        "SUSPENDED": "no",
        "TIME": "21:47:04",
        "DATE": "2018-11-07"
    },
    "9": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "80,443",
        "IP": "0.0.0.0/0",
        "COMMENT": "WEB",
        "SUSPENDED": "no",
        "TIME": "17:04:27",
        "DATE": "2014-09-24"
    },
    "10": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "9899",
        "IP": "0.0.0.0/0",
        "COMMENT": "SSH",
        "SUSPENDED": "no",
        "TIME": "17:14:41",
        "DATE": "2014-09-16"
    },
    "11": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "5443,5222,5223",
        "IP": "0.0.0.0/0",
        "COMMENT": "Tcpjabber",
        "SUSPENDED": "no",
        "TIME": "21:54:40",
        "DATE": "2025-01-05"
    },
    "12": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "5269,4369,5270",
        "IP": "0.0.0.0/0",
        "COMMENT": "Tcpjabber2",
        "SUSPENDED": "no",
        "TIME": "21:56:42",
        "DATE": "2025-01-05"
    },
    "13": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "UDP",
        "PORT": "49152-65535,2096",
        "IP": "0.0.0.0/0",
        "COMMENT": "Udpjabber",
        "SUSPENDED": "no",
        "TIME": "10:36:57",
        "DATE": "2024-11-14"
    },
    "14": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "UDP",
        "PORT": "443",
        "IP": "0.0.0.0/0",
        "COMMENT": "Quic",
        "SUSPENDED": "no",
        "TIME": "20:00:42",
        "DATE": "2024-10-27"
    }
}

I see no obvious problem, all looks fine… I don’t know the reason for the error.

So I don’t understand, every time I go to edit, I see this in the Nginx logs. Perhaps understanding will come later). Thank you!

Hi, maybe I’m coming up with difficulties), but in version 1.9, too, there are such errors. It happens as I wrote above when editing the panel, in particular the firewall, but I also see other sections of the panel(settings). It’s nothing terrible, but maybe it’s worth fixing. It is shown that in Ubuntu that in Debian is the same. I have now installed Debian 12 and Hestia 1.9.2

2025/02/06 19:35:38 [error] 642#0: *58 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "user" in /usr/local/hestia/web/templates/pages/list_access_keys.php on line 5" while reading upstream, client: 172.69.50.160, server: _, request: "GET /list/access-key/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/edit/user/?user=Wm8kzUA53c8yteD&token=b98d4b148070dcf772c5ea9d3f50c97e"
2025/02/06 19:37:11 [error] 642#0: *71 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "user" in /usr/local/hestia/web/templates/pages/list_access_keys.php on line 5" while reading upstream, client: 172.69.50.240, server: _, request: "GET /list/access-key/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/add/access-key/"
2025/02/06 19:37:48 [error] 642#0: *71 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "user" in /usr/local/hestia/web/templates/pages/list_access_keys.php on line 5" while reading upstream, client: 172.69.50.240, server: _, request: "GET /list/access-key/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/add/access-key/"
2025/02/06 19:37:51 [error] 642#0: *71 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "look" in /usr/local/hestia/web/inc/main.php on line 104" while reading response header from upstream, client: 172.69.50.240, server: _, request: "GET /list/user/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/list/access-key/"
2025/02/06 19:38:11 [error] 642#0: *71 FastCGI sent in stderr: "PHP message: PHP Notice:  session_start(): Ignoring session_start() because a session is already active (started from /usr/local/hestia/web/suspend/firewall/index.php on line 6) in /usr/local/hestia/web/inc/main.php on line 2" while reading response header from upstream, client: 172.69.50.240, server: _, request: "GET /suspend/firewall/?rule=4&token=b98d4b148070dcf772c5ea9d3f50c97e HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/list/firewall/"
2025/02/06 19:38:39 [error] 642#0: *71 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_rule" in /usr/local/hestia/web/edit/firewall/index.php on line 123" while reading response header from upstream, client: 172.69.50.240, server: _, request: "POST /edit/firewall/?rule=3&token=b98d4b148070dcf772c5ea9d3f50c97e HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/edit/firewall/?rule=3&token=b98d4b148070dcf772c5ea9d3f50c97e"
2025/02/06 19:42:22 [error] 642#0: *89 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_rule" in /usr/local/hestia/web/edit/firewall/index.php on line 123" while reading response header from upstream, client: 172.69.50.161, server: _, request: "POST /edit/firewall/?rule=12&token=b98d4b148070dcf772c5ea9d3f50c97e HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/edit/firewall/?rule=12&token=b98d4b148070dcf772c5ea9d3f50c97e"
2025/02/06 23:18:06 [error] 763#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "look" in /usr/local/hestia/web/inc/main.php on line 104" while reading response header from upstream, client: 172.69.50.241, server: _, request: "GET /list/user/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.angellive.ru:2083", referrer: "https://hestia.angellive.ru:2083/list/web/"