News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

ask a question doesn't work, when recaptcha is enabled

Started by patbe60, September 04, 2025, 12:24:43 PM

Previous topic - Next topic

patbe60

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.

iWim

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)

patbe60

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

WebStuff

#4
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.

patbe60

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.

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patbe60


patbe60

#8
Finally I could solve also this problem:

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