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 TicketTagged: encription, https, SLL
-
AuthorPosts
-
March 16, 2016 at 7:32 am #140827
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,
JoshMarch 16, 2016 at 11:12 am #140915You need to change all your URLs in the database, with a tool like this:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/See also https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs
March 16, 2016 at 12:58 pm #140933Hi 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,
JoshMarch 16, 2016 at 4:34 pm #141076Hi,
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
March 17, 2016 at 12:48 am #141392Hi Paolo,
I referred to the following that Guust sent:
https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLsIt 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,
JoshMarch 17, 2016 at 2:20 am #141497Hi 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,
JoshMarch 17, 2016 at 3:37 pm #141883You 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
March 18, 2016 at 12:13 am #142183Hi 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,
JoshMarch 18, 2016 at 3:23 pm #142503Yes please, let us know,
Thanks
April 26, 2016 at 2:53 am #170928This reply has been marked as private.April 26, 2016 at 3:31 pm #171136Hi,
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
April 26, 2016 at 5:00 pm #171256Hi 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_styleThis 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
April 27, 2016 at 12:36 am #171668Thanks for your help. Looks to be my theme…
April 27, 2016 at 1:29 am #171671Thanks for letting us know 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket