Your Time:
Our Time:
← Back to discussions

SSL error because of Google-Fonts

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 4 voices, and was last updated 9 years, 1 month ago by Wajid Khan.

  • 2016-01-25 at 10:57 pm
    Support Expired
    #12480
    mellowhost
    Participant
    • Topics: 1
    • Replies: 4
    • Total posts: 5
    • Post count: 10
    
    Mixed Content: The page at 'https://mellowhost.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=PT+Sans+Narrow&ver=4.4.1'. This content should also be served over HTTPS.
    Mixed Content: The page at 'https://mellowhost.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans+Condensed%3A300&ver=4.4.1'. This content should also be served over HTTPS.
    Mixed Content: The page at 'https://mellowhost.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700'. This content should also be served over HTTPS.
    

    there are 103 errors similar to these deleted them for better understanding

    Tried changing code in framework/common/atp_googlefont.php

    $out .= '<link href="'.$protocol.'fonts.googleapis.com/css?family=' . $fonts .'" rel="stylesheet" type="text/css" />'."\n\n";

    to

    $out .= '<link href="//fonts.googleapis.com/css?family=' . $fonts .'" rel="stylesheet" type="text/css" />'."\n\n";

    according to http://wptavern.com/wordpress-tip-how-to-load-google-fonts-over-ssl-and-non-ssl

    it helped me to change only one line of google font in my pages.

    <link rel='stylesheet' id='css3_grid_font_yanone-css' href='//fonts.googleapis.com/css?family=Yanone+Kaffeesatz&ver=4.4.1' type='text/css' media='all' />

    still http lines are

    <link rel='stylesheet' id='css3_vertical_table_font_sans_narrow-css'  href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&ver=4.4.1' type='text/css' media='all' />
    <link rel='stylesheet' id='css3_vertical_table_font_sans_condensed-css'  href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed%3A300&ver=4.4.1' type='text/css' media='all' />

    Please let me how to change them.

    • This topic was modified 10 years, 7 months ago by mellowhost.
    • This topic was modified 10 years, 7 months ago by mellowhost.
    2016-01-26 at 11:11 am
    #12488
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    You can remove http from atp_googlefont.php, script.js and general.php from shortcode folder. Or if you can provide us WP Logins to your website with URL then we can do it for you. Make sure you set the post as private reply so that only admin can see your wp-logins.

    2016-01-26 at 2:35 pm
    Support Expired
    #12498
    mellowhost
    Participant
    • Topics: 1
    • Replies: 4
    • Total posts: 5
    • Post count: 10

    I believe i have done necessary changes to the following files atp_googlefont.php, script.js and general.php. for your understanding i am also uploading a copy of the modified files. ssl errors decreased but still there are 15 more errors related to protocol that means it is coded somewhere else. I am attaching the error log file with this reply named mellowhost.com-1453798966671.txt

    • This reply was modified 10 years, 7 months ago by mellowhost.
    2016-01-26 at 6:11 pm
    #12502
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Topic is resolved via Skype Communication. But if you want to update this topic please reply here.

    2017-08-03 at 10:26 pm
    Support Expired
    #21380
    javierrebelde
    Participant
    • Topics: 3
    • Replies: 7
    • Total posts: 10
    • Post count: 12

    hello

    ok I did the changes to the following files
    wp-content/themes/hostmev2/framework/common/atp_googlefont.php (http to https)
    /wp-content/themes/hostmev2/framework/admin/js/script.js (http to https)
    /wp-content/themes/hostmev2/framework/shortcode/general.php (http to https)

    That solved the problem, I just wish you guys add this to the next update because if not i will be overwriting the changes and I will not remember what i did.

    that is why I am writing this just in case.

    2017-08-07 at 12:37 pm
    #21398
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    @javierrebelde

    Contact me via Skype. Our Skype ID: support-aws

You must be logged in to reply to this topic.