SSL https and stylesheet
This topic contains 4 replies, has 2 voices, and was last updated by Paolo 9 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 7, 2015 at 2:07 pm #62836
I have my site working fine with SSL via https however a GD style sheet is causing a mixed content problem on ALL pages(see below):
Mixed Content: The page at ‘https://www.commnet.ac.uk/mission-statement/’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://www.commnet.ac.uk/wp-content/plugins/geodir_buddypress/css/gdbuddypress-style.css?ver=1.0.7’. This request has been blocked; the content must be served over HTTPS.
How do I make sure this URL is prefixed with https? I have searched the database and codex and can’t seem to find where this is being generated to change it?
Another glitch relates to the Map and the Map bubble window – The URL being generated in geodir_bubble_dsec area is being generated with http and not https. However the URL’s being generated in the listing area geodir_entry_title correctly have https. You can see problem here: https://www.commnet.ac.uk/places/
Again can you point me in the right direction to correct this problem?Thanks in advance,
MarkDecember 7, 2015 at 7:45 pm #62868Hi,
in Settings >> General
Did you add https to the WordPress Address (URL) and Site Address (URL)?
See image attached.
That should be enough…
If you have, please provide admin credentials in a private reply and we will have a look.
Let us know,
Thanks
December 8, 2015 at 9:03 am #62911Our hosting company has been helping us with regards getting the SSL and https side of things working and this was achieved by amending the .htaccess file (adding a rewrite condition and rule) and wp-config file (switching https on).
The two fields that you mention in the WP dashboard (settings >> general) are locked and if you try to change them in the wp-config file via: define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’); changing to https:// then all pages throw a PHP error relating to geodirectory saying headers already sent.
RE: URL’s: As the site stands at the moment the GD listing page for example is generating the correct URL’s with https: prefix in the body. However the Map >> bubble window title is generating a URL with a http: prefix.
RE: Stylesheets – If you look at the source code generated (any page) you will see that most of the CSS links relating to the GD plugin are being correctly generated (see below).
<link rel=”stylesheet” id=”geodir-core-scss-css” href=”https://www.commnet.ac.uk/wp-content/plugins/geodirectory/geodirectory-assets/css/gd_core_frontend.css?ver=1.5.3″ type=”text/css” media=”all”>
<link rel=”stylesheet” id=”geodir-buddypress-style-css” href=”http://www.commnet.ac.uk/wp-content/plugins/geodir_buddypress/css/gdbuddypress-style.css?ver=1.0.7″ type=”text/css” media=”all”>
So as you can see the GD core style sheet has the correct prefix https: and it’s just the GD BuddyPress styleheet URL that is being incorrectly generated.
Both of these issues point towards it being a slight difference in the way these URL’s are being generated in the GD plugin codex.
Please advise and kind regards,
MarkDecember 8, 2015 at 9:56 am #62913We have managed to resolve this issue by removing the two statements that define the WordPress Address (URL) and Site Address (URL) in the wp-config file.
This has been resolved and can be closed now.
Thanks for your input.December 8, 2015 at 7:25 pm #62964You are welcome 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket