In Joomla I had a problem with doing a logout from the front end. Clicking once would seemingly have no result. Clicking twice would take you to an “invalid token” page.
After a lot of unsuccessful internet searching I ended up turning setting error reporting to ‘maximum’ in System>Global Configuration>Server. Continue reading Fixing “Invalid token” on Joomla front end