Jump to content
motion2082

Add reCAPTCHA to Prestashop Version 1.6.0.14 for FREE

Recommended Posts

Bonjour,

Merci pour vos détails.

Normalement tout devrait fonctionner correctement avec votre configuration qui est relativement standard ( c'est le cas sur ma version de test)

En revanche votre site doit avoir un filtrage par ip car je ne peux pas y accéder. ( Erreur 403)

Share this post


Link to post
Share on other sites

Please understand step 4 and 5 do not file, I use prestashop 1.6.1.6.

 

Translated from Spanish to English with google.

Share this post


Link to post
Share on other sites

Bonjour,

 

Le module fonctionne sur la page contact mais je passe outre la vérification sur la création d'un compte.

J'ai la dernière version de PS.

La dernière version de votre module .

Edited by renaudpro (see edit history)

Share this post


Link to post
Share on other sites

Bonjour,

Essayez de désactiver la minification js pour tester.
Je ne vois aucun code js en rapport avec le captcha sur votre page d'inscription.

 

Cordialement,

Share this post


Link to post
Share on other sites

Hey guys,

 

It took me a while to figure out a FREE way to easily Add Google reCAPTCHA to PS v1.6.0.14 as most of the posts in the forums are quite outdated. Most are now PAID solutions.

 

Therefore I have decided to start this thread to assist anyone else looking for a quick FREE solution.

 

Step 1) Setup your Google reCAPTCHA Account @ https://www.google.com/recaptcha/intro/index.html

 

Step 2) Download "EICAPTCHA-MASTER.ZIP" below. To install you will need to do this manually by uploading the ZIP file to your MODULES folder, Extracting it and Renaming it to EICAPTCHA. Bit of a pain I know.

 

Step 3) Configure your EICAPTCHA Module and enter your PUBLIC KEY and SECRET KEY, SAVE

 

 

Bonjour,

 

Bon moi déjà je ne parviens pas du tout à le paramétrer... Pourriez-vous expliquer cela ?

 

Je télécharge le zip, j'extrai sur mon ordi les fichiers je les envoie dans un dossier qui se trouvent dans /modules/ qui se nome "EICAPTCHA"...

 

ET après je fais quoi pour l'installer, le configurer ??

 

Merci bien de votre aide.

Share this post


Link to post
Share on other sites

Ah !

 

C'est bon c'était compliqué de refraichir la liste des modules...

 

Merci tout fonctionne correctement !

 

Seb.

Share this post


Link to post
Share on other sites

Bonjour,

 

Je viens de ressayer en désactivant, cela fait pareil.

 

Bonjour,

 

Merci d'avoir reporté cette erreur.

La dernière version du module sur github comportait une erreur lors de l'appel du fichier js.

Je viens de mettre en place un correctif.

 

Cordialement,

Hervé

Share this post


Link to post
Share on other sites

Bonjour,

 

ça fonctionne désormais sur votre dernier commit, j'ai donc récupéré les données du dernier commit.

 

Cordialement

Share this post


Link to post
Share on other sites

Hey guys,

 

It took me a while to figure out a FREE way to easily Add Google reCAPTCHA to PS v1.6.0.14 as most of the posts in the forums are quite outdated. Most are now PAID solutions.

 

Therefore I have decided to start this thread to assist anyone else looking for a quick FREE solution.

 

Step 1) Setup your Google reCAPTCHA Account @ https://www.google.com/recaptcha/intro/index.html

 

Step 2) Download "EICAPTCHA-MASTER.ZIP" below. To install you will need to do this manually by uploading the ZIP file to your MODULES folder, Extracting it and Renaming it to EICAPTCHA. Bit of a pain I know.

 

Step 3) Configure your EICAPTCHA Module and enter your PUBLIC KEY and SECRET KEY, SAVE

 

Step 4) Make a Copy of your "contact-form.tpl" file at "/Themes/YourTheme/contact.tpl"

 

Step 5) Open "contact.tpl" and find:

<div style="text-align:right;" class="submit">
<button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
</div>

For me it was on Line 141

 

Directly above this div place the following code: 

{if $captcha}
<p>
<script src='https://www.google.com/recaptcha/api.js'></script>
<div class="g-recaptcha" data-sitekey="YOUR_PUBLIC_KEY"></div>
</p>
{/if}

NOTE: Be sure to replace "YOUR_PUBLIC_KEY" with your Google Public Key

 

Step 6: Save "contact-form.tpl" and upload it to your "theme/yourtheme/" folder via your FTP Program

 

Final Step: Refresh your browser and test your RECAPTCHA

 

 

EDIT: 20/6/15 - Latest EiCaptcha Module 0.4.3 Added

Hello everyone.

 

First of all thank you for this module!

 

I am currently under prestashop 1.7 and I can not perform step 5

 

Indeed there is no DIV:

 

<div style="text-align:right;" class="submit">

<button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>

</div>

 

I only find:

 

<footer class="form-footer">

      <button type="submit" name="submitMessage">

        {l s='Send'}

      </button>

    </footer>

 

Thank you for your help

Share this post


Link to post
Share on other sites

Hello! great module but could you help me? I can`t make the captcha work on the send to a friend module... What am i doing wrong? I tried copying the .tpl, the captcha is displayed but the form can be submitted without captcha confirmation.

 

Thanks 

Share this post


Link to post
Share on other sites

Hello everyone.

 

First of all thank you for this module!

 

I am currently under prestashop 1.7 and I can not perform step 5

 

Indeed there is no DIV:

 

<div style="text-align:right;" class="submit">

<button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>

</div>

 

I only find:

 

<footer class="form-footer">

      <button type="submit" name="submitMessage">

        {l s='Send'}

      </button>

    </footer>

 

Thank you for your help

 

Hello,

 

This module is not yet compatible with prestashop 1.7

It should be done in the next weeks.

 

Regards,

Share this post


Link to post
Share on other sites

Hello! great module but could you help me? I can`t make the captcha work on the send to a friend module... What am i doing wrong? I tried copying the .tpl, the captcha is displayed but the form can be submitted without captcha confirmation.

 

Thanks 

 

Hello,

Do you have any errors when submitting the form ?

Which prestashop version are you using ?

 

Regards,

Share this post


Link to post
Share on other sites

Hello there,

 

the module doesn't seem to do server side check if the captcha was resolved on my contact form. I am able to submit form with curl. (And sadly the spammers too ;-))

The html/javascript parts are working though. (I get the ajax message on failed captcha.)

 

I had a quick look at the modules code and can't find the pieces responsible for server side validation. (But i'm not very experienced with PS module dev.)

 

I am running the module from github master branch (0.4.8) on PS 1.6.1.8 with multishop setup.

 

Any advice appreciated.

 

/cb

Share this post


Link to post
Share on other sites

Hello,

Do you have any errors when submitting the form ?

Which prestashop version are you using ?

 

Regards,

 Hello,

I have no errors when the form is submitted. The captcha is displayed but but the form is submitted regardless of weather the captcha is validated or returns an error.

The prestashop version is 1.6.1.5. I`ll come back with a printscreen asap

Share this post


Link to post
Share on other sites

Hello,
 

I will see if i find some times in the next weeks to do this ;-)

 

Regards,

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

I will see if i find some times in the next weeks to do this ;-)

 

Regards,

 

Thanks herve25

 

Looking forward to try out the 1.7 version :-)

 

Regards,

Ashkan Sharifi

Share this post


Link to post
Share on other sites

this doesnt work, wasted time uploading seperately to modules folder, modified contact form. just going to pay someone to do it! modules should be able to upload from back end!

Share this post


Link to post
Share on other sites

Hello, i try to use module 0.4.3 on prestashop 1.5.6.2 

i can see the button o captcha in contact form but befor the button i got this error:

 

Notice: Undefined index: captcha in /web/cache/smarty/compile/0f/7f/fe/0f7ffece6365e8d8bb5ab7576d6fa777fc45ffe3.file.contact-form.tpl.php on line 286 Notice: Trying to get property of non-object in /web/cache/smarty/compile/0f/7f/fe/0f7ffece6365e8d8bb5ab7576d6fa777fc45ffe3.file.contact-form.tpl.php on line 286

 

on line 286 i have this :>> <?php if ($_smarty_tpl->tpl_vars['captcha']->value){?>

 

Any solution ?

Thanks

Share this post


Link to post
Share on other sites

Hello,

 

I cannot get the module to install. Firstly, the directions of copying the file into my modules folder and THEN extracting it doesn't make sense to me as it is not possible to extract a ZIP file on my server once it is uploaded. I tried extracting the file on my desktop first and then copying it into the modules folder with the new name "eicaptcha" but the module never shows up in my modules list on the backoffice.

 

Please help!

 

Thanks in advance!

 

EDIT: I extracted the file first and uploaded to the modules folder and after about 20 minutes the module finally showed up in my backoffice, I guess I just needed to wait. I was able to install it successfully now, thanks.

Edited by guixr (see edit history)

Share this post


Link to post
Share on other sites

Hello,

 

I dont have validation in "fast/guest shopping" i can go to next order step without selection "im not a robot"

 

Presta 1.6, default thame.

 

PS. It is possible to add captcha to last step in checkout page?

 

thanks for help

Edited by kolmen (see edit history)

Share this post


Link to post
Share on other sites

I have solved Send to a Friend Form

 

Resuming:

Contact form

Computer: Yes

Mobile No

 

Registration Form:

Computer: Yes

Mobile: Yes

 

Product Comment:

Computer: Yes

Mobile Yes

 

Send to a friend:

Computer: Yes

Mobile: Yes

 

The Mobile contact form issue still here.

I have no idea of how to solve it.

 

Thank you.

Hi friend,
please you can send me all modified files that you have made to solve recaptcha in all forms and wich forms??
thanks in advance!!
 
my e-mail: diman11@yahoo.it

Share this post


Link to post
Share on other sites

 

Hi friend,
please you can send me all modified files that you have made to solve recaptcha in all forms and wich forms??
thanks in advance!!
 
my e-mail: diman11@yahoo.it

 

Hello,

I sincerely do not remember which file I modify...

What is your issue?

Regards

Share this post


Link to post
Share on other sites

Bonjour,

 

Il faut créer un override pour chaque formulaire sinon le POST sans passer par la page n'est pas sécurisé, exemple pour le formulaire de contact à mettre dans override/controllers/front/ContactController.php :

 

--

 

Hello,
 
It is necessary to create an override for each form otherwise the POST without going through the page is not secure, example for the contact form to put in override/controllers/front/ContactController.php
 
<?php
class ContactController extends ContactControllerCore
{
  /**
  * Start forms process
  * @see FrontController::postProcess()
  */
  public function postProcess()
  {
    if (Tools::isSubmit('submitMessage')) {      
      // Ma clé privée
      $secret = Configuration::get('CAPTCHA_PRIVATE_KEY');
      // Paramètre renvoyé par le recaptcha
      $response = $_POST['g-recaptcha-response'];
      // On récupère l'IP de l'utilisateur
      $remoteip = $_SERVER['REMOTE_ADDR'];

      $api_url = "https://www.google.com/recaptcha/api/siteverify?secret="
      . $secret
      . "&response=" . $response
      . "&remoteip=" . $remoteip ;

      $decode = json_decode(file_get_contents($api_url), true);

      if ($decode['success'] == true) {
        parent::postProcess();
      }
      else {
        // BAN IP
        $path = _PS_ROOT_DIR_.'/.htaccess';
        if (!$htaccess = @file_get_contents($path)) {
          return false;
        }
        $content = 'Deny from ' . $remoteip . "\r\n";
        $content .= $htaccess;
        file_put_contents($path, $content);
      }
    }
  }
}
Edited by servalagency (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Hi everybody,

I've just installed your module in prestashop 1.6.1.13.

It runs pretty well except when you hit the submit button it does not return to the contact page and it does not generate the contact form in the backoffice either.

 

Could anyone help about this please?

I'm in a hurry due to spam bots filling my forms with shitty mails.

 

Thanks.

Share this post


Link to post
Share on other sites

Hi everybody,

I've just installed your module in prestashop 1.6.1.13.

It runs pretty well except when you hit the submit button it does not return to the contact page and it does not generate the contact form in the backoffice either.

 

Could anyone help about this please?

I'm in a hurry due to spam bots filling my forms with shitty mails.

 

Thanks.

 

Start with disabling the whole contact form - my last post here: https://www.prestashop.com/forums/topic/348262-solveddisable-contact-us-pagelink/

Share this post


Link to post
Share on other sites

Hi everybody,

I've just installed your module in prestashop 1.6.1.13.

It runs pretty well except when you hit the submit button it does not return to the contact page and it does not generate the contact form in the backoffice either.

 

Could anyone help about this please?

I'm in a hurry due to spam bots filling my forms with shitty mails.

 

Thanks.

 

And I confirm that even if it works in 1.6.1.11 - it doesnt stop spamrobots, BUT - disabling whole contact form (mentioned with link before) stops them.

Share this post


Link to post
Share on other sites

And I confirm that even if it works in 1.6.1.11 - it doesnt stop spamrobots, BUT - disabling whole contact form (mentioned with link before) stops them.

 

Since I installed it (a few weeks ago), it does its work. Or I think so, because I don't receive any spam... by the moment.     :-)

Share this post


Link to post
Share on other sites

Hi everybody,

I've just installed your module in prestashop 1.6.1.13.

It runs pretty well except when you hit the submit button it does not return to the contact page and it does not generate the contact form in the backoffice either.

 

Could anyone help about this please?

I'm in a hurry due to spam bots filling my forms with shitty mails.

 

Thanks.

 

I just solved it by this: https://www.prestashop.com/forums/topic/609900-spammer-bypasses-contact-form-captcha-no-effect/ - last post

Share this post


Link to post
Share on other sites

Hi everybody!

 

I've installed the latest version (0.4.9) over Prestashop 1.6.1.4 and I've got the following errors:

 

2 errors 

  1. eicaptcha (parse error in /modules/eicaptcha/eicaptcha.php)
  2. eicaptcha (class missing in /modules/eicaptcha/eicaptcha.php)

 

Any idea on what can be the problem?

Share this post


Link to post
Share on other sites

Hello,

 

I will see if i find some times in the next weeks to do this ;-)

 

Regards,

 
Hello and thank you for sharing.
I am under prestashop 1.7.1.2 and I would like to have your module.
Is it available for the latest version of prestashop?
 
Thank you a lot

Share this post


Link to post
Share on other sites

Hello,

A new beta version is available for prestashop 1.7
You can find additionnal information on the github page : https://github.com/nenes25/eicaptcha/tree/17

 

For now the best solution to get the module is with current ssh commands into your prestashop module directory :

git clone https://github.com/nenes25/eicaptcha.git -b 17
cd eicaptcha
composer install

Otherwise you can download the archive : here

 

Regards,
Hervé

 

Share this post


Link to post
Share on other sites

Hello,

 

A new beta version is available for prestashop 1.7

You can find additionnal information on the github page : https://github.com/nenes25/eicaptcha/tree/17

 

For now the best solution to get the module is with current ssh commands into your prestashop module directory :

git clone https://github.com/nenes25/eicaptcha.git -b 17
cd eicaptcha
composer install

Otherwise you can download the archive : here

 

Regards,

Hervé

 

Thank you :-)

Edited by osmovap (see edit history)

Share this post


Link to post
Share on other sites

I'm unable to install it on ps 1.6.1.15.

 

I tried to install it trough the admin panel and manually using FTP but the module is not showing up on the module list to install it.

 

I'm using the latest version I found on the topic.

 

What can I do?

Edited by Ivan Leon (see edit history)

Share this post


Link to post
Share on other sites

I'm unable to install it on ps 1.6.1.15.

 

I tried to install it trough the admin panel and manually using FTP but the module is not showing up on the module list to install it.

 

I'm using the latest version I found on the topic.

 

What can I do?

 

 

I have the same problem

Share this post


Link to post
Share on other sites
Hello, I'm using version 1.6.1.14 and I can not figure out where  to copy in contact-form.tpl

 

{If $ captcha}

  <P> <script src = "https://www.google.com/recaptcha/api.js"> </ script> <div class = "g-recaptcha" data-sitekey = "YOUR_PUBLIC_KEY" </ P>

{/ If}

 

please help me

Share this post


Link to post
Share on other sites
Hello, thank you for this module. 

I installed this module, on prestashop 1.6.1. , But it show blank page when I try to send a form, Google Chrome will show error 500.

What should be done ? as instructed I have done all. The shop working very well.

 

Is there anything in this Php setup that could fix an error?

 

 

Share this post


Link to post
Share on other sites

Hello,

In order to display the error , could you please enable the dev mode and tell me the error message.

 

Regards,

Share this post


Link to post
Share on other sites

Hello, 

 

there is report:

 

Warning: require_once(/var/www.com/vhosts/www.com/../modules/eicaptcha/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/vhosts/www.com/online/modules/eicaptcha/eicaptcha.php on line 382

Fatal error: require_once(): Failed opening required '/var/www/vhosts/pizzashop.fi/online/modules/eicaptcha/vendor/autoload.php' (include_path='.:/opt/plesk/php/5.6/share/pear') in /var/www/vhosts/www.com/online/modules/eicaptcha/eicaptcha.php on line 382

Share this post


Link to post
Share on other sites
Hello Hervé..
Thank you very much for your module.
 

I just new installed this module, on prestashop 1.7.2.0.

its work for Captcha for account creation, but error on Captcha for contact form, reCaptcha not displayed.

How to fix it? i am sorry for my English.

Share this post


Link to post
Share on other sites

 

Hello Hervé..
Thank you very much for your module.
 

I just new installed this module, on prestashop 1.7.2.0.

its work for Captcha for account creation, but error on Captcha for contact form, reCaptcha not displayed.

How to fix it? i am sorry for my English.

 

Hello,

In order to work with prestashop 1.7 you have to install the module contactform before.

Have you do this, do you use a custom theme ?

 

Regards,

Share this post


Link to post
Share on other sites

Attention the module eicaptcha-master.zip contains the module sendtoafriend do not install it!

If you had read the documentation of the module before posting , you should have seen that the module overrides functionnalities of the module sendtoafriend in order to add a captcha on it.

And that this override have to be done manually.

 

So please avoid to tell nosense things if you do not understand how it works...

  • Like 1

Share this post


Link to post
Share on other sites

First of all, thank you for this module, quite surprised it is not already included in "stock" PS. Currently using v 1.7.2 and your version downloaded from here: https://www.h-hennes.fr/blog/wp-content/uploads/2017/07/eicaptcha-17-beta.zip

 

It is now being displayed correctly on both forms, however it doesn't seem to work as I was able to send message using the contact us form without validating captcha. There is even message being displayed after submit - Your message has been successfully sent to our team. And the message is recorded in BO.

 

Perhaps I missed something in settings...?

Edited by mr_absinthe (see edit history)

Share this post


Link to post
Share on other sites

Hi,

Is this possible to update this very useful module with the V2 of reCAPTCHA? How?

Thank's a lot !

Share this post


Link to post
Share on other sites

Hi

Very nice contribution. There's just one comment from our side: you should move the javascript code (//Insertion de la div qui va contenir le captcha dans la page) out from the main PHP and have it in a separate file, as once installed, it is cached, and no changes to the script are taken into consideration, not even after re-install.

Cheers

Share this post


Link to post
Share on other sites

I gave up on this and ended up buying a paid solution....sorry guys....moving my new clients to OpenCart now as Prestashop is a joke

Edited by motion2082 (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

just wanted to say: thank you for sharing this great module!

works like a charm!

Share this post


Link to post
Share on other sites
On 06/04/2016 at 3:43 PM, sekwoja said:

I believe that there is some problem with controller, because eicaptcha.php in reference to contact form adds only couple of lines written in Javascript (jQuery). And above-mentioned code does nothing more than inputting recaptcha google api by means of JS/jQuery:


$(document).ready(function(){
            
               //Add div where the captcha will be displayed
               $(".submit").before("<div id=\"captcha-box\"></div>");
               
               //Manage form submit
                $("#submitMessage").click(function(){
                    //If no response we display an error
                    if ( ! grecaptcha.getResponse() ) {
                        $.ajax({
                                method : "POST",
                                url : "'._MODULE_DIR_.$this->name.'/eicaptcha-ajax.php",
                                data : "action=display_captcha_error",
                                success : function(msg){
                                    $(".'.$error_class.'").remove();    
                                    $("form.'.$form_class.'").before(msg);
                                }
                            });
                       
                        return false;
                    }
                });
            });

This solution may be helpful for some other users having issues with reCaptcha on Prestashop. So, after hours of tries I gave up and took code delivered by google (this one below) and put it inside my header.tpl.


<script src='https://www.google.com/recaptcha/api.js'></script>

Than I copied and pasted this:


<div class="g-recaptcha" data-sitekey="GOOGLE_PUBLIC_KEY"></div>

into contact-form.tpl in my theme. After couple of tries it turned out that it still doesnt work so I opened contactController.php and added:


else   if   ( ! ( $gcaptcha   =   ( int ) ( Tools:: getValue ( 'g-recaptcha-response' ) ) ) )

$this -> errors [ ]   =   Tools:: displayError ( 'Captcha nie zweryfikowana' ) ;

before last else in line 50 in public function postProccess.

 

Now it works. I am still wondering what is wrong with EiCaptcha module, because when it comes to create account page it works like a charm. The only one problem is on contact form page.

 

it is not very clear from the OP how to use this module to provide the complete security needed, because if you do have a real spam problem then they still bypass the captcha on the contact form even after installing this module and following the first post.

so, I wanted to make it clear, that not only do you need to follow the first post of this thread, but you will also need to write in the code from the quoted post above and into to the contactcontroller.php

the response from the JS however is in another language, but someone else also found this solution too which can be found here: https://www.prestashop.com/forums/topic/609900-spammer-bypasses-contact-form-captcha-no-effect/?do=findComment&comment=255718

 

now, i tried the solution that is provided in the link above, but it didn't work at first, but after comparing both codes I was able to establish that it has a "{" "}" in the code 

example

} else if (!($gcaptcha = (int)(Tools::getValue('g-recaptcha-response')))){

    $this->errors[] = Tools::displayError('Captcha not verified');

            }

that code above didn't work, it just threw the contact page but the below code is what worked for me on 1.6.0.14

 else if (!($gcaptcha = (int)(Tools::getValue('g-recaptcha-response'))))

    $this->errors[] = Tools::displayError('Captcha not verified');

although the OP of this thread tells you to put the following code into the contact page 

<script src=https://www.google.com/recaptcha/api.js'></script>

it might need to go into the header.tpl, I can't be certain if this makes a difference or not, but most certainly updating the controller was needed in order to stop the spamming.

 

thank you to all the contributors for your solutions. I would just like to add that it would be very handy if the OP can edit the first post to include the solutions so it can save PS users a lot of time. and possible damage to reputation.

 

  • Like 1

Share this post


Link to post
Share on other sites

If anyone is having problems with module not appearing in BO - this might be the case of UPPERCASE or lowercase module folder name - if the module is not appearing, rename "EICAPTCHA" to "eicaptcha"!

This happens to some hosting providers using certain OS for servers - if Your hosting provider uses Linux/Unix, "EICAPTCHA" folder name will cause the error and module will not be visible in BO.

Share this post


Link to post
Share on other sites

If You want to choose Captcha interface language:

1. Open file "eicaptcha.php" inside the module folder (using "Notepad" or "Notepad++");

2. Find this part of the code at the end of the file (actual line is around 306):

		$js .= '<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>';

Edit the very end by adding "&hl=FR", where FR is French - just pick Your language code respectively. Should look like this:

		$js .= '<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit&hl=fr" async defer></script>';

You can pick whichever language You want. This change will work for contact form only - You need to change the code lines for Account creation, Send to a Friend by finding same code lines with "recaptcha/api.js" and adding the small code segment.

Share this post


Link to post
Share on other sites

Hi, thank you so much, works for me 1.6.1.4 but shows the following error:

Notice: Undefined index: captcha in /home/web/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 253

Notice: Trying to get property of non-object in /home/web/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 253

Anyone can help me please? Thanks!

Share this post


Link to post
Share on other sites
On 9/3/2017 at 2:47 AM, mr_absinthe said:

First of all, thank you for this module, quite surprised it is not already included in "stock" PS. Currently using v 1.7.2 and your version downloaded from here: https://www.h-hennes.fr/blog/wp-content/uploads/2017/07/eicaptcha-17-beta.zip

 

It is now being displayed correctly on both forms, however it doesn't seem to work as I was able to send message using the contact us form without validating captcha. There is even message being displayed after submit - Your message has been successfully sent to our team. And the message is recorded in BO.

 

Perhaps I missed something in settings...?

this module working fine with prestashop 1.7.2.4

for spamming will notify here.

thanks for this module.

No spamming now

Edited by tuhingr
Module working reports (see edit history)

Share this post


Link to post
Share on other sites

Hello , 

Can you help me? I have this error: 

Uncaught Error: ReCAPTCHA placeholder element must be empty
    at Object.Qr [as render] (VM5826 recaptcha__pt_pt.js:396)
    at onloadCallback (contacte-nos:1296)
    at VM5826 recaptcha__pt_pt.js:400
    at Br (VM5826 recaptcha__pt_pt.js:391)
    at VM5826 recaptcha__pt_pt.js:400
    at VM5826 recaptcha__pt_pt.js:411

Share this post


Link to post
Share on other sites
On 20/02/2018 at 6:02 AM, sting5 said:

If anyone is having problems with module not appearing in BO - this might be the case of UPPERCASE or lowercase module folder name - if the module is not appearing, rename "EICAPTCHA" to "eicaptcha"!

This happens to some hosting providers using certain OS for servers - if Your hosting provider uses Linux/Unix, "EICAPTCHA" folder name will cause the error and module will not be visible in BO.


Thanks for the feeback it's weird i've never had such a problem.

Share this post


Link to post
Share on other sites

Excellent Module, thank you so much!

It works out of the Box if you do the "composer thing" asked by the module when you install it.
I managed to fight off a spammer who flooded my contact form with spam. I have tested it with PS 1.6.1.13, 1.6.1.14 and 1.6.1.16
There is also a version for PS 1.7 if you search in Github.

Share this post


Link to post
Share on other sites
On 23/2/2018 at 7:08 PM, mr_absinthe said:

I've upgraded to the latest version and it is working fine in 1.7.2, thank you very much! Great job!

Hi,

 

I installed  the latest version of the module on PS 1.7.2 but I have always this message: 

  • Please validate the captcha field before submitting your request

I don't know how to fix it :(

 

Thanks

Angela

 

Share this post


Link to post
Share on other sites
1 hour ago, afshop said:

Hi,

 

I installed  the latest version of the module on PS 1.7.2 but I have always this message: 

  • Please validate the captcha field before submitting your request

I don't know how to fix it :(

 

Thanks

Angela

 

 I solved it; I setup the parameter  allow_url_fopen=on in php.ini

 

thanks

 

Share this post


Link to post
Share on other sites

Just wanted to say a big THANK YOU for this great module!

It took me only a minute to configure by following the steps in the first post.  Tested on 1.6.5.

Share this post


Link to post
Share on other sites

After install and paste code on contact-form.tpl reCapcha is showing. When try to submit without check "im not robot" capcha work and don't send message, but when check the box and submit show blank white page and not sent message, please help

Edited by loyalconsult (see edit history)

Share this post


Link to post
Share on other sites

Many thanks for this. My site has also been hit by a burst of Russian spam and I came across this. 

Registered with Google and installed on Prestashop 1.6.0.9 in the default-bootstrap them 

Worked fine.; Thanks again.

 

Share this post


Link to post
Share on other sites

Google ReCaptcha V2 is not the solution, because it is broken now...

"The researcher East-Ee Security devised a proof of concept bypass of the Google’s reCaptcha V2 verification system dubbed ReBreakCaptcha."

http://securityaffairs.co/wordpress/56816/hacking/rebreakcaptcha-google-recaptcha-hacking.html

It can be broken by any "anti captcha" services.

Share this post


Link to post
Share on other sites