News:

Looking for documentation? Take a look on our wiki

Main Menu

Error with Activation of new users type 'mail'

Started by effettoMapet, October 01, 2023, 15:32:26 PM

Previous topic - Next topic

effettoMapet

Guys, I have this difficulty:

I need to enable user registration via email, so after completing the registration form, customers receive an email with the link attached to click to be activated on the site.

It happens to me (on all projects except one) that when you press the link you are redirected to the home page of the site and by checking from the control panel this user X is not automatically enabled.

Let me start by saying that if I try to go through the Joomla registration form everything works, so I think the problem can be traced back to something with Vm.

I have verified that the only site where I have this problem of failure to 'auto enable registration' is one where I used the ONE PAGE CHECKOUT module (to have the cart on a single page). On this project among the plugins I find 'System - VP One Page Checkout'. If this plugin is active the registrations are automatic, otherwise if I disable it I encounter the problem I presented before, namely the 'email' non-registration.

I DO NOT want to install the ONE PAGE CHECKOUT module on all sites, so I need to figure out what I'm doing wrong....

Can you give me some tips PLEASE?
Thank you all

jenkinhill

Which Joomla/VirtueMart versions?

Do you want users to register direct in VirtueMart through a "set up an account" menu link or to register during checkout?

Do you have the VM Framework Loader during Plugin Updates installed and activated? 
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

effettoMapet

#2
I have the same problem on a project made with Joomla! 3.10.11 and VirtueMart 4.0.6 and also on a Jommla 4.3.4 and VM 4 project

I think it's right that users can register both via the link and during checkout. Do you agree ?

I repeat in my specific case now if they register from the link it works, if they register during checkout it doesn't.

I note that if you register via the link you are redirected to the Login page, while if you register via the checkout you are redirected to the home page of the site.

I just checked and the 'VM Framework Loader during Plugin Updates' plugin is active.
I attach a photo of the sectarians.

Thank you very much for your interest. If you come to Italy you have a pizza on offer :-)

Milbo

So, do I understand you correctly. It works with pure VM but not with the onepagecheckout? Then you should ask there.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

effettoMapet

Hi, NO, it's the opposite, with pure Vm it doesn't work. Only if active the onepagecheckout plugin works.

In the case of pure VM, after I enter the fields and press the 'register' button I am always sent back to the home page of the site.
While I should be redirected to the login page as happens if I register from the Joomla link.
It seems like a Joomla problem to me.

T.A. Garrison, LLC

I hope this topic is still being reviewed.

The VM redirect is still having a problem, and it would seem it's due to upgrading to J5 combined with the Php version. I had things set to work with Php 8.2, but VM was NOT happy with that at all. I found a notification in VM control panel that clearly stated to set Php to 8.1 to assure things work correctly.
I did that. I set the site back to 8.1, saved, and the notification went away. But the redirect still doesn't work.
It was fine prior to the updates.

This is just 1 of 3 J4.4.3 sites I updated this week (and have more to update) and NOT the only one with a problem.
The "Registration Redirect and loading of VM-framework" blocks the user from the registration page / is not hitting the correct path, apparently.

I got an error after the updates which included upgrade to J5.
The error clearly pointed to the JCE editor which I found really odd, stating there are not enough arguments - 6 required and only 3 present.

I uninstalled JCE, got rid of everything, tested and still got the same error. I checked the database for anything related to JCE and there was nothing.

Then I started looking at Virtuemart.
I knew there was something not redirecting correctly and found "Registration Redirect and loading of VM-framework". I disabled the redirect to Joomla registration and that fixed it!

But, as you already know, when in the VM cart, the user attempts to register and that fails.
If you put something in the cart, then hit "Check Out Now", the user hits an error page with "Requested Page Cannot Be Found", followed by:
If difficulties persist, please contact the website administrator and report the error below.

    0 Too few arguments to function Joomla\Plugin\Editors\None\Extension\None::onDisplay(), 3 passed in /home/mysite/subdirectory.website.com/libraries/src/Plugin/CMSPlugin.php on line 289 and at least 6 expected

Prior to my uninstalling JCE, the system was indicating the "culprit" was JCE in the path.

As you can see now with JCE uninstalled, the system throws an error, but "what" is to blame?

After 2 days of chasing this rabbit down too many holes, I can confirm the culprit is Virtuemart redirect, but that's as far as I can get.

I can also confirm that a second of 3 sites I updated also has the problem. I "thought" the second site was working, but I just now tried to add something to the VM cart, hit "Check Out Now" and got the error.
This also means that my "primary" Web site is no longer able to sell anything!

The only users who can purchase are those who have created an account "without" using VM.

My third Joomla site I updated uses membership software, so VM is not causing any issues.

When using the front end "Register" link, the registration works fine.

I don't know where to post to get attention any faster, but this would seem a serious issue that's going interrupt a lot of sites.
And, it would seem, I'll have to create my own redirect in the VM cart because I cannot go several days without that functioning properly.

Thoughts?

T.A. Garrison, LLC
3150 Orleans St. # 28261
Bellingham, WA 98228