Jump to content

new recaptcha not working


Robo

Recommended Posts

after my problems with the review pages.. my recaptcha also works now , fortunatly , but the New recapcha does not work, i only get a line of text verify you are human .google code is in have done this several times

 

Any ideas ?

 

Grts

Rob

 

Link to comment
Share on other sites

a liitle short in time but here are the screen shots  new recaptcha not working , recaptcha working, 

i hope there is a work around .. anyway, not the same thread but sinc teh new version 6 i do not have the spam reviews anymore , and that is positive.  

https://forums.cubecart.com/uploads/monthly_2015_04/Schermopname_(1).png.c3d0921ffe6fc13224979a1b9dded9c4.png

https://forums.cubecart.com/uploads/monthly_2015_04/Schermopname_(2).png.4a4758dce31d319a7781dbbe4193c667.png

https://forums.cubecart.com/uploads/monthly_2015_04/Schermopname_(1).png.c3d0921ffe6fc13224979a1b9dded9c4.png

https://forums.cubecart.com/uploads/monthly_2015_04/Schermopname_(2).png.4a4758dce31d319a7781dbbe4193c667.png

Edited by Robo
Link to comment
Share on other sites

It will only work with the Foundation skin unless the existing skin is updated as necessary.

Al

This was exactly the type of thing I was thinking about when requesting a list of changes that would need to be made to V5 skins in order for them to work with V6. V5 skins were supposed to be 100% compatible with V6 but things like this mean that they arent and without having a list and a guide for what changes need to be done it is going to mean a lot of people running V5 skins are going to have problems and may not go to V6

Ian

Link to comment
Share on other sites

  • 1 month later...

Robo, Did Al's advice work for you? I have the same problem and it didn't work for me. I cannot get the new reCaptcha to work in Chrome with the Crosshatch skin.

CubeCart Version  6.0.4
PHP Version  5.4.40
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Server Software Apache

  

Link to comment
Share on other sites

  • 2 weeks later...

sorry for the late reply guys had some other issues, i have the recaptcha and that is working i did not go further with the new recaptcha , time and other more importand issues unfortunatly,

Recapchta works ok 

Link to comment
Share on other sites

I had the same issue with the recaptcha, I am running the store in https. The issue I had was content.captcha.php in the foundation/templates was calling the recaptcha via http requests which were being rejected as insecure. Simply changed the http to https on line 45 and 47 of content.captcha.php and I was good.

Link to comment
Share on other sites

I had the same issue with the recaptcha, I am running the store in https. The issue I had was content.captcha.php in the foundation/templates was calling the recaptcha via http requests which were being rejected as insecure. Simply changed the http to https on line 45 and 47 of content.captcha.php and I was good.

I have already opened a github issue for this as this should be able to cope with http or https pages

Ian

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Recently I upgraded a customers CC5 store to CC6, using the blueprint skin.
After doing the upgrade, old recaptcha would not work as part of the checkout registration.
As part of fixing that, I also implemented new recaptcha.
Below is how I did that for that specific store.

Step 1
Backup the 'main.php' and 'content.recaptcha.php' template files for the skin you are using.

Step 2
Copy the 'content.recaptcha.php' and 'content.recaptcha.head.php' templates from the foundation skin to your skin.

Step 3
Edit your skins 'main.php' template file.
Find This:

</head>

Above That Add This:

{include file='templates/content.recaptcha.head.php'}


Step 4
Edit your skins 'content.recaptcha.head.php' template file.
Replace the content with this:

{if $RECAPTCHA==='2'}
<script type="text/javascript">
	var onloadCallback = function() {
		grecaptcha.render('new_recaptcha_element', {
			'sitekey' : '{$CONFIG.recaptcha_public_key}'
        });
	};
</script>
{/if}


Step 5
Edit your skins 'content.recaptcha.php' template file.
Find This:

      {if $RECAPTCHA==='2'}
      {if empty($CONFIG.recaptcha_public_key) || empty($CONFIG.recaptcha_secret_key)}
      <p>{$LANG.form.recaptcha_key_not_set}</p>
      {else}
      <div class="g-recaptcha" data-sitekey="{$CONFIG.recaptcha_public_key}"></div>
      {/if}
      {else}

Replace That With This:

	{if $RECAPTCHA==='2'}
		{if empty($CONFIG.recaptcha_public_key) || empty($CONFIG.recaptcha_secret_key)}
			<p>{$LANG.form.recaptcha_key_not_set}</p>
		{else}
			<div id="recaptcha" class="clearfix">
				<strong>{$LANG.form.verify_human}</strong>
				<div id="new_recaptcha_element" class="g-recaptcha" data-sitekey="{$CONFIG.recaptcha_public_key}"></div>
			</div>
			<script src='//www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit' async defer></script>
		{/if}
	{else}


As noted above, these steps were done for the blueprint skin but thy should work for other CC5 skins too.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...