• Greetings,

    We have been using jetpack for a while now, and we wanted to offer our users a little more security and speed, so the blog that I manage has moved to cloudflare and we use SSL, we are having a little problem making all the content delivered through SSL.

    More exacly, we use photon and similar posts, now on Photon I manged to force it to deliver images through HTTPS with the help of this post https://wordpress.org/support/topic/enable-jetpack-photon-https?replies=9 , but we didn’t manage to solve the images delivered through similar posts.

    The images are delivered through your CDN, but after looking and searching, I didn’t find a solution to deliver images through HTTPS in similar posts.

    A temporary solution was to disable images, and let just the text be delivered, this way we don’t get mixed content, just a clean SSL.

    Waiting for a reply,

    Thank you!

    https://wordpress.org/plugins/jetpack/

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    That’s interesting. In my tests these images were served via HTTPS as well. Here is an example:
    https://jeremy.hu/jetpack-missing-images-related-posts/

    It would be interesting to know where Jetpack grabs the images it uses in Related Posts on your site. Here is where we look for images:

    1. We first look for a Featured Image. The image protocol consequently comes from WordPress itself here, and will be HTTPS if that’s what your site URL value is set to.
    2. If the post doesn’t have a Featured Image, we then look for slideshows, galleries, and images attached to the post. All these images are also delivered by WordPress directly.
    3. If we still don’t find any image, we’ll look for images in the post content. You’d consequently need to check the content of the posts to see if the image paths use HTTP or HTTPS.

    Could you check a few of your posts, and see if the behaviour of the Related Posts changes when you add a Featured Image, for example?

    Thread Starter Eduard Doloc

    (@rwky)

    Almost all posts have featured image set, I tried with setting them all via https with rewrite and with a little help from this plugin(after the rewrite of link didn’t work) – https://wordpress.org/plugins/wordpress-https/

    Result -> broke the apreciate in article from jetpack and comments through jetpack, but still no images delivered via https 🙁

    Now I’m forced to disable apreciate and use the above mentioned plugin so the commenting system work.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    That’s interesting, I use the same plugin on the site I mentioned above, and can use Related Posts and Jetpack Comments without any issues.

    What are you plugin settings, under the HTTPS menu in your dashboard? Could you try playing with these a bit and let me know what you find?

    Could you also let me know what your site URL and WordPress URL settings are, under Settings > General in your dashboard?

    Thanks!

    Thread Starter Eduard Doloc

    (@rwky)

    I managed to fix the apreciate and the comment (partially, you can’t reply, changed to disqus, because I can’t afford comment area to be unresponsive).

    So, tried once again, stripped https, uninstalled plugins (w3tc, cloudflare, jetpack)
    Installed and reconfigured jetpack, everything is fine, then I installed w3tc, everything is fine as well.
    Right after I deploy the site to cloud and force it to go through https, then is when it starts to go wierd :-\ (also configured main url with HTTPS)

    Disabled in cloudflare the JS compression features, in fact there is no compresions in html/ccs/js, same for w3tc.

    After doing all that, activated the wordpress https plugin and I can say I have the following problems:
    – images in related still load from http, not https (the only images loading from http, o.O)
    – jetpack comments are working, not fully, you can’t reply, the form will not show (solved that with moving to disqus)
    – apreciate working ^_^ (it was not, code compression form cloudflare).

    oh, site is -> http://blogpentrusuflet.ro (it’s forced to rediret through https from cloudflare and wordpress settings).

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    On our end, your site seems to be set to use HTTP as the WordPress address (siteurl).

    Could you let me know how your site is configured on your end?

    Thread Starter Eduard Doloc

    (@rwky)

    Greetings,

    install url: http://blogpentrusuflet.ro
    home url: https://blogpentrusuflet.ro

    Is it ok?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you change your install URL to https, and let me know if that changes anything?

    Thread Starter Eduard Doloc

    (@rwky)

    It crashes my website, since the SSL is through flexible SSL from cloudflare.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for giving it a try.

    I’ll set up CloudFlare and flexible SSL on one of my test sites and let you know what I find.

    Thread Starter Eduard Doloc

    (@rwky)

    OK, thank you for your time! ^_^

    Hi RwkY,

    The ClouFlare plugin for WordPress has an option called HTTPS protocol rewriting. Have you tried turning it on?

    Thread Starter Eduard Doloc

    (@rwky)

    Yes, it is turned on, if you read my initial post, you can see that hole website is HTTPS except similar posts delivered through WP CDN.

    Thread Starter Eduard Doloc

    (@rwky)

    OK, this is wierd, I moved another website in cloudflare, it has the same JetPack modules activated and I get no mixed content, everything is delivered through HTTPS.
    The 1st website, the one I linked in my previous comments, still delivered mixed on blog page, but on homepage does not, this one doesn’t anywhere I check.
    The only difference between the two websites is that one is owned by a writer, other is a community fan, also the blog that has the problems (writer) is using WORDPRESS HTTPS to force https rewrite, besides that, everything is fine, they are the same in configuration for HTTPS, w3tc(configured with cloudflare), cloudflare plugin, cloudflare flexible ssl plugin and jetpack 🙂

    Hope this information helps!

    Later Edit – the 2nd website did not need any custom configuration for photon to deliver images via https, it just does o.O

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    For the posts in question, if you visit the media item in the Media section of wp-admin and click Edit, what URL is being provided? e.g. https://cloudup.com/c9gm3Pwk3ZX

    Within the post themselves, what is the URL saved for the img?

    My hypothesis is that the image is being culled from Jetpack_Media_Summary which culls from Jetpack_Media_Summary which is pulling out a http link from the post content. Photon should be returning the image respecting the is_ssl check of the site and something in the above is not seeing is_ssl back.

    Jeremy is working on getting a duplicate setup running for some further tests and will circle back, likely next week.

    Cheers!

    Thread Starter Eduard Doloc

    (@rwky)

    I thought of that and updated the links in posts with HTTPS ones.
    Cleared cache, and reloaded the page in incognito, same thing, no difference.

    ps. changed the cloudflare flexible ssl plugin with wordpress https, had problems with login to dashboard because of that plugin.

Viewing 15 replies - 1 through 15 (of 25 total)

The topic ‘Similar posts – HTTPS/SSL?’ is closed to new replies.