Upgraded to https

This topic contains 13 replies, has 4 voices, and was last updated by  Paolo 8 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #140827

    tabiLabs Inc
    Full Member
    Post count: 83

    Hello,

    Recently my provider helped set clients up with https. I heard this was good for SEO so I made the switch.

    Today I went to add a new location to Geodirectory and had an issue:

    • When selecting/changing Region, City does not update to reflect the change.

    In debug mode there were some errors including:

    Mixed Content: The page at 'https://www.accessible-japan.com/wp-admin/post-new.php?post_type=gd_place' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?language=en&libraries=places'. This request has been blocked; the content must be served over HTTPS.

    (This only happens on GD pages.)

    I have not added a new entry to GD for a while, so I cannot say for this is it, but I fiddled with deactivating a bunch of other plugins and there was no change.

    See attached screenshot.

    Thank you,
    Josh

    #140915

    Guust
    Moderator
    Post count: 29970
    #140933

    tabiLabs Inc
    Full Member
    Post count: 83

    Hi Guust,

    So, there are “replace” and “with” fields… should they be?

    replace: “http://www.accessible-japan.com”
    with: “https://www.accessible-japan.com”
    ?

    or is it fine to just do:

    replace: “http”
    with: “https”
    ?

    I know this is out of your job description, but a bit more info would be awesome.

    Thanks so much!

    Best,
    Josh

    #141076

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    replace: “http://www.accessible-japan.com”
    with: “https://www.accessible-japan.com”

    is best.

    Otherwise if you have any external URL in your DB with http that is not setup to work with https, would be flagged as broken URL.

    Thanks

    #141392

    tabiLabs Inc
    Full Member
    Post count: 83

    Hi Paolo,

    I referred to the following that Guust sent:
    https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs

    It says to just do the search/replace on the wp_posts table. I did this, but no change. Should it be run on all WPGD tables as well? (All tables?)

    (I used Better Search Replace plugin)

    Sorry, but I really do appreciate your help – thank’s to your plugin, lots more people with disabilities are getting to enjoy Japan!

    Best,
    Josh

    #141497

    tabiLabs Inc
    Full Member
    Post count: 83

    Hi again,

    I changed line 259 of admin_functions.php from

    wp_enqueue_script('geodirectory-googlemap-script', '//maps.google.com/maps/api/js?' . $map_lang . $map_extra, '', NULL);

    to

    wp_enqueue_script('geodirectory-googlemap-script', 'https://maps.google.com/maps/api/js?' . $map_lang . $map_extra, '', NULL);

    and expected behavior returned.

    What about a permanent solution? The database change didn’t seem to work…

    Best,
    Josh

    #141883

    Paolo
    Site Admin
    Post count: 31206

    You shouldn’t be doing that, the code is correct, I guess you didn’t change URL from http to https in settings > general, both for WordPress Address (URL) and Site Address (URL).

    Thanks

    #142183

    tabiLabs Inc
    Full Member
    Post count: 83

    Hi Paolo,

    Thanks for your support.

    I know it is not a good fix, and the code is correct, but I needed to enter some info.

    General settings were set correctly I believe (see screenshot).

    Should I give you access?

    Sorry, but thank you so much.

    Best,
    Josh

    #142503

    Paolo
    Site Admin
    Post count: 31206

    Yes please, let us know,

    Thanks

    #170928

    tabiLabs Inc
    Full Member
    Post count: 83
    This reply has been marked as private.
    #171136

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve flagged this for the developers, it seems to be the call to font-awesome that remain http.

    We’ll let you know asap.

    Thanks

    #171256

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Josh,

    We call those scripts via agnostic protocol, meaning we use //site.com so the browser detects and sues the protocol used but something on your site is forcing it to be output as http, i am not sure what this is, it might be a plugin or theme.
    You can see here we do it the right way:
    http://wptavern.com/wordpress-tip-how-to-load-google-fonts-over-ssl-and-non-ssl
    https://codex.wordpress.org/Function_Reference/wp_register_style

    This is not a GD problem but you should be able to find the cause by disabling plugins one by one and checking or it might be in theme code.

    Let us know how you get on.

    Thanks,

    Stiofan

    #171668

    tabiLabs Inc
    Full Member
    Post count: 83

    Thanks for your help. Looks to be my theme…

    #171671

    Paolo
    Site Admin
    Post count: 31206

    Thanks for letting us know 🙂

Viewing 14 posts - 1 through 14 (of 14 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount