This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Daniel PM

  • ****
  • 111 posts
Recaptcha error on contact seller form
« on: January 10, 2017, 07:22:59 PM »
Hello MB Themes Support Crew, I have a problem because the Recaptcha form is showing in the old and new style in the contact seller form. In other forms, like suscribe or post add, Recaptcha works fine.

Please tell me what line of what php do I have to change, in order to just keep the new recaptcha. Thanks.



Daniel PM

*

MB Themes

Re: Recaptcha error on contact seller form
« Reply #1 on: January 10, 2017, 07:50:44 PM »
@Daniel
Try this.
Go to item.php in theme folder.
Find:
Code: [Select]
                  <!-- ReCaptcha -->
                  <?php if( osc_recaptcha_public_key() ) { ?>
                    <script type="text/javascript">
                      var RecaptchaOptions = {
                        theme : 'custom',
                        custom_theme_widget: 'recaptcha_widget'
                      };
                    </script>

                    <div id="recaptcha_widget">
                      <div id="recaptcha_image"><img /></div>
                      <span class="recaptcha_only_if_image"><?php _e('Enter the words above','zara'); ?>:</span>
                      <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                      <div><a href="javascript:Recaptcha.showhelp()"><?php _e('Help''zara'); ?></a></div>
                    </div>
                  <?php ?>
                  <?php osc_show_recaptcha(); ?>

Replace it with just:
Code: [Select]
<?php osc_show_recaptcha(); ?>
Let me know.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel PM

  • ****
  • 111 posts
Re: Recaptcha error on contact seller form
« Reply #2 on: January 10, 2017, 08:36:47 PM »
Hi, I did this change, now the form only shows the new recaptcha, but when I try to send a message and hit the 'i'm not a robot' the recaptcha just keeps loading, but it does not load the images to solve the puzzle. In 'create ad' and in 'create account' the recaptcha feature works fine, but not here. I even tried to remove the recaptcha, but after hitting 'send message' an error appears that 'the recaptcha is incorrect'.  :-\
Daniel PM

*

MB Themes

Re: Recaptcha error on contact seller form
« Reply #3 on: January 10, 2017, 08:49:10 PM »
@Daniel PM
I can't help if recaptcha is not loading, that is not osclass stuff... But make sure you have no javascript errors on your site and console is empty.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel PM

  • ****
  • 111 posts
Re: Recaptcha error on contact seller form
« Reply #4 on: January 10, 2017, 09:03:30 PM »
If you enter my site, www.vendix.mx and click on any of the 2 test ads there, you can try it yourself:

Try opening 'contact seller' and see that recaptcha just don´t work. In the same ad, open 'send to a friend' and you can see that the recaptcha feature works perfectly in that form.

That only tells me that neither Google or recaptcha is wrong, what's wrong is that particular area, the 'contact seller' window.

I don't care if recaptcha does not show on that particular form, just tell me please how to avoid a 'recaptcha error' after sending a message even with recaptcha removed from that form. Thanks.
Daniel PM

*

MB Themes

Re: Recaptcha error on contact seller form
« Reply #5 on: January 10, 2017, 09:27:15 PM »
@Daniel PM
... that is funny that osclass does not allow you to use it on particular forms only.
It reports you 2 errors:
Uncaught Error: ReCAPTCHA placeholder element must be empty
Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame.

I will take a look on it tomorrow.


... to solve this issue quickly you can use nocaptcha recaptcha plugin that allows you to select which forms should be protected. It worked pretty nicely for me...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel PM

  • ****
  • 111 posts
Re: Recaptcha error on contact seller form
« Reply #6 on: January 10, 2017, 09:39:58 PM »
Thanks.
Daniel PM

Marked as best answer by frosticek on January 13, 2017, 11:20:56 AM
*

MB Themes

Re: Recaptcha error on contact seller form
« Reply #7 on: January 12, 2017, 11:18:17 AM »
Hello guys,
I have updated theme to version 1.2.3 that fix this issue.

Thanks
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Recaptcha error on contact seller form
« Reply #8 on: January 12, 2017, 11:30:42 AM »
Tell me what files are changed.
I do not want to change all the files.

*

MB Themes

Re: Recaptcha error on contact seller form
« Reply #9 on: January 12, 2017, 11:39:03 AM »
style.css
item-send-friend.php
item.php
global.js
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Recaptcha error on contact seller form
« Reply #10 on: January 12, 2017, 11:46:15 AM »
Many thanks

Re: Recaptcha error on contact seller form
« Reply #11 on: January 12, 2017, 01:01:34 PM »
send me the modified files

[email protected]

In Market Version 1.2.0

http://prntscr.com/dunwgg

Re: Recaptcha error on contact seller form
« Reply #12 on: January 12, 2017, 02:44:12 PM »
I bought on osclass market.
« Last Edit: January 12, 2017, 04:39:26 PM by frosticek »

*

MB Themes

Re: Recaptcha error on contact seller form
« Reply #13 on: January 12, 2017, 04:39:45 PM »
You need to download it from here, once it is validated.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Recaptcha error on contact seller form
« Reply #14 on: January 13, 2017, 11:00:20 AM »

Just I checked on site osclass.org
Your theme zara on 10/11/2016
pintskrin
http://prntscr.com/dv2dn3

tell me how to download the version 1.2.1