• Resolved dk253

    (@dk253)


    Howdy,

    Your plugin seemed to work for everything but woocommerce product images. I had to write a jquery script to catch the added issues. You can substitute your ip for x.x.x.x.

    `<script type=”text/javascript”>
    jQuery(document).ready(function($) {
    $(‘[src*=”x.x.x.x”]’).each(function() {
    var src = $(this).attr(‘src’);
    var newSrc = src.replace(“x.x.x.x”,window.location.host);
    $(this).attr(‘src’, newSrc);
    });

    $(‘[href*=”x.x.x.x”]’).each(function() {
    var h = $(this).attr(‘href’);
    var newH = h.replace(“x.x.x.x”,window.location.host);
    $(this).attr(‘href’, newH);
    });

    $(‘[srcset*=”x.x.x.x”]’).each(function() {
    var src = $(this).attr(‘srcset’);
    var newSrc = src.replace(/x\.x\.x\.x/gi,window.location.host);
    $(this).attr(‘srcset’, newSrc);
    });
    });
    </script>

    I’m not sure if this helps or whether I just missed something. But this is working for me.

    https://wordpress.org/plugins/really-simple-ssl/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi, Thanks for the feedback.

    I’ve just tested it with a woocommerce, but I can’t reproduce. Is it possible the mixed content fixer doesn’t work on your shop page (or on all pages)? You can check this by looking in the source for the really simple ssl comment. It is possible another plugin conflicts with the mixed content fixer.

    Thread Starter dk253

    (@dk253)

    Howdy,

    It’s there… <!– Really Simple SSL mixed content fixer active –>

    I am running multisite and I only have a cert that is good for one of my domains.

    D

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Could you post an example of the html code where the urls are not fixed, so I can check what happens?

    Thread Starter dk253

    (@dk253)

    I am happy to do that. Here’s where it sits.

    • The site is semi live. But no visitors yet
    • pixie.digital
    • If I remove my javascript, chrome works, safari, firefox and mobile do not
    • If I keep my javascript, chrome, safari, and firefox all work, but mobile still breaks
    • I will remove my javascript now so you can reproduce
    • The plugin is only enabled for the single site in a multisite
    • I dont know what will happen to the sites with no cert if I enable it sitewide

    Hope this helps. Let me know when I should make my javascript active again.

    Thanks!!

    Thread Starter dk253

    (@dk253)

    Actually, with my script mobile works. I had to reinstall my script. Too many complaints! Go figure… site is brand new.
    I’m going to try to get you screen shots and source.

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    The setup with the ip numbers would seem problematic as you don’t have an ssl certificate for an ip number. I can’t load the images with the ipnumber on ssl.

    So to get your site working, I think you’ll have to move those images to the domain.

    The plugin should then be able to fix any insecure links.

    Thread Starter dk253

    (@dk253)

    2 questions:

    1) how would I get you screenshots and web page source?

    2) how do you get a cert for an ip address? My provider says it needs a domain.

    Happy to help if I can.

    Thread Starter dk253

    (@dk253)

    ooops… a third question… how would I “move those images to the domain”?

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    You can mail me, rogier at rogierlankhorst.com.
    You can’t get an SSL cert for an ip, that’s the problem.

    I don’t know where your images are, but you can always download them and upload in WordPress. The domain will then match.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Additional help for woocommerce products’ is closed to new replies.