-
AuthorPosts
-
January 27, 2009 at 10:26 am #137549
Hello
I’ve a problem when I try to login. I got the error msg back “Invalid Token”
Referring to this post
http://forum.joomla.org/viewtopic.php?f=199&t=251273
there we have to change “getToken” into “from.Token”
I checked this in the template and it was done as suggested. But the problem still exist.
Is there any solution?
Configuration:
– Joomla 1.5.9
– JA Sanidine 1.1
– Legacy Mode on
– Standard Joomla Login ModuleThere is no community builder installed.
Thx in advance fpr any response.
Cheers
lemmi
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
January 27, 2009 at 9:51 pm #288528Did you try to simply clear your local cache cache?
Here i had same problem but ONLY at my pc at work, it gives the error but if you load the same page again you are logged in anyways. Solved on my work pc with clearing cache.
January 27, 2009 at 10:03 pm #288530<em>@bennitos 108638 wrote:</em><blockquote>Did you try to simply clear your local cache cache?
Here i had same problem but ONLY at my pc at work, it gives the error but if you load the same page again you are logged in anyways. Solved on my work pc with clearing cache.</blockquote>
Thanks for your answer. Yes, you are right. This solved the problem for a few days. I deleted all temporary internet files copple of days ago. And it worked well. But after some days – the problem with the Invalid Tokem was back.
In my oppinion to delete local cache can only be a temporary solution as I don’t wanna to advice the registered users to delete it always. Dosn’t look very profesional to me (even if Irun only a fun page).
So I wonder – if there is any fix on Joomla / Template side.
regards
lemmi
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
January 27, 2009 at 10:18 pm #288531I agree with you ofcource, on my side i only had this once so didnt know it was recurring.
Did you change it exactly like this?
OLD
<input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" />
NEW
<input type="hidden" name="<?php echo JHTML::_( 'form.token' ); ?>" value="1" />
1 user says Thank You to bennitos for this useful post
cjmicro Friendcjmicro
- Join date:
- June 2008
- Posts:
- 501
- Downloads:
- 3
- Uploads:
- 0
- Thanks:
- 198
- Thanked:
- 81 times in 10 posts
January 28, 2009 at 2:33 am #288553This is what is in my template: (which is actually pyrite but i’ ve been looking all over) … joomla 1.5.9
<input type="hidden" name="return" value="<?php echo $return; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>I don’t have value=1. but am getting invalid token error. Any ideas?
Cheryl
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
January 28, 2009 at 8:14 am #288578<em>@cjmicro 108670 wrote:</em><blockquote>This is what is in my template: (which is actually pyrite but i’ ve been looking all over) … joomla 1.5.9
<input type="hidden" name="return" value="<?php echo $return; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>I don’t have value=1. but am getting invalid token error. Any ideas?
Cheryl</blockquote>
I have also read threads that from version 1.5.8 and higher this can be caused because joomla’s cache is enabled. Try disabling this in your global settings (if you have it on ofc)
cjmicro Friendcjmicro
- Join date:
- June 2008
- Posts:
- 501
- Downloads:
- 3
- Uploads:
- 0
- Thanks:
- 198
- Thanked:
- 81 times in 10 posts
January 28, 2009 at 10:20 am #288600I THINK I have solved this from a joomla forum post. I do not have the joomla cache enabled though.
http://forum.joomla.org/viewtopic.php?f=431&p=1564475
It seems to give me still a message about session expired but lets me log in without the invalid token now.
There was also a post about altering the php.ini file but I don’t know how to do that.
Cheryl
January 29, 2009 at 1:09 pm #288810<em>@bennitos 108642 wrote:</em><blockquote>I agree with you ofcource, on my side i only had this once so didnt know it was recurring.
Did you change it exactly like this?
OLD
<input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" />
NEW
<input type="hidden" name="<?php echo JHTML::_( 'form.token' ); ?>" value="1" />
</blockquote>I have to check it. Quit not sure. I guess – I’ll respond this weekend.
January 30, 2009 at 2:05 pm #288985the form.php is originally like:
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="task" value="" />I changed this to:
<input type="hidden" name="<?php echo JHTML::_( 'form.token' ); ?>" value="1" />
<input type="hidden" name="task" value="" />As the Error “Invalid Token” isn’t reprucable at the moment (even I changed back to the old version) I hope this fix will work.
Thanks so far.
-
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by lemmi13 15 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum