[Skip to main content](#vessel-content)

#   ReCaptcha plugin problem

##

- **[alulord](/forum/user/29027-alulord "View alulord's Profile")**
- [![alulord's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29027-alulord "View alulord's Profile") Topic Author
- [ Offline](/forum/user/29027-alulord)

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 7 months ago -  12 years 7 months ago [\#147779](#147779) by [alulord](/forum/user/29027-alulord "View alulord's Profile")  *[ReCaptcha plugin problem](/forum/27-checkout/866534-recaptcha-plugin-problem#147779 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  Hi, I have problem with hikashop recaptcha plugin. It is giving me &quot;The CAPTCHA solution was incorrect&quot; even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?  And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)  Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar):  it is working quite well, but there is problem, that login and registration is in the same form specifically this one  so it is doing check also on login(which I don't want :silly: )...is there any way?  Thank you.  P.S.: Preview here in forum didn't work for me ;)")* was created by *[alulord](/forum/user/29027-alulord "View alulord's Profile")*

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.2

Hi, I have problem with hikashop recaptcha plugin. It is giving me "The CAPTCHA solution was incorrect" even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?

And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)

Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar): Code:

JPluginHelper::importPlugin('captcha'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onInit','dynamic_recaptcha_1'); $captcha = $dispatcher-&gt;trigger('onDisplay','dynamic_recaptcha_1'); echo $captcha[0];

it is working quite well, but there is problem, that login and registration is in the same form specifically this one Code:

&lt;form action="/wiseweb-test/index.php/component/hikashop/checkout/step/step-1?Itemid=242" method="post" name="hikashop_checkout_form" enctype="multipart/form-data" onsubmit="if('function' == typeof(hikashopSubmitForm)) { hikashopSubmitForm('hikashop_checkout_form'); return false; } else { return true; }"&gt;

so it is doing check also on login(which I don't want :silly: )...is there any way?

Thank you.

P.S.: Preview here in forum didn't work for me ![;)](/media/kunena/emoticons/11.png ";)")

Last edit: 12 years 7 months ago by [alulord](/forum/user/29027-alulord "View alulord's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjUzNC1yZWNhcHRjaGEtcGx1Z2luLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

12 years 7 months ago [\#148589](#148589) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ReCaptcha plugin problem](/forum/27-checkout/866534-recaptcha-plugin-problem#148589 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  Hi, I have problem with hikashop recaptcha plugin. It is giving me &quot;The CAPTCHA solution was incorrect&quot; even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?  And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)  Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar):  it is working quite well, but there is problem, that login and registration is in the same form specifically this one  so it is doing check also on login(which I don't want :silly: )...is there any way?  Thank you.  P.S.: Preview here in forum didn't work for me ;)")*

Hi,

If you get an error with the recaptha solution, it means that you still have some joomla recaptcha option turned on either in the joomla user manager options or the joomla recaptcha plugin.
Only the Hikashop recaptcha plugin should be activated if you want that to work properly.

The joomla recaptcha plugin is doing its check on the event "before a user is registered" and not on an event "before the controller saving the registration form of Joomla". That why it is interfering with the recaptcha plugin that we provide since we also trigger the "before a user is registered" trigger during the registration process on HikaShop's checkout.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjUzNC1yZWNhcHRjaGEtcGx1Z2luLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alulord](/forum/user/29027-alulord "View alulord's Profile")**
- [![alulord's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29027-alulord "View alulord's Profile") Topic Author
- [ Offline](/forum/user/29027-alulord)

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 7 months ago -  12 years 7 months ago [\#148595](#148595) by [alulord](/forum/user/29027-alulord "View alulord's Profile")  Replied by *[alulord](/forum/user/29027-alulord "View alulord's Profile")* on topic *[ReCaptcha plugin problem](/forum/27-checkout/866534-recaptcha-plugin-problem#148595 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  Hi, I have problem with hikashop recaptcha plugin. It is giving me &quot;The CAPTCHA solution was incorrect&quot; even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?  And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)  Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar):  it is working quite well, but there is problem, that login and registration is in the same form specifically this one  so it is doing check also on login(which I don't want :silly: )...is there any way?  Thank you.  P.S.: Preview here in forum didn't work for me ;)")*

Hi, that really was the problem. Turned out, K2 was also doing the check even when recaptcha plugins were disabled ![:/](/irritated.gif ":/")

However I did a small workaround. I moved the recaptcha check to registration function of your user class like this(so I don't have to change the controllers of normal user registration and checkout) Code:

function register(&amp;$checkout,$page='checkout',$redirect=true){ $config =&amp; hikashop_config(); $app = JFactory::getApplication(); $user = clone(JFactory::getUser()); $authorize = JFactory::getACL(); $simplified = $config-&gt;get('simplified_registration',0); $post = JRequest::get('post'); $dispatcher = JEventDispatcher::getInstance(); JPluginHelper::importPlugin('captcha'); $res = $dispatcher-&gt;trigger('onCheckAnswer',$post['recaptcha_response_field']); if(!$res[0]){ return false; }

and called recaptcha in registration form like I wrote in previous message. Working quite good for me now. However you have whole plugin for that so probably it's not an optimal solution(don't what will happen if I decide to disable recaptcha), so if you have any comments, they are welcomed ![;)](/media/kunena/emoticons/11.png ";)")

Last edit: 12 years 7 months ago by [alulord](/forum/user/29027-alulord "View alulord's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjUzNC1yZWNhcHRjaGEtcGx1Z2luLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

12 years 7 months ago [\#148650](#148650) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ReCaptcha plugin problem](/forum/27-checkout/866534-recaptcha-plugin-problem#148650 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  Hi, I have problem with hikashop recaptcha plugin. It is giving me &quot;The CAPTCHA solution was incorrect&quot; even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?  And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)  Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar):  it is working quite well, but there is problem, that login and registration is in the same form specifically this one  so it is doing check also on login(which I don't want :silly: )...is there any way?  Thank you.  P.S.: Preview here in forum didn't work for me ;)")*

Hi,

If you disable the plugin, it won't display the captcha, but you'll still have the check in the controller and it won't work. So in that case you would have to remember to also remove the code in the controller.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjUzNC1yZWNhcHRjaGEtcGx1Z2luLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alulord](/forum/user/29027-alulord "View alulord's Profile")**
- [![alulord's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29027-alulord "View alulord's Profile") Topic Author
- [ Offline](/forum/user/29027-alulord)

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 7 months ago [\#148693](#148693) by [alulord](/forum/user/29027-alulord "View alulord's Profile")  Replied by *[alulord](/forum/user/29027-alulord "View alulord's Profile")* on topic *[ReCaptcha plugin problem](/forum/27-checkout/866534-recaptcha-plugin-problem#148693 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  Hi, I have problem with hikashop recaptcha plugin. It is giving me &quot;The CAPTCHA solution was incorrect&quot; even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?  And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)  Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar):  it is working quite well, but there is problem, that login and registration is in the same form specifically this one  so it is doing check also on login(which I don't want :silly: )...is there any way?  Thank you.  P.S.: Preview here in forum didn't work for me ;)")*

Hi, that was also my guess, but that can be fixed with simple if condition.

Another thing I found in login. Is hikashop supporting two factor authentication? (didn't find anything around web about it, but don't want to start new thread for a simple question:)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjUzNC1yZWNhcHRjaGEtcGx1Z2luLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

12 years 7 months ago [\#148731](#148731) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ReCaptcha plugin problem](/forum/27-checkout/866534-recaptcha-plugin-problem#148731 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  Hi, I have problem with hikashop recaptcha plugin. It is giving me &quot;The CAPTCHA solution was incorrect&quot; even thou it is correct (recaptcha server answered with success). Also is there way to put recaptcha image under whole form rather than after password?  And I know I should answer this in Joomla forum but maybe you know answer. Is joomla's native recaptcha doing check in every form? I mean why it is checking hikashop forms even when there is no code(didn't find any) to tell recaptcha plugin to check (the problem, that joomla recaptcha plugin is doing check but no picture in form showing)  Other thing, If put recaptcha (without hikashop recaptcha plugin) in checkout registration like this(or similar):  it is working quite well, but there is problem, that login and registration is in the same form specifically this one  so it is doing check also on login(which I don't want :silly: )...is there any way?  Thank you.  P.S.: Preview here in forum didn't work for me ;)")*

It doesn't.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjUzNC1yZWNhcHRjaGEtcGx1Z2luLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.177 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
