Hestiacp internal error when editing DNS zone

Hello

I made a change to the DNS zones of a domain, in/list/dns/?domain=domain.com&token=41dfaas10d6e25ac31c94d3efbca0fc7 when saving now I get Internal Server Error 500

I have already rebuilt the DNS zone of the domain in question, but the problem persists.

I have already manually edited the file in /home/user/conf/dns

I have already restarted bind9

I have even restarted the server

But the problem persists.

Checking the heitiacp logs I found this

2025/04/26 10:30:50 [error] 1697#0: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, null given in /usr/local/hestia/web/list/dns/index.php:98
Stack trace:
#0 /usr/local/hestia/web/list/dns/index.php(98): ksort()
#1 {main}
  thrown in /usr/local/hestia/web/list/dns/index.php on line 98" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: _, request: "GET /list/dns/?domain=domain.com&token=41dfaaa10d6e25ac31c94d3efbca0fc7 HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "server.domain.net:8083", referrer: "https://server.domain.net:8083/list/dns/"

I am only having problems with this domain in question, the other 2 I can edit normally.

But I don’t know what to do.

Hi @marcelomt

Show the output of these commands (replace YourUser and YourDomain with the actual data):

cat -A /usr/local/hestia/data/users/YourUser/dns.conf
cat -A /usr/local/hestia/data/users/YourUser/dns/YourDomain.conf
1 Like

Hello friend!

I didn’t know about these directories.
So I analyzed the files and found the error.
It was no use editing only /home/user/conf/dns

Now everything is fine again

Thanks

1 Like

You’re welcome.

Could you please share what the error was, so other users can learn from it?

1 Like

I don’t know what went wrong, since the record was inserted using the registration form.

What I did was remove the records I had created and everything went back to how it was.

2 Likes