Salvatore1350033552

Invalid token

68 posts in this topic

Hi, I installed BT Login on my joomla 2.5.4 test site, but I can't login because appear "invalid token" error.

Does anyone know how I can solve this problem?

Thank you

similarly, i had faced this issue with BT login... i reverted back to joomla login and try it works, then change back again to BT login and it works again.. this is very strange..

Share this post


Link to post
Share on other sites

hi tronghm,

appreciate your reply and free module.. for now my site, www.thedollylabel.com cannot simulate the issue.. once the issue pop up, will let you know..

on a side note, what does "invalid token" means? i mean, somewhere in the code must have generated this error due to certain requirement not met.. so, knowing this, shuold give me an idea how to providee more information to you.

Share this post


Link to post
Share on other sites

Hi zactan.

Problems on your site, you can fix it as here

Your site url base is always getting 'www' before, so edit line 172 file mod_bt_login/tmpl/default.php
<?php echo JURI::base(); ?>modules/mod_bt_login/ajax.php

---->>

<?php echo JURI::base(true); ?>/modules/mod_bt_login/ajax.php

Share this post


Link to post
Share on other sites

Hi chinhpv,

thanks for your reply.. may i know what do you mean my site is always getting 'www' before?

later i will edit the code and observe if the problem still persist.. many thanks to your response...

if you dont mind, could you please to me or where i can find the documentation on the syntax juri::base(arguement).. like to know in depth... thanks

Share this post


Link to post
Share on other sites

Hi salvanet!

I check in your site. I found a problem in your language in used have character

'

in string, for example:

L'indirizzo email e quello di verifica non coincidono!

. You must replace it by HTML ASCII code corresponding is "!". Les't find in file:

[base folder]/modules/mod_bt_login/tmpl/default.php

Looking at line 172, it is :


var btlOpt =
{
REQUIRED_USERNAME: '<?php echo JText::_("REQUIRED_USERNAME"); ?>',
REQUIRED_PASSWORD: '<?php echo JText::_("REQUIRED_PASSWORD"); ?>',
REQUIRED_PASSWORD:'<?php echo JText::_("REQUIRED_PASSWORD"); ?>',
BT_AJAX: '<?php echo JURI::base(); ?>modules/mod_bt_login/ajax.php',
BT_RETURN: '<?php echo base64_decode($return); ?>',
E_LOGIN_AUTHENTICATE: "<?php echo JText::_("E_LOGIN_AUTHENTICATE"); ?>",
REQUIRED_NAME:'<?php echo JText::_("REQUIRED_NAME"); ?>',
REQUIRED_USERNAME: '<?php echo JText::_("REQUIRED_USERNAME"); ?>',
REQUIRED_PASSWORD:'<?php echo JText::_("REQUIRED_PASSWORD"); ?>',
REQUIRED_VERIFY_PASSWORD:'<?php echo JText::_("REQUIRED_VERIFY_PASSWORD"); ?>',
PASSWORD_NOT_MATCH:'<?php echo JText::_("PASSWORD_NOT_MATCH"); ?>',
REQUIRED_EMAIL:'<?php echo JText::_("REQUIRED_EMAIL"); ?>',
EMAIL_INVALID:'<?php echo JText::_("EMAIL_INVALID"); ?>',
REQUIRED_VERIFY_EMAIL:'<?php echo JText::_("REQUIRED_VERIFY_EMAIL"); ?>',
EMAIL_NOT_MATCH:'<?php echo JText::_("EMAIL_NOT_MATCH"); ?>'
}

Please add function

str_replace();

in any properties of object btlOpt, if it is a string, as follows:

REQUIRED_USERNAME		: '<?php echo str_replace("'","!",(JText::_("REQUIRED_USERNAME"))); ?>',

Hope it will fix your problem

Salvatore1350033552 likes this

Share this post


Link to post
Share on other sites

hi Chin,

unfortunately, the invalid token still persist... i have changed to another module..

i will evaluate your module in another web and keep you updated should i meet any problem...thanks for your support...

Share this post


Link to post
Share on other sites

Hi zactan.

sorry it does not help you fix your problem.

if you reinstall bt login, and displayed on a page of your site, and give me link of page. I will check it again. may be I find a way to fix it, prepare for, and for those who encountered the same problem as you.

Share this post


Link to post
Share on other sites

Hello,

I got today this problem - Invalid Token, found this page through google....

I logged IN - OK , Log Out - OK , repeted Log In - invalid token :(

I changed browser - from Firefox to Chrome -

Again:

I could log in, log out, log in - invalid token.....

- Repeated Login in short time gives invalid token....

Temporal Solution - I shortly disabled BT module from admin , and enabled, and where able to log in again....

But may be there is a better solution?!

Share this post


Link to post
Share on other sites

Hi zambala,

Can you give me link to your site, and an account to access your host.

I will test it for you.

All information you can send to me via email: extensions@bowthemes.com

Thanks!

Share this post


Link to post
Share on other sites

I have just sent an email to extensions@bowthemes.com with my problem about "Invalid Token".

Please check mail and help me fix this error. Thank all.

Share this post


Link to post
Share on other sites

I am also facing the same problem. I have CB module. When User ID and password are right, everything is fine. But if I enter wrong ID or password, "Invalid Token" error comes.

If I disable BT Login everything works fine, so the problem lies with this module, most probably with session expiration issue.

Share this post


Link to post
Share on other sites

Hi i am having the exact same problem on registration, could you please take a look at my site? www.bologna17.org

I just sent you an email with the credentials.

Also, i did a language translation in italian, if you want it you can put it on the website, email me if you're interested! :) thank you!

Share this post


Link to post
Share on other sites

Hi all, I installed BT Login on my joomla 1.7 site and I get "Invalid Token" during user Registration. When I use Joomla Login-Registration module everything works fine. I have read a lot and I have test a lot but nothing seems to work. All cache is disabled. Can anyone help me to figure it out and make BT Login working?

Share this post


Link to post
Share on other sites

Hi all, I installed BT Login on my joomla 1.7 site and I get "Invalid Token" during user Registration. When I use Joomla Login-Registration module everything works fine. I have read a lot and I have test a lot but nothing seems to work. All cache is disabled. Can anyone help me to figure it out and make BT Login working?

I have the same problem, please help in solving it! after registration writes JINVALID_TOKEN...

thank you in advance

Share this post


Link to post
Share on other sites

Hi everyone.

If you have problem with message "Invalid Token" when register acccount. Please try to use javascript file i attached to replace old file {bt login}/tmpl/js/default.js

I hope this problem will be solved

thank you!!!!!!!!!!!!!!!!

arthourotas likes this

Share this post


Link to post
Share on other sites

Hello! the latest version of the module worked well, but after the upgrade to version 2.5.8 joomla user registration ended, writes, "The last request was rejected because it contains an incorrect security setting (security token). Please refresh the page and try again."

This is connected with the latest updates joomla? Please help me.

P.S. attachment script did not correct the problem

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now