This topic has 22 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #96727
     polykrom
    Participant

    Hi ,

    I’m currently test my website over https and it seems i get insecure content because of srcset http generated by shorcodes .

    What can i do to avoid this and automatically have https links to these images ?

     

    thanks a lot

    #96738
     sharmstr
    Moderator

    Kleo doesnt use hardcoded src files. The most common issue with broken images after switching to https is server caching or not purging your cdn if you have one in place.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96741
     polykrom
    Participant

    Re,

    nops, i don’t tell that Kleo hardcode the src , but i have different images URLs in srcset that are not SSL … and the code is produced by KLEO shortcodes …

    #96742
     sharmstr
    Moderator

    What I’m saying when I said “hardcoded”… Kleo doesnt save hardcoded links. Even in its shortcodes. It uses media IDs and passes those IDs to wordpress functions that will correctly use https.

    I’ve switched many sites from http: to https:. I’ve helped many people here with your same issue. 99% of the issues were caused by some sort of server caching.

    If you look at the errors your home page is throwing, they are 404 errors, not mixed content errors. In other words, they cant be found via http or https because they dont exist.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96746
     polykrom
    Participant

    mmmhhh… i don’t think it’s cached related ,

    check this :

    I have the main image in https and the srcset in http …

    where does not come from ?

    Thanks a lot !

    #96747
     sharmstr
    Moderator

    Nothing is attached, so I cant understand what you’re referring to.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96748
     polykrom
    Participant

    Sorry 😉

    check this :

    COPY CODE
    
    <img src=« https://www.loop2buy.com/wp-content/uploads/2016/01/bar-180x180.gif" class="attachment-shop_thumbnail size-shop_thumbnail wp-post-image" alt="bar" srcset="http://www.loop2buy.com/wp-content/uploads/2016/01/bar-150x150.gif 150w, http://www.loop2buy.com/wp-content/uploads/2016/01/bar-180x180.gif 180w, http://www.loop2buy.com/wp-content/uploads/2016/01/bar-300x300.gif 300w" sizes="(max-width: 180px) 100vw, 180px" width="180" height="180">
    #96753
     sharmstr
    Moderator

    What shortcode is generating that?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96754
     polykrom
    Participant

    There are several ,

    The KLEO tabs Shortcode, The Woocommerce Shortcode and Woocommerce product in Card …

    Maybe other too…

    Do you see a solution ?

    Thanks 😉

    #96755
     sharmstr
    Moderator

    I think I see what’s going on now. Give me a second to figure it out.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96757
     polykrom
    Participant

    Ok 😉

    Thanks a lot ..

    You can check it on https://www.loops2buy.com

    regards

    #96758
     sharmstr
    Moderator

    I dont think it really has anything to do with shortcodes from what I can see. It appears to be isolated to the quick view of a product image. Would you say that’s correct? If not, then please link to an example on your site where this isnt the case.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96759
     sharmstr
    Moderator

    meaning.. quick view is the issue even within shortcodes… if that makes more sense.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96760
     polykrom
    Participant

    Re,

    It was the same on the homepage … i had to hardcode the https image links in order for it to work, but the shortcodes failed…

    And the problem is the same with Woocommerce widgets and shortcodes…

    So ??

    #96761
     sharmstr
    Moderator

    Can you give me admin access to your site?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96762
     polykrom
    Participant
    This reply has been set as private.
    #96765
     sharmstr
    Moderator

    I set that as private for you 🙂

    also, you keep putting an S in your url. lol

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96770
     sharmstr
    Moderator

    I think the issue is the force ssl plugin. Why are you using that instead of changing your urls to https in Settings > General?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96771
     sharmstr
    Moderator

    here is why I think that. the single image shortcode (which is a VC shortcode, not a kleo shortcode by the way) and many others uses wp functions to get your sites url and to probably set that srcset parameter. Since you still have your wp settings urls set to http and not https, they are producing http srcset parameters. Make sense?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96772
     polykrom
    Participant

    Mmmhhh…

    yes, it makes sense, i will try to set my root URL to https in the settings , maybe it could solve the issue

    thanks a lot for your help !!

    chusss

    François

    #96773
     sharmstr
    Moderator

    let me know how that goes. its nice to learn something new around here instead of answering the same old questions. LOL

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #96825
     polykrom
    Participant

    RE 🙂

    Woow, everything works nice now, had to change the WP SITE URL and WP HOME to https … was just that…

    https://www.loop2buy.com/

    thanks a lot for your great support !

    Cheers 😉

    François

    #96829
     sharmstr
    Moderator

    Awesome. Going to move this since it isnt a bug.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?