VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: serazoo on January 05, 2021, 20:23:33 pm

Title: Verify registration email : results in 403 : Verification code not found
Post by: serazoo on January 05, 2021, 20:23:33 pm
Hello VM community
I know this topic has been posted before, I've tried all suggested scripts, changed template, deactivated RSfirewall.. nothing is working  :-\

I'm using Joomla 3.9.23 and VirtueMart 3.8.6 10373

I'm registering as a new account by passing through Virtuemart
When email is clicked to activate account, I get the message "403 : Verification code not found"

This might not a be VM bug but a solution could help others too  ;)

Thank you for your time!
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: serazoo on January 06, 2021, 19:56:40 pm
A little sad though, it seams I'm the only one with this problem :(

One user gave a detailed description of what is happening (7 years ago), but I'm not an advanced programmer : what script exactly to modify :( any idea? Here's the message :

"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."
"

Thank you for your time :)
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: GJC Web Design on January 07, 2021, 19:55:31 pm
for VM3.8.6 change line 751

administrator/components/com_virtuemart/models/user.php

from
$user->set('block', '0');

to

$user->set('block', '1');

should fix the problem  .. tested

should be fixed in up coming 3.8.8
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: sirius on January 07, 2021, 22:18:43 pm
Thanks GJC

so you mean for sure "administrator/components/com_virtuemart/models/user.php"

Tested and problem fixed
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: GJC Web Design on January 07, 2021, 22:39:41 pm
Quote
administrator/components/com_virtuemart/models/user.php

indeed - oops .. changed
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: serazoo on January 13, 2021, 01:29:25 am
Sorry for not getting back sooner, I "sort of" gave up trying several scripts... so I opted for ACTIVATION "NONE" for now.

But I can confirm that solution given by GJC did the trick! No more activation token error.

For anyone else facing this problem, thanks to GJC.. AGAIN! He is a GENIUS!!!

Until next VM update
Thank you all for your time!
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: kolokotronis on April 13, 2021, 15:50:33 pm
I have installed VM 3.8.8 and this fix didnt work for me!! This problem appears on 2 websites.
User cant activate account
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: pinochico on April 13, 2021, 19:26:44 pm
To kolokotronis:

This fix is for VM 3.8.8. ?
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: kolokotronis on April 13, 2021, 19:43:39 pm
I dont know i think not, code is different.
I think problem is the url.
When i set to NO Redirect Joomla to VirtueMart registration  from VM Framework Loader plugin
It is working great with joomla register but on checkout doing the same!!

I have menus create for account and register !!
Title: Re: Verify registration email : results in 403 : Verification code not found
Post by: Jörgen on April 13, 2021, 20:15:55 pm
Check your order track modes in VM configuration check out perhaps?
Jörgen