Author Topic: New user; " not able to register, verification code not found "  (Read 5047 times)

ruuddekorte

  • Beginner
  • *
  • Posts: 6
New user; " not able to register, verification code not found "
« on: November 20, 2013, 16:23:50 pm »
Hi,

I get this problem when a user wants to register himself, thats possible, he (or she) even gets a nice email.

In the email, the wel known line, klik here to activate your registration

however, after klicking the link the user is send to the website and there an error is displayed. Since i registered a french (test) user i got the error in french : 'Enregistrement impossible : Code de vérification non trouvé'. The english equivalent would be something like 'not able to register, verification code not found '. See picture attached, part 1 acknowledged, all ok, part 2 after click the rejection.

Did i do something wrong ? have i forgotten something ???



Using VirtuMart 2.0.24 and Joomla! 2.5.16  on Linux server, PHP 5.4.21 MySQL mysqli, Hosted with 1and1

Started out with basic Joomla instal including basic modelpages, set up for multilingual use with english, french, german and dutch. Then installed VM2.

Have seen some references to similar problem (mostly VM1.x), but not any with coherent resolutions (at least to me, since i can be called a newby in thhe terrain of joomla and virtuemart). Some of the solutions suggested a change in permission settings, I have not changed any permissionssettings, i have left them all at their default state.

Found some VM2 related posts, but no answers attached to them, so i posted this question as a new thread
- problem user registration joomla / virtuemart    http://forum.virtuemart.net/index.php?topic=119433.0
- On checkout, ask for registration problem     http://forum.virtuemart.net/index.php?topic=117342.0

Any answers please ?



[attachment cleanup by admin]

kristobal1969

  • Beginner
  • *
  • Posts: 11
Re: New user; " not able to register, verification code not found "
« Reply #1 on: December 15, 2013, 20:34:48 pm »
I would be interested in a solution if you found one.
I upgraded form vm2.22e to vm2.26 after upgrading joomla 2.5.14 to 2.5.16 I am up to date.
Hope you solve your problem and can help me (and others).

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: New user; " not able to register, verification code not found "
« Reply #2 on: December 16, 2013, 03:44:29 am »
how is your joomla account creation setup?

self?
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

ruuddekorte

  • Beginner
  • *
  • Posts: 6
Re: New user; " not able to register, verification code not found "
« Reply #3 on: December 16, 2013, 17:54:27 pm »
nope, out of the box fresh install of joomla and virtuemart.

Have not made any changes to permissions or anything concerning the users & groups structure(s).

for the moment roundabout in place by not allowing registration, users can access directly to salescart and payment module

if you wanna take a look, the site name is www.les-tresors-de-laguiole.com (or if you prefer www.les-tresors-de-laguiole.fr)

jkrabbenbos

  • Beginner
  • *
  • Posts: 11
Re: New user; " not able to register, verification code not found "
« Reply #4 on: December 17, 2013, 10:11:03 am »
As I have this message with some users, but not all users: what would be the settings for creating the user accounts inside VM2 and Joomla? Or is this described somewhere in the wiki?
Regards,
Jan

----------------------
Joomla 2.5.16
VM 2.0.24c (2.0.26 on the development site)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: New user; " not able to register, verification code not found "
« Reply #5 on: December 17, 2013, 17:48:48 pm »
nope, out of the box fresh install of joomla and virtuemart.

Have not made any changes to permissions or anything concerning the users & groups structure(s).

for the moment roundabout in place by not allowing registration, users can access directly to salescart and payment module

if you wanna take a look, the site name is www.les-tresors-de-laguiole.com (or if you prefer www.les-tresors-de-laguiole.fr)

are their descrepencies between vmart setup? and joomla user configuration?

what do you have BOTH of them set to?

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

tarichecco

  • Beginner
  • *
  • Posts: 8
Re: New user; " not able to register, verification code not found "
« Reply #6 on: December 18, 2013, 14:51:15 pm »
Hi,

have you resolved "New User" problem?
I've your same configuration Joomla 2.5.16, VM 2.0.24  and when a new user follow the mail activation link get the Error:"Verification code not found."

Anyone resolved the problem?!

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: New user; " not able to register, verification code not found "
« Reply #7 on: December 19, 2013, 03:11:27 am »
http://www.joomla.org/announcements/release-news/5522-joomla-2-5-17-released.html

is it a multi lingual site?

I see joomla was having some problems
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

cornelius123

  • Beginner
  • *
  • Posts: 17
Re: New user; " not able to register, verification code not found "
« Reply #8 on: December 19, 2013, 13:29:15 pm »
Try
RewriteBase /
RewriteCond %{HTTP_HOST}   ^yourdomain\.com [NC]
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
in your htacces to force www

tarichecco

  • Beginner
  • *
  • Posts: 8
Re: New user; " not able to register, verification code not found "
« Reply #9 on: December 23, 2013, 10:23:41 am »
I understand where is the problem:

If I use Joomla registration (2.5.17)  index.php?option=com_users&view=registration&lang=it all works fine
If I use Virtuemart registration (2.0.26a) index.php?option=com_users&view=registration&lang=it I get error!

The problem is in registration process, (administrator\components\com_virtuemart\models\users.php row 636) Virtuemart doesn't set lastvisitDate field in table _users to null!
So when user follow activation mail link, Joomla search in table _users a row with the activation token and lastvisitDate=null and doesn't find anything responding COM_USERS_ACTIVATION_TOKEN_NOT_FOUND="Verification code not found."

At the moment I resolved this problem using Joomla registration for new user.

jiraya

  • Beginner
  • *
  • Posts: 1
Re: New user; " not able to register, verification code not found "
« Reply #10 on: January 24, 2014, 14:53:20 pm »
Hi all,
to solve the problem,
go to :

/components/com_users/models

find an modify this short code (the query) in registration.php :

Code: [Select]
public function activate($token)
{
$config = JFactory::getConfig();
$userParams = JComponentHelper::getParams('com_users');
$db = $this->getDbo();

// Get the user id based on the token.
/*$db->setQuery(
'SELECT '.$db->quoteName('id').' FROM '.$db->quoteName('#__users') .
' WHERE '.$db->quoteName('activation').' = '.$db->Quote($token) .
' AND '.$db->quoteName('block').' = 1' .
' AND '.$db->quoteName('lastvisitDate').' = '.$db->Quote($db->getNullDate())
);*/
        $db->setQuery(
            'SELECT '.$db->quoteName('id').' FROM '.$db->quoteName('#__users') .
            ' WHERE '.$db->quoteName('activation').' = '.$db->Quote($token) .
            ' AND '.$db->quoteName('block').' = 1'
        );
$userId = (int) $db->loadResult();

and try to click an other time on the link received by email

this should work, bur it's not a long time issue, and will be crashed when you upgrade your vm version