Verify registration email : results in 403 : Verification code not found

Started by serazoo, January 05, 2021, 20:23:33 PM

Previous topic - Next topic

serazoo

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

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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sirius

Thanks GJC

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

Tested and problem fixed
J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

GJC Web Design

Quoteadministrator/components/com_virtuemart/models/user.php

indeed - oops .. changed
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

serazoo

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

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

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

kolokotronis

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

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.