Support Forums - Classified Ads Script Osclass

Osclass theme support => Zara Osclass Responsive Theme => Topic started by: Daniel PM on January 10, 2017, 07:22:59 PM

Title: Recaptcha error on contact seller form
Post by: Daniel PM 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.



(https://s28.postimg.org/dyz36v7jh/errorrr.png)
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes 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.
Title: Re: Recaptcha error on contact seller form
Post by: Daniel PM 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'.  :-\
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes 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.
Title: Re: Recaptcha error on contact seller form
Post by: Daniel PM 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.
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes 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...
Title: Re: Recaptcha error on contact seller form
Post by: Daniel PM on January 10, 2017, 09:39:58 PM
Thanks.
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes on January 12, 2017, 11:18:17 AM
Hello guys,
I have updated theme to version 1.2.3 that fix this issue.

Thanks
Title: Re: Recaptcha error on contact seller form
Post by: Виталий Василенко on January 12, 2017, 11:30:42 AM
Tell me what files are changed.
I do not want to change all the files.
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes on January 12, 2017, 11:39:03 AM
style.css
item-send-friend.php
item.php
global.js
Title: Re: Recaptcha error on contact seller form
Post by: Виталий Василенко on January 12, 2017, 11:46:15 AM
Many thanks
Title: Re: Recaptcha error on contact seller form
Post by: Виталий Василенко 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
Title: Re: Recaptcha error on contact seller form
Post by: Виталий Василенко on January 12, 2017, 02:44:12 PM
I bought on osclass market.
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes on January 12, 2017, 04:39:45 PM
You need to download it from here, once it is validated.
Title: Re: Recaptcha error on contact seller form
Post by: Виталий Василенко 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
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes on January 13, 2017, 11:01:45 AM
Once it is validated on market, you will be able to download it.
When? You need to ask osclass team.
Title: Re: Recaptcha error on contact seller form
Post by: Виталий Василенко on January 13, 2017, 11:08:56 AM
Ok
sorry
thanks
Title: Re: Recaptcha error on contact seller form
Post by: Daniel PM on January 18, 2017, 07:42:13 PM
Thanks for the update, frosticek.  :P 8)
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes on January 18, 2017, 08:55:19 PM
Welcome ;)
Title: Re: Recaptcha error on contact seller form
Post by: gbouclet on May 13, 2017, 06:04:58 PM
Hello,

I've got the same problem, I've bought the theme on the market and the latest version is still not available there...

Does any one has found a solution ? (I've tried to contact the osclass team but no answer yet...)

I've been trying to fix this the whole day...

Thank you in advance.

Guillaume
Title: Re: Recaptcha error on contact seller form
Post by: MB Themes on May 13, 2017, 08:27:32 PM
@gbouclet
It is required to change structure of this section and way how it is loaded to fix issue.
Done in latest version.