By John Whelan on Friday, 09 May 2014
Posted in General Issues
Replies 9
Likes 0
Views 774
Votes 0
With the v1.2.10 update, I get the following every time a user tries to register on any browser.

"Invalid Token"

Searching through the forums gave me:

****
In both of my instances I was able to find the form that was the culprit. It was just a matter of finding the code and making sure it I added this just before closing the form tag:

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

I added the tag after </form> tag in the default.guests.login file and the problem appeared resolved. Maybe it's something you should add to the package permanently?
Hello John,

We are actually already adding the form.token code on the registration page. Am I missing anything here? If you take a look at the file /components/com_easysocial/themes/wireframe/registration/default.steps.php , it's already adding the token.
·
Friday, 09 May 2014 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
I needed to add it to the form in default.guests.login.php file to get past the "Invalid Token" problem.

Dunno why.
·
Saturday, 10 May 2014 01:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

Hm, can you check your file and see if it already has the following codes?


<?php echo $this->html( 'form.token' );?>


The code above should be doing the same as <?php echo JHTML::_('form.token');?>
·
Saturday, 10 May 2014 01:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes it does. Let me do some more troubleshooting.

Can you tell me exactly what line of code does?
·
Saturday, 10 May 2014 01:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

That code simply adds a hidden input for the token to prevent any xss attacks.
·
Saturday, 10 May 2014 02:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't know if it helps at all, but I've been getting the same message in 1.2.10.

John are you using JFBConnect by any chance?

I had been wondering if this was playing any part.
·
Saturday, 10 May 2014 05:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Is this happening on any particular forms?
·
Saturday, 10 May 2014 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
I have not been using JFBConnect, just ES's native login.

The 'invalid token' problem happens for me when I want to register a new user from the front page main dashboard registration box. No idea why, although I will do some more troubleshooting on it.
·
Sunday, 11 May 2014 03:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

If you are still able to reproduce this all the time, can you please provide us with the back end and FTP access to the site to check on this? I would like to get rid of this issue once and for all Invalid tokens is like the king of all Joomla errors
·
Sunday, 11 May 2014 16:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post