Fixing “Invalid token” on Joomla front end

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.

The errors shown were:

Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically, assuming $this from incompatible context in /home/userp/public_html/plugins/system/expiresheaders/expiresheaders.php on line 24

Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically, assuming $this from incompatible context in /home/userp/public_html/libraries/cms/application/site.php on line 266

Strict Standards: Only variables should be assigned by reference in /home/userp/public_html/plugins/system/expiresheaders/expiresheaders.php on line 24
Invalid Token

I decided to take a look at the Expires Headers plugin settings. I discovered that checking the “no store” option under Cache-Control Header Values fixed the problem I was having.

I hope this helps someone out there!