Support » Plugin: WP Facebook Open Graph protocol » [Plugin: WP Facebook Open Graph protocol] Forced HTTPS in OG:URL

Viewing 9 replies - 1 through 9 (of 9 total)
  • UPDATE: So I figured out what was generating the S on the HTTP. It was this line in the plugin: echo “\t<meta property=’og:url’ content=’http” . (isset($_SERVER[‘HTTPS’])?’s’:”) . “://”.$_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’].”‘ />\n”;

    I removed the S and now it doesn’t generate the https. I’m not a PHP developer and I don’t really know exactly what the line was doing so I hope I didn’t mess something up and could someone explain it to me?

    Plugin Author Chuck Reynolds

    (@ryno267)

    no reason for it to be doing that at all. It uses what your site is set to be. I see you don’t have it installed / running now so I can’t see but maybe another plugin is making pages use ssl ?

    I do have it installed and running lol. I haven’t changed anything since I removed that S in the plugin. If it is what my server is set to, how do I change that? Is it something that I have to do through my hosting provider or WordPress?

    Plugin Author Chuck Reynolds

    (@ryno267)

    well the reason i say that is because the pre-plugin and post-plugin comment lines aren’t showing so can’t be sure it’s my plugin running.

    The plugin calls the domain from php so… something somewhere is configured with an https… the plugin just calls what php spits out. So it’s sniffing that there’s an https call and changing the meta value according to that. It just spits out what it’s given.

    OK then. Now I just have one more question. Will my change (removing the s from $_SERVER[‘HTTPS’] making $_SERVER[‘HTTP’]) mess up anything in my installation or the plugin?

    Plugin Author Chuck Reynolds

    (@ryno267)

    technically no? but editing any plugin leaves you open for issues and overwrites when the plugin updates. And I’m pushing a big update either tonight or very soon. FYI 🙂

    OK that’s fine. I’ll have to track down that rouge HTTPS on my server. Any tools available to do something like that you know of?

    Plugin Author Chuck Reynolds

    (@ryno267)

    idk man i’m like the worst server IT guy evar… my damn sendmail isn’t working and I can’t even figure that shit out lol. I just know WP

    LOL OK then. Thanks anyway.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP Facebook Open Graph protocol] Forced HTTPS in OG:URL’ is closed to new replies.