Joomla! Announcement

Joomla! 4.0 is released and we are happy to announce that Visforms is now fully compatible with the brand new major release version.

Please check out how to Migrate Visforms to Joomla 4 in the Documentation.

Forum

You can get answers directly from the developer in our forum. You need an active Visforms subscription or an active subscription for the Bootstrap Carousel module if you want to ask questions about the corresponding extension in our forum. Please log in with the relevant user first.

Read-only use of the forums is free for everybody.

Topic-icon graphic error with captcha-recaptcha 2.0

More
5 years 7 months ago #2713 by alexmurphy
graphic error with captcha-recaptcha 2.0 was created by alexmurphy
vis form does not display the captcha with joomla 3.5.0 and visform 3.6.10 and captcha plugin 3.4

is this a problem due to visform or plugins joomla?

More
5 years 7 months ago #2714 by Administrator
Replied by Administrator on topic graphic error with captcha-recaptcha 2.0
Hi,

thanks for the information!!

I fear that is a problem due to Visforms.
I will check into this as soon as possible and if necessary provide a bugfix.
I was told, that recaptcha 1 still works and there is the Visforms captcha as an alternative, too as a workaround, until I can tell you whether this is due to visforms or not and provide a bugfix if it is cause by Visforms.

Regards,
Aicha

-- Visforms Developer --
Always consult our documentations before asking a question on our forum, the answer is most probably there. :)
Bitte konsultiere immer zuerst unsere Dokumentationen bevor du eine Frage im Forum stellst, die Antwort ist bestimmt da. :)
Enjoy Joomla!
The following user(s) said Thank You: alexmurphy

More
5 years 7 months ago #2715 by Administrator
Replied by Administrator on topic graphic error with captcha-recaptcha 2.0
Hi,

well I should have used the Jooma! JCaptcha class to include the repcaptcha in the form.
But, as I did not, Visforms is not able to handle Recaptcha V2.0 properly.
You can change this relatively easily.
Open the file administrator/components/com_visforms/helpers/html/visforms.php
There is a function getCaptchaHtml
Find the code lines
else if ($form->captcha == 2) 
                {
                    JPluginHelper::importPlugin('captcha');
                    $dispatcher = JDispatcher::getInstance();
                    $dispatcher->trigger('onInit','dynamic_recaptcha_1');
                    $html .= '<div id="dynamic_recaptcha_1"></div>';
                }
in this function and replace it with
else if ($form->captcha == 2) 
                {
                    $captcha = JCaptcha::getInstance('recaptcha');
                    $html .= $captcha->display(null, 'dynamic_recaptcha_1', 'required');
                }
I had to generate new Recaptacha 2.0 compatible keys as well but after that and clearing all browser caches, the V2 Recaptcha was displayed properly and work fine.
Please let me know, if this fixes the problem. I could merge thechanges into the Visforms code then and (after waiting a bit longer if any other issues with Joomla! 3.5 pop up) can release a bugfix version of Visforms.

Regards,
Aicha

-- Visforms Developer --
Always consult our documentations before asking a question on our forum, the answer is most probably there. :)
Bitte konsultiere immer zuerst unsere Dokumentationen bevor du eine Frage im Forum stellst, die Antwort ist bestimmt da. :)
Enjoy Joomla!
The following user(s) said Thank You: alexmurphy, Pilzfreunde

More
5 years 7 months ago #2725 by alexmurphy
Replied by alexmurphy on topic graphic error with captcha-recaptcha 2.0
yes fix it!
Do you insert this fix in next update version of visform? :)

More
5 years 7 months ago #2726 by Administrator
Replied by Administrator on topic graphic error with captcha-recaptcha 2.0
Hi,

thanks for the response!

I will insert it for sure in Visforms 3.7.1 (beta).
I think I will release a stable Visforms 3.6.11 with this fix to, but only after I have waited a bit longer, if there comes up other problems with Joomla! 3.5 so that I can make one release for all problems cause by the update of Joomla! 3.5.

Regards,
Aicha

-- Visforms Developer --
Always consult our documentations before asking a question on our forum, the answer is most probably there. :)
Bitte konsultiere immer zuerst unsere Dokumentationen bevor du eine Frage im Forum stellst, die Antwort ist bestimmt da. :)
Enjoy Joomla!
The following user(s) said Thank You: alexmurphy

More
5 years 7 months ago #2727 by Pilzfreunde
Replied by Pilzfreunde on topic graphic error with captcha-recaptcha 2.0
Mit der Code-Ă„nderung funktionierts perfekt, danke.

Moderators: Administrator