Open mariamghalleb opened 5 years ago
Hi, I just had this issue on my side, if you check your html source, you will see that your code is actually broken. This is a side effect of the html minify
Here is a patch that I had to apply, I hope this will help you:
--- a/view/frontend/templates/head.phtml
+++ b/view/frontend/templates/head.phtml
@@ -6,5 +6,5 @@
*/
?>
<?php if ($block->isEnabled()) : ?>
- <script type="text/javascript" src='//www.google.com/recaptcha/api.js?render=explicit&hl=<?php echo $block->getLocale() ?>' defer></script>
+ <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?render=explicit&hl=<?php echo $block->getLocale() ?>" defer></script>
<?php endif ?>
Html minify seems to remove everything after the "//" thinking that it's a PHP comment. Prefixed with "https:" this doesn't happen.
Hi, i'm on magento 2.2.4, php7
When I switched to production mode, Recaptcha started to not show up anymore, I found this exception in the system logs: