breaks ssl http://ogp.me

Hi,

First: The plugin is excellent!

Only have thi problem:

The page user and pages with login, the plugin add 2 lines without https

"html class="" xmlns="https://www.w3.org/1999/xhtml" lang="pt-BR" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#""

http://rdf.data-vocabulary.org

see here where break ssl
https://gdsolutions.com.br/forum/pergunta/sobre-licenciamento-microsoft

if disable the plugin return to normal the ssl

i believe this problem is with facebook profile import only

i find this solution but not solve to me https://support.oneall.com/forums/discussion/42/breaking-https/p1

thanks

Best Answer

  • Fred_PinelFred_PinelMember
    Answer ✓
    Hi Dorian,

    Yes, this is something we will fix in the OneAll API (to use https instead of http for twimg).

    In the meantime, you can fix it on your wordpress installation.
    1. open the file plugins/oa-social-login/includes/user_interface.php:
    2. locate the lines (around line 626):
    //Avatar found?
    if ($user_picture !== false AND strlen (trim ($user_picture)) > 0) {
    return '' . oa_social_login_esc_attr ($alt) . '';
    }
    3. Insert the following code immediately before the lines of step 2:
    if (strpos($user_picture, 'http:') !== false) {
    $user_picture = str_replace('http:', 'https:', $user_picture);
    }
    //Avatar found?
    ...

    Regards.

Answers

  • i find the problem and only happend with twitter profile, if one user answer with twitter profile, in this question break the ssl.

    but not know how to fix
  • Hello,

    I am not sure this problem is due to the OneAll plugin.
    The http links are from facebook (open graph).

    Regards.
  • Thanks Frederic,

    you are partly right, i disabled the option open graph from avada theme(not have more this lines), but still breaking ssl and now is about profile photo from only twitter, if import from facebook or linkedin not have problem.

    i use sabai disquss to Q&A and the line become from them but i think when import are the problem is in this process

    the lines are:
    http://pbs.twimg.com/profile_images/3312570947/2730e579a8f2ef81ada8039fba1db00f.png

    Funny that this only occurs when you import twitter . There is a priority to keep the login via twitter for my project. Outside still really not sure if the problem is with this plugin. But if we can resolve would be great
  • Thanks Frederic i try before this solution but not fix because i put after and not before "lol" now are ok.

    Great support!
  • Hi Dorian,

    Just to let you know that we've now fixed this. You could remove the workaround (code).

    Regards.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.