Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • podnot Friend
    #165394

    Summary: Error occurs when you try register with using Jomsocial registration form. Registration process is unsuccessful. Is ending with error message = INVALID TOKEN

    Steps to Reproduce: When you try register with using Jomsocial registration form.

    Results: Registration process is unsuccessful.

    Product version: 2.2.2
    Joomla! version: Version 1.5.23
    PHP version: 5.2.17
    MySQL version: 5.0.91-log
    Webserver version: Apache
    Joomla! template used: JA_SOCIAL 1.2.2
    JomSocial template used: JA_SOCIAL

    pritam Friend
    #397411

    Hello podnot ,

    Can you please provide your site url and admin access at http://support.joomlart.com/index.php?/Tickets/Ticket/View/74941 , So that we can help.

    pritam Friend
    #397605

    Hello podnot ,

    I checked your given url and access details. But when I enter login details it did nothing. Can you provide correct login details so that I can take a look on that.

    podnot Friend
    #397798

    <em>@pritam 248614 wrote:</em><blockquote>Hello podnot ,

    I checked your given url and access details. But when I enter login details it did nothing. Can you provide correct login details so that I can take a look on that.</blockquote>

    I have tried it and you have true that saved password doesn’t work. But I’m sure that this passw is correct. I have sent PM to you…

    podnot Friend
    #398335

    Hi. I’m still waiting for help. I see that my ticket has been closed but my problem isn’t resolved. Some explanation for me will be fine. Thanks. :confused:

    podnot Friend
    #398488

    Why still don’t have eny response from JA?

    I have tried quick installation for ja_social and I found that login/registration through mod_jalogin is working fine but when you use registration form from JomSocial so is ending with INVALID TOKEN error.

    Is here somebody who can help me? >:(

    podnot Friend
    #398936

    I have the fixed. Here is explanation with instructions:

    1. open file:

    $JS_HOME/components/com_community/controllers/register.php

    2. Look at line 68 and uncomment this line and changed to the below for debugging:

    echo $formToken .'|'. $authKey .'|'. $token .'|'. $ipAddress;

    3. Now try registration through Jomsocial registation form. From debug on the site you can see the authkey always empty and two ip addresses in format aaa.bbb.ccc.ddd,http://www.xxx.yyy.zzz
    If you refer to line 66 of the register.php again, you’ll see why the invalid token is triggered:

    if(empty($formToken) || empty($authKey) || ($formToken != $authKey))
    The ip column of jos_community_register_auth_token table in the database is defined length of 25 which is not enough for the 2 ips. Hence, it got truncated on insert and the query would never return result. Hence auth_key is empty and we get invalid token.

    4.Solution for described problem is extend the IP column from 25 to 31 length for fit 2 ips with a comma in between.

    5. Now should be registration problem fixed.

    matt871401 Friend
    #434094

    Can a DEV confirm this? I am having the same issues. I am also receiving Invalid Token upon login and after idle, it seems to have plagued our website since the new JA template was installed.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 3 voices, and was last updated by  matt871401 12 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum