VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: patbe60 on February 21, 2024, 12:36:03 PM

Title: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: patbe60 on February 21, 2024, 12:36:03 PM
I'm using Virtuemart "Account Maintenance" as a menu item. As soon as I activate "Use ReCaptcha for Registration" in the VM configuration the site can't be found. Without activating this option I don't have problems.
This happens since I changed to Joomla 5

I'm using J 5.0.3 and VM 4.2.6 10972.

May be also this error message helps to solve the problem (?):

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

I didn't have any problems in Joomla 4.
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: ketbel on March 01, 2024, 07:25:44 AM
I have the same problem. After set "Use ReCaptcha for Registration" to "No" the error message disappeared.

I also use Joomla 5.0.3 and VM 4.2.6 10972 
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: GJC Web Design on March 12, 2024, 12:56:42 PM
temp fix till this is in the core:

components\com_virtuemart\helpers\shopfunctionsf.php  ~ line 1256

currently

$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required'));
change to

$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required',null,null,null));
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: stawebnice on March 22, 2024, 10:45:36 AM
Hi Max,

now that they're making Google ReCaptcha paid, I decided to switch to this captcha:
https://onlinecommunityhub.nl/downloads/ochcaptcha/file/plg-captcha-ochcaptcha-1-1-1

Can VM be edited to use any captcha that is set as default in Joomla setting, please?

Petra
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: TheThingIs on March 22, 2024, 19:19:31 PM
Quote from: stawebnice on March 22, 2024, 10:45:36 AMnow that they're making Google ReCaptcha paid,

May I ask where did you read that?

As far as I can see both Google and Hcaptcha are still free for developers and Enterprise is free upto 1,000,000 calls per month.
I don't read any news?


Cheers
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: fotonio on May 08, 2024, 18:49:00 PM
Quote from: GJC Web Design on March 12, 2024, 12:56:42 PMtemp fix till this is in the core:

components\com_virtuemart\helpers\shopfunctionsf.php  ~ line 1256

currently

$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required'));
change to

$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required',null,null,null));

I tried this. The error goes away but now there is a text input box on the end of the form saying "recaptcha dynamic_" that will be confusing for the visitors.
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: patbe60 on May 14, 2024, 08:53:37 AM
Quote from: fotonio on May 08, 2024, 18:49:00 PMI tried this. The error goes away but now there is a text input box on the end of the form saying "recaptcha dynamic_" that will be confusing for the visitors.
Same here. And the problem is not solved with the newest VM version 4.2.10 11010.
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: GJC Web Design on May 14, 2024, 09:59:14 AM
Yes -- I couldn't get ReCaptcha to work at all thru VM 4.x so gave up and now use https://kubik-rubik.de/ecc-easycalccheck-plus with the shortcode {easycalccheckplus} on all the VM forms
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: patbe60 on June 14, 2024, 17:12:47 PM
Still not solved with version 4.2.14.11022
I have deactivated now ReCaptcha and looking forward for a lot of spam mails.
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: GJC Web Design on June 14, 2024, 17:15:08 PM
This has been solved now thanks to hard work by Max & Stan and will be included in the next release...
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: patbe60 on June 19, 2024, 14:59:27 PM
Thank you! I've just tested it and it works fine now.
Title: Re: Account Maintenace can't be shown when activating Use ReCaptcha for Registration
Post by: T.A. Garrison, LLC on December 23, 2024, 19:07:50 PM
That last post in this thread states that reCaptcha "works" with Jooml 5.2.2 and VM 4.4.2

This is December 2024 and it still doesn't work.
I've spent the last 2 hours switching between reCaptcha V3 and v3 invisible, as well as hcaptcha.
NONE of them work with VM.

The only 1 that seems to work "half-way" is hcaptcha. Joomla is fine with that. VM...won't work.

Is the "fix" that was discussed only about a VM version that has not been released?

UPDATE: My bad...in VM, I had "..reCaptcha.." enabled and have been using hCaptcha due to the reCaptcha problems.
Once I switched that to "No", everything is functioning normally.

I wish there were a way to create a duplicate registration page. 1 group is wholesale and the other retail, but can't wrap my head around how to have that work for 2 different menu items. Maybe some stealthy overrides...