Home / Blogs / Research Blog / Dealing with Invalid "Token error" screens in Joomla 1.5

Dealing with Invalid "Token error" screens in Joomla 1.5

The problem: When you try and log in to your Joomla site (even on the admin section @ /administrator/index.php), you get an 'invalid token' error.

This is a known issue with some templates using Joomla 1.5x, and it can be fixed with a simple modification to the template code.

I found this useful little post by Masterchief on the Joomla! support forums.

Due to a recent security fix, some problems may be introduced with existing 1.5 sites. The know issues are as follows:

Invalid Token page displays when trying to login

Older 1.5 templates, 1.0 templates working in legacy mode, or those using customer login code or using layout overrides will experience this problem.

The login must include a for token. Previously this was done with this code:

Code:
<input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" />

You must change this to:

Code:
<?php echo JHTML::_( 'form.token' ); ?>


blog comments powered by Disqus
 
Share
Banner

Research Blog

What our clients say

Big Spring completely re-designed our whole website, giving us a much more functional site and were easy to work with.

Connect

Joomla Logo

Company News

Latest Projects

Contact Us

BigSpring UK Limited
29 St Austins Drive
Nottingham
NG4 3EY

Office: 0115 714 2282 (Mon-Fri 9am - 5pm)
Email: hello [at] bigspring.co.uk