Login/Logout button NOT available

In my case, Login was no longer required (or accessible), all admin options available immediately, Logout not available

  • cleared browser cache
  • rebooted pi
  • admin page password reset (/usr/local/bin/pihole -a -p <new password>)
    no result...

the lighttpd error log (/var/log/lighttpd/error.log) revealed the following:
PHP Warning: syntax error, unexpected '=' in /etc/pihole/setupVars.conf on line 1
in /var/www/html/admin/scripts/pi-hole/php/data.php on line 3

a missing line feed in /etc/pihole/setupVars.conf

should be (edit)

hope this helps someone...

1 Like

Odd, I've never encountered this error before. Did you do anything out of the ordinary after install?

I've edited (using WinSCP) /etc/pihole/setupVars.conf, to make the modifications, required for the installation of DNScrypt

It's not entirely clear when to add a line feed to the end of a unix file. I've seen github file changes in the pihole repository that explicitly remove the line feed at the end of a file, but obviously, an extra line feed seems to be required for setupVars.conf.

I suppose the problem occurred after I've updated from v2.11 to v2.11.1 (setupVars.conf rewritten by the installation program?)

additional question: can I delete setupVars.conf.bak and setupVars.conf.update.bak, or are they required for future updates?

You can delete those backup files.