Hi
This version looks like it should work - I suspect there is an error occurring somewhere in the recaptcha_check_answer function, which means that $resp is blank or null.
Hi
This version looks like it should work - I suspect there is an error occurring somewhere in the recaptcha_check_answer function, which means that $resp is blank or null.
Hello David, We are using zen cart 1.5.5 and I installed your plugin, it works great for the contact us page, however on the new account client registration page, it keeps displaying the error at the top "Please verify that your are not a robot", but the validate has a green check mark. Any ideas on how to fix?
www.skincareproducts4all.com
Thank you very much!
Okay, please forgive me, how do we resolve the $resp is null
Hi Searchn
I haven't had chance to test it yet with v1.5.5, but I can't see any changes that would cause it not to work. I just tried the create account on your site and it does come up with the error.
I think somehow the reCaptcha response isn't being sent back to the form processing script. Not sure why, the only thing I can see is an extraneous </fieldset> in the html immediately after the reCaptcha. Try getting rid of that and see if it helps
Regards
Thanks for the reply. I tried that and it crashes the page. I moved the recapcha line around and still no luck. See the tail end of the tpl_modules_create_account.php file.
<?php echo recaptcha_get_html(); ?>
<?php
if (CUSTOMERS_REFERRAL_STATUS == 2) {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend>
</fieldset>
<div class="form-group">
<label class="inputLabel" for="customers_referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral" class="form-control"'); ?>
</div>
><?php } ?>
</div>
Looks like you moved a lot of the </fieldset>s around, mostly to move them up to just after the </legend> - not sure why you did that as it means the <fieldset> doesn't contain any fields, which defeats its purpose).
Also looks like the recaptch is inside <div class="newsletter_block"> - again not sure if you meant it to be.
I'm amazed that removing an extra </fieldset> would cause the page to crash - malformed html rarely crashes pages, it's usually bad php that does that.
Regards
David
You could also try replacing your tpl_modules_create_account_default.php with the on from the default template and adding the recaptcha line into that. It will mess up your design, but you'll be able to quickly test if it solves the problem.
Try removing line 187 from the file you attached - the line that just says </fieldset> -
The position you placed thein your pasted code a couple of comments ago looks correct.Code:<?php echo recaptcha_get_html(); ?>
Regards
If I remove line 187, wont that break the beginning statement on 185?
185 <fieldset>
186 <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
187 </fieldset>
Bookmarks