Author Topic: Verify registration email : results in 403 : Verification code not found  (Read 2203 times)

serazoo

  • Beginner
  • *
  • Posts: 33
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!

serazoo

  • Beginner
  • *
  • Posts: 33
Re: Verify registration email : results in 403 : Verification code not found
« Reply #1 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 :)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10253
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Verify registration email : results in 403 : Verification code not found
« Reply #2 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sirius

  • Jr. Member
  • **
  • Posts: 130
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: Verify registration email : results in 403 : Verification code not found
« Reply #3 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
J3.10.2 | PHP 7.4.24 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 3.8.9

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10253
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Verify registration email : results in 403 : Verification code not found
« Reply #4 on: January 07, 2021, 22:39:41 pm »
Quote
administrator/components/com_virtuemart/models/user.php

indeed - oops .. changed
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

serazoo

  • Beginner
  • *
  • Posts: 33
Re: Verify registration email : results in 403 : Verification code not found
« Reply #5 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!

kolokotronis

  • Beginner
  • *
  • Posts: 4
I have installed VM 3.8.8 and this fix didnt work for me!! This problem appears on 2 websites.
User cant activate account

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1207
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
To kolokotronis:

This fix is for VM 3.8.8. ?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

kolokotronis

  • Beginner
  • *
  • Posts: 4
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 !!

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3672
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Check your order track modes in VM configuration check out perhaps?
Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.