Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • micka Friend
    #160213

    I am having problems when I try to login as a User of the site I got message invalid token, I have done several things like clearing the cache but I can not solve the problem.

    Can anyone help me?:((

    Ninja Lead Moderator
    #376795

    this is a known issue of joomla, refer to this to find the solution:
    http://forum.joomla.org/viewtopic.php?p=1606075

    micka Friend
    #376973

    in this link: http://forum.joomla.org/viewtopic.php?f=199&t=251273
    I can not find where this code is to replace..

    :((

    Ninja Lead Moderator
    #377058

    that topic has a link to this:
    http://forum.joomla.org/viewtopic.php?f=199&t=251273
    the file needs to be edited is modulesmod_logintmpldefault.php (if mod login has been overrided the file should be templates\htmlmod_logindefault.php).

    micka Friend
    #377146

    Thanks but

    I’m using the erica template and not have the folder “html” inside the folder…
    I check in: modules mod_login tmpl default.php but it is already with the correct code and the problem continues ..
    the cache is disabled also do not know what else can be.

    my default.php code:

    <?php // no direct access
    defined('_JEXEC') or die('Restricted access'); ?>
    <?php if($type == 'logout') : ?>
    <form action="index.php" method="post" name="login" id="form-login">
    <?php if ($params->get('greeting')) : ?>
    <div>
    <?php if ($params->get('name')) : {
    echo JText::sprintf( 'HINAME', $user->get('name') );
    } else : {
    echo JText::sprintf( 'HINAME', $user->get('username') );
    } endif; ?>
    </div>
    <?php endif; ?>
    <div align="center">
    <input type="submit" name="Submit" class="button" value="<?php echo JText::_( 'BUTTON_LOGOUT'); ?>" />
    </div>

    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="logout" />
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
    </form>
    <?php else : ?>
    <?php if(JPluginHelper::isEnabled('authentication', 'openid')) :
    $lang->load( 'plg_authentication_openid', JPATH_ADMINISTRATOR );
    $langScript = 'var JLanguage = {};'.
    ' JLanguage.WHAT_IS_OPENID = ''.JText::_( 'WHAT_IS_OPENID' ).'';'.
    ' JLanguage.LOGIN_WITH_OPENID = ''.JText::_( 'LOGIN_WITH_OPENID' ).'';'.
    ' JLanguage.NORMAL_LOGIN = ''.JText::_( 'NORMAL_LOGIN' ).'';'.
    ' var modlogin = 1;';
    $document = &JFactory::getDocument();
    $document->addScriptDeclaration( $langScript );
    JHTML::_('script', 'openid.js');
    endif; ?>
    <form action="<?php echo JRoute::_( 'index.php', true, $params->get('usesecure')); ?>" method="post" name="login" id="form-login" >
    <?php echo $params->get('pretext'); ?>
    <fieldset class="input">
    <p id="form-login-username">
    <label for="modlgn_username"><?php echo JText::_('Username') ?></label><br />
    <input id="modlgn_username" type="text" name="username" class="inputbox" alt="username" size="18" />
    </p>
    <p id="form-login-password">
    <label for="modlgn_passwd"><?php echo JText::_('Password') ?></label><br />
    <input id="modlgn_passwd" type="password" name="passwd" class="inputbox" size="18" alt="password" />
    </p>
    <?php if(JPluginHelper::isEnabled('system', 'remember')) : ?>
    <p id="form-login-remember">
    <label for="modlgn_remember"><?php echo JText::_('Remember me') ?></label>
    <input id="modlgn_remember" type="checkbox" name="remember" class="inputbox" value="yes" alt="Remember Me" />
    </p>
    <?php endif; ?>
    <input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" />
    </fieldset>
    <ul>
    <li>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=reset' ); ?>">
    <?php echo JText::_('FORGOT_YOUR_PASSWORD'); ?></a>
    </li>
    <li>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>">
    <?php echo JText::_('FORGOT_YOUR_USERNAME'); ?></a>
    </li>
    <?php
    $usersConfig = &JComponentHelper::getParams( 'com_users' );
    if ($usersConfig->get('allowUserRegistration')) : ?>
    <li>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=register' ); ?>">
    <?php echo JText::_('REGISTER'); ?></a>
    </li>
    <?php endif; ?>
    </ul>
    <?php echo $params->get('posttext'); ?>

    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="login" />
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
    <?php echo JHTML::_( 'form.token' ); ?>
    </form>
    <?php endif; ?>

    Ninja Lead Moderator
    #377245

    then the error may be caused by another reason, do you get it all the time?

    micka Friend
    #377490

    Yes, all the time, when i try to send a message too i have the same error: invalid token:((

    Anyone know how to fix this otherwise?

    thanks :-*

    Ninja Lead Moderator
    #377662

    I forgot to ask, whats your joomla version?

    micka Friend
    #377928

    sorry i forget this…… my joomla is: 1.5.22

    Ninja Lead Moderator
    #378052

    thats quite strange, do you have your site run live now? please update admin & ftp account to your ticket, I want to have a closer look:
    http://support.joomlart.com/index.php?/Tickets/Ticket/View/64400

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

This topic contains 10 replies, has 2 voices, and was last updated by  Ninja Lead 13 years, 2 months ago.

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