Error 500 when log in as user (not admin)

If I log in to the control panel as user not admin, I get a 500 error. If I log in as admin first and click on the “log in as user” icon
then everything is ok.
after installation, I changed the sys port (v-change-sys-port 10) and added letsencrypt (v-addletsencrypt-host)
I did not find anything useful in the logs - maybe I looked in the wrong place?
Thank you!


You can check the hestia own nginx logs in /usr/local/hestia/log/nginx-error.log. Also I suggest to reset the backend port to 8083 an check if the issue occurs again, if not, please choose a different port in a higher range.

The first thing I tried was to change the port back :slight_smile:

2019/09/05 22:56:41 [error] 1081#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/hestia/web/login/index.php on line 154" while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/hestia-php.sock:", host: "", referrer: ""

Can you post the output of:

v-list-sys-config json

    "config": {
        "WEB_SYSTEM": "apache2",
        "WEB_RGROUPS": "www-data",
        "WEB_PORT": "8080",
        "WEB_SSL": "mod_ssl",
        "WEB_SSL_PORT": "8443",
        "WEB_BACKEND": "",
        "PROXY_SYSTEM": "nginx",
        "PROXY_PORT": "80",
        "PROXY_SSL_PORT": "443",
        "FTP_SYSTEM": "vsftpd",
        "MAIL_SYSTEM": "exim4",
        "IMAP_SYSTEM": "dovecot",
        "ANTIVIRUS_SYSTEM": "clamav-daemon",
        "ANTISPAM_SYSTEM": "spamassassin",
        "DB_SYSTEM": "mysql",
        "DNS_SYSTEM": "bind9",
        "DNS_CLUSTER": "",
        "STATS_SYSTEM": "awstats",
        "BACKUP_SYSTEM": "local",
        "CRON_SYSTEM": "cron",
        "DISK_QUOTA": "yes",
        "FIREWALL_SYSTEM": "iptables",
        "FIREWALL_EXTENSION": "fail2ban",
        "REPOSITORY": "",
        "VERSION": "1.0.5",
        "RELEASE_BRANCH": "release",
        "LANGUAGE": "en",
        "BACKUP_GZIP": "",
        "BACKUP": "",
        "WEBMAIL_ALIAS": "webmail",
        "DB_PMA_URL": "",
        "DB_PGA_URL": "",
        "SOFTACULOUS": ""