VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: patbe60 on September 04, 2025, 12:24:43 PM

Title: ask a question doesn't work, when recaptcha is enabled
Post by: patbe60 on September 04, 2025, 12:24:43 PM
When recaptcha in "Recommend a product, ask questions " is enabled, the form "ask a question" can't be sent. Nothing happens when clicking on send.
No problem when captcha is disabled.

VM 4.4.8 11111
Joomla 5.3.3

EDIT: It doesn't also not work with the form "Recommend to a friend". Same problem here.
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: iWim on September 05, 2025, 18:09:57 PM
Update to VM 4.4.10 and see if that fixes your issue.

What captcha plugin do you use?
Does the captcha work on the default contact form?
Have you tried a different captcha plugin? (I use Aimy Captcha-Less Form Guard or HashCash myself)
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: patbe60 on September 08, 2025, 15:25:51 PM
Quote from: iWim on September 05, 2025, 18:09:57 PMUpdate to VM 4.4.10 and see if that fixes your issue.

What captcha plugin do you use?
Does the captcha work on the default contact form?
Have you tried a different captcha plugin? (I use Aimy Captcha-Less Form Guard or HashCash myself)

The Update doesn't solve the problem.
I'm sing Google Recaptcha.
Works fine on the default contact form and the VM registration form.
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: Milbo on October 24, 2025, 23:40:36 PM
Vm4.6 should solve it https://virtuemart.net/download
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: WebStuff on October 26, 2025, 15:41:06 PM
Not sure if this is related but I found a strange "bug" (possibly) in  ./administrator/components/com_virtuemart/models/product.php
at lines 1200 and 1223 where self::$_cacheOpt[$virtuemart_product_id] is used it would stop recaptcha working on the "Ask" and "Recommend" buttons I had to alter the two lines to self::$_cacheOpt[(int)$virtuemart_product_id] adding the (int) fixed it.
Not sure if this is relevant but thought I'd post.
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: patbe60 on October 27, 2025, 11:44:15 AM
Quote from: Milbo on October 24, 2025, 23:40:36 PMVm4.6 should solve it https://virtuemart.net/download
Unfortunately the problem remains after updating to 4.6
Also the code suggested by WebStuff didn't solve the problem.
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: Milbo on October 28, 2025, 19:09:23 PM
WebStuff, that is strange, that this fixes something there. But I will take a look.

Patbe60, which captcha do you use? there are different "types". Some use 3rd party plugins, others just joomla plugins of older versions.
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: patbe60 on October 29, 2025, 17:54:48 PM
I'm using the joomla plugin of older versions.
Title: Re: ask a question doesn't work, when recaptcha is enabled
Post by: patbe60 on October 30, 2025, 14:25:09 PM
Finally I could solve also this problem:

In my template css I had iframe {height:100%}. Deleting this line solved the problem.