{"id":3320,"date":"2014-06-24T11:37:40","date_gmt":"2014-06-24T11:37:40","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/06\/24\/blocked-loading-mixed-active-content\/"},"modified":"2020-12-29T11:46:09","modified_gmt":"2020-12-29T16:46:09","slug":"blocked-loading-mixed-active-content","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/","title":{"rendered":"reCAPTCHA Error &#8211; Blocked Loading Mixed Active Content"},"content":{"rendered":"\n<p>This article is intended for developers using <strong>reCAPTCHA Library for PHP<\/strong> (<em><a href=\"https:\/\/code.google.com\/archive\/p\/recaptcha\/downloads\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\"  >recaptcha-php-1.11<\/a><\/em>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>When I access my website over SSL, Google Recaptcha doesn&#8217;t load.<\/p>\n\n\n\n<p>When I <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/how-to-troubleshoot-javascript-using-google-chrome-developer-tools\/\"  >access the javascript error console<\/a>, I see the following error:<\/p>\n\n\n\n<p class=\"alert alert-danger\">Blocked loading mixed active content<br>&#8220;https:\/\/www.google.com\/recaptcha\/api\/challenge?k=KEY-GOES-HERE&#8221; [Learn More]\n\n\n\n<h3 class=\"wp-block-heading\">What causes this problem?<\/h3>\n\n\n\n<p>You will see the <em>Blocked loading mixed active content<\/em> error when accessing your website over <span style=\"font-weight: bold; color: green;\">https (ssl)<\/span> but calling Google&#8217;s recaptcha using <span style=\"font-weight: bold; color: red;\">http (no ssl)<\/span>. Your browser is blocking the insecure content which is trying to load over <em>http (no ssl)<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p>The solution to this problem is to use SSL when calling the <code>recaptcha_get_html<\/code> function to create your recaptcha form.<\/p>\n\n\n\n<p>If you look at around line 106 of recaptcha-php-1.11\/recaptchalib.php, you&#8217;ll see the function has an <span style=\"font-weight: bold; color: green;\">optional ssl parameter<\/span>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> function recaptcha_get_html ($pubkey, $error = null, <span style=\"font-weight: bold; color: green;\">$use_ssl = false<\/span>)<\/pre>\n\n\n\n<p>Changing your code from the <span style=\"font-weight: bold; color: red;\">red example<\/span> below to the <span style=\"font-weight: bold; color: green;\">green example<\/span> below should fix this error for you:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> $recaptcha = <span style=\"font-weight: bold; color: red;\">recaptcha_get_html($publickey);<\/span> $recaptcha = <span style=\"font-weight: bold; color: green;\">recaptcha_get_html($publickey,'',true);<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This article is intended for developers using reCAPTCHA Library for PHP (recaptcha-php-1.11). Problem When I access my website over SSL, Google Recaptcha doesn&#8217;t load. When I access the javascript error console, I see the following error: Blocked loading mixed active content&#8220;https:\/\/www.google.com\/recaptcha\/api\/challenge?k=KEY-GOES-HERE&#8221; [Learn More] What causes this problem? You will see the Blocked loading mixed active<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4322],"tags":[],"class_list":["post-3320","post","type-post","status-publish","format-standard","hentry","category-google-tools"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>When I access my website over SSL, Google Recaptcha doesn&#039;t load.<\/title>\n<meta name=\"description\" content=\"Troubleshoot &quot;When I access my website over SSL, Google Recaptcha doesn&#039;t load.&quot; This article is intended for developers using the reCaptcha library for PHP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When I access my website over SSL, Google Recaptcha doesn&#039;t load.\" \/>\n<meta property=\"og:description\" content=\"Troubleshoot &quot;When I access my website over SSL, Google Recaptcha doesn&#039;t load.&quot; This article is intended for developers using the reCaptcha library for PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-24T11:37:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-29T16:46:09+00:00\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"reCAPTCHA Error &#8211; Blocked Loading Mixed Active Content\",\"datePublished\":\"2014-06-24T11:37:40+00:00\",\"dateModified\":\"2020-12-29T16:46:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\"},\"wordCount\":165,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Google Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\",\"name\":\"When I access my website over SSL, Google Recaptcha doesn't load.\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2014-06-24T11:37:40+00:00\",\"dateModified\":\"2020-12-29T16:46:09+00:00\",\"description\":\"Troubleshoot \\\"When I access my website over SSL, Google Recaptcha doesn't load.\\\" This article is intended for developers using the reCaptcha library for PHP.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"reCAPTCHA Error &#8211; Blocked Loading Mixed Active Content\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When I access my website over SSL, Google Recaptcha doesn't load.","description":"Troubleshoot \"When I access my website over SSL, Google Recaptcha doesn't load.\" This article is intended for developers using the reCaptcha library for PHP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/","og_locale":"en_US","og_type":"article","og_title":"When I access my website over SSL, Google Recaptcha doesn't load.","og_description":"Troubleshoot \"When I access my website over SSL, Google Recaptcha doesn't load.\" This article is intended for developers using the reCaptcha library for PHP.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-06-24T11:37:40+00:00","article_modified_time":"2020-12-29T16:46:09+00:00","author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"reCAPTCHA Error &#8211; Blocked Loading Mixed Active Content","datePublished":"2014-06-24T11:37:40+00:00","dateModified":"2020-12-29T16:46:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/"},"wordCount":165,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Google Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/","name":"When I access my website over SSL, Google Recaptcha doesn't load.","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2014-06-24T11:37:40+00:00","dateModified":"2020-12-29T16:46:09+00:00","description":"Troubleshoot \"When I access my website over SSL, Google Recaptcha doesn't load.\" This article is intended for developers using the reCaptcha library for PHP.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/blocked-loading-mixed-active-content\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"reCAPTCHA Error &#8211; Blocked Loading Mixed Active Content"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4322,"name":"Google Tools","slug":"google-tools","link":"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3320"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3320\/revisions"}],"predecessor-version":[{"id":66520,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3320\/revisions\/66520"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}