Wordpress Plugin & SSL

Discussion in '[bd] API' started by KakersUK, Nov 17, 2014.

  1. KakersUK

    KakersUK New Member

    #1 , Nov 17, 2014
    Last edited: Nov 17, 2014
    So I've been using the plugin/add-ons for a while now and I'm really happy! Everything is working pretty nicely except for one minor cosmetic issue.

    The other day I decided to put everything behind SSL (for SEO rank and SPDY) so I've got NGINX as a reverse proxy to apache running on localhost and I've set $_SERVER['HTTPS'] = 'on'; in my wp-config.php and everything seems happy.

    But I'm getting mixed content warnings as when I have "Avatar from XenForo to WordPress enabled" it's loading the avatars in as http rather than https. Any idea?

    The website: https://www.etkcodex.com/
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    The avatar is cached in user table. It is only updated when the user access the site so it makes sense that the old http link is being used. Currently I can't think of anything to help you for now. Probably just disable the avatar option for a while and turn it back on when most of your user has visited WordPress (no worry, the avatar url is still being saved regardless of the option).
     
  3. KakersUK

    KakersUK New Member

    Figured it out in the end as the avatars weren't updating. Because I changed the site to SSL essentially a new URL... I had to delete the API client and re-add it, but I didn't realised I had to also remove my connected XenForo account and re-add that.

    Once I did this and accepted the permissions and it's all happy.

    EDIT: Might be worth having a change of URL section in the FAQ for the API? for simpletons like myself :)
     
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Actually you don't need to disconnect your accounts and connect again. When you login to XenForo and visit WordPress without a valid WordPress session, the plugin will pick up the XenForo session and perform a quick user sync. The avatar url is updated amongst other things during this process :)
     
Loading...