Wrong token! Please re-login on the Pi-hole dashboard.

Please follow the below template, it will help us to help you!

Expected Behaviour:

Changes to DNS settings to be saved

Actual Behaviour:

Error message "Wrong token! Please re-login on the Pi-hole dashboard."

Note also this message on entry to settings menu...

"There was a problem applying your settings.
Debugging information:
PHP error (2): session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/html/admin/scripts/pi-hole/php/password.php:12 "

Debug Token:

https://tricorder.pi-hole.net/hy62vn9jyj

Check that

  • your browser allows cookies for the Pi-hole dashboard
  • no ad- or script-blocking-plugin is active for the Pi-hole dashboard
  • the folders /var/lib/php/ and /var/lib/php/sessions/ exist and that the user www-data has read & write access

Problem solved, thank you. User www-data didn't have write access for /var/lib/php/ so I added the user www-data to the root group and all is now ok. I'm not sure whether that's the correct/advised thing to do or not so I'll wait for confirmation before marking as 'Solved"

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.