• Resolved elcondorito

    (@elcondorito)


    Hi there,

    I am setting up a local version of my prod environment.

    It’s not the first time, I sometimes have to “tweak” the CSS to reflect the new environment. But this time, I have another problem, and I don’t know what to do, after a couple of hours spent on this.

    <link rel='stylesheet' id='oceanwp-google-font-poppins-css' href='http:https://pm6.local/wp-content/cache/asset-cleanup/css/item/14d38a9a94231805fbfe0690c3f4ab5e-vc91fe0185a03d68eaeff92f19b52a44df883a8b9.css' media='all' />

    In a nutshell, “http:https:” is the culprit. Of course, it does not happen on the prod environment.

    Any idea what could have gone wrong and how to solve it ?

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    That’s weird.

    The URL in your code snippet is also optimized by Asset Cleanup, could you disable Asset Cleanup, to see if the same issue occurs with only OMGF enabled?

    Thanks,

    Daan

    Thread Starter elcondorito

    (@elcondorito)

    Hello Daan,

    Thank you for your quick reply.
    Yes, I have ACU set up, but so far it was not a problem (and still is not on the production server).

    Anyway I deactivated it, as requested.
    <link rel='stylesheet' id='oceanwp-google-font-poppins-css' href='https://pm6.local/wp-content/uploads/omgf/oceanwp-google-font-poppins/oceanwp-google-font-poppins.css?ver=1657466711' media='all' />

    Slightly better, but still a problem.
    Since my website is in https, it still creates a problem
    Chrome dev tools says :
    Mixed Content: The page at 'https://pm6.local/' was loaded over HTTPS, but requested an insecure stylesheet 'https://pm6.local/wp-content/uploads/omgf/oceanwp-google-font-poppins/oceanwp-google-font-poppins.css?ver=1657466711'. This request has been blocked; the content must be served over HTTPS.

    And yes, I have Really simple SSL plugin too.

    Actually I had both plugins since the inception of the website, and did not have any problem so far.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Okay, hm, let’s see: your settings in Settings > General > WordPress Address & Site Address. Do they both start with https://?

    Thread Starter elcondorito

    (@elcondorito)

    Thank you again for your reply.

    Actually I flushed the permalinks, reactivated the ACU plugin, and the address was now correct.

    Go figure…

    All I needed to do then, was to update the domain name in the oceanwp-google-font-poppins.css file, a process I am used to.

    SOLVED ! ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Awesome. Weird, though!

    Btw. are you a Pro user? OMGF Pro allows you to set a Relative URL using the Modify Source URL option. That’ll save you having to do that process all the time!

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Thanks for sharing the steps to resolve the issue, btw. I’ve gotten 2 other people experiencing the same issue and your solution fixed it for them as well. It’s in my documentation now ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘http:https… ??’ is closed to new replies.