Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same issue. The plugin seems to not respect the URL that was configured in wordpress (which includes https) but instead it only uses http.

    I worked around it by removing the og:url so FB uses the current url, which is OK but not the the proper way …

    Unfortunatelly I dont see a clear error in the code. Line 256:

    $fb_url=((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];  //Not really canonical but will work for now

    In my wp-config I say

    // https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings
    define('FORCE_SSL_ADMIN', true);
    
    // http://ww.wp.xz.cn/support/topic/force-ssl-admin-has-a-redirect-loop?replies=4
    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
      $_SERVER['HTTPS']='on';

    So the code by the plugin should be “on”, so it should be https =(.

    Thread Starter davide101

    (@davide101)

    Hi Tobias, I believe I’m having the opposite issue (at least when I forked it 6 months ago). The plugin is respecting my website’s use of https:// whereas I want it to use http:// instead.

    I found the problem for my issue:

    I run a wordpress multisite and switched to httpS a few month ago. Via the network administration I can change some of the urls like the wp_options.home to https, but not the wp_options.site_url or wp_options.fileupload_url (this one might be unused/depricated anyways).

    I changed all those URLs inside the DB directly (to httpS). Afterwards the plugin worked correctly.

    Tobias

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

The topic ‘Feature Request: Option to use https vs http in og:url’ is closed to new replies.