Title: Mixed content
Last modified: July 27, 2026

---

# Mixed content

 *  Resolved [socialtap](https://wordpress.org/support/users/socialtap/)
 * (@socialtap)
 * [2 weeks, 1 day ago](https://wordpress.org/support/topic/mixed-content-51/)
 * Hi guys, was getting a mixed content bug due to line 319 of includes>class-pys.
   php
 * The issue was only causing problems on iOS Chrome and Safari on a page that was
   loading our Voiceflow Widget: [https://www.seahavennoosa.com.au/assistant/](https://www.seahavennoosa.com.au/assistant/)
 * Here is the fix – changed this:
 * $protocol = isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] === ‘on’ ? ‘[https://&#8217](https://&#8217);:‘
   [http://&#8217](http://&#8217);;
   $currentUrl = $protocol . ($_SERVER[‘HTTP_HOST’]??
   parse_url(get_site_url(), PHP_URL_HOST)) . ($_SERVER[‘REQUEST_URI’] ?? ”);
 * To this:
 * $isSecure = ( isset( $_SERVER[‘HTTPS’] ) && strtolower( $_SERVER[‘HTTPS’] ) =
   == ‘on’ )
   || ( isset( $_SERVER[‘HTTP_X_FORWARDED_PROTO’] ) && strtolower( $_SERVER[‘
   HTTP_X_FORWARDED_PROTO’] ) === ‘https’ )|| is_ssl();$protocol = $isSecure ? ‘
   [https://&#8217](https://&#8217); : ‘[http://&#8217](http://&#8217);;$currentUrl
   = $protocol . ( $_SERVER[‘HTTP_HOST’] ?? parse_url( get_site_url(), PHP_URL_HOST)).(
   $_SERVER[‘REQUEST_URI’] ?? ” );
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmixed-content-51%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [ehamati](https://wordpress.org/support/users/ehamati/)
 * (@ehamati)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/mixed-content-51/#post-18979234)
 * Hello [@socialtap](https://wordpress.org/support/users/socialtap/),
 * Thank you for reaching out. I’ve asked the developer to investigate this issue.
   I’ll keep you updated.
 *  [ehamati](https://wordpress.org/support/users/ehamati/)
 * (@ehamati)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/mixed-content-51/#post-18980728)
 * [@socialtap](https://wordpress.org/support/users/socialtap/) we’ve resolved the
   issue and released an update. Please update the plugin on your end and let me
   know if everything looks fine.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmixed-content-51%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/pixelyoursite/assets/icon-256x256.jpg?rev=3178123)
 * [PixelYourSite - Your smart PIXEL (TAG) & API Manager](https://wordpress.org/plugins/pixelyoursite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixelyoursite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixelyoursite/)
 * [Active Topics](https://wordpress.org/support/plugin/pixelyoursite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixelyoursite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixelyoursite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ehamati](https://wordpress.org/support/users/ehamati/)
 * Last activity: [1 week, 3 days ago](https://wordpress.org/support/topic/mixed-content-51/#post-18980728)
 * Status: resolved