• Hello.
    I had AAM on my Website on a test Server, everything was fine.
    I then placed it on my test Server, and i got 2 error:

    Mixed Content: The page at ‘https://my-website/wp-admin/admin.php?page=aam’ was loaded over HTTPS, but requested an insecure stylesheet ‘https://my-website/wp-content/plugins/advanced-access-manager/media/css/vendor.min.css’. This request has been blocked; the content must be served over HTTPS.
    Same for avanced-access-manager/media/css/aam.css

    Don’t know why, this is the only plugin where i have these type of error.

    I checked where these css files where declared: in
    wp-content/plugins/advanced-access-manager/application/Backend/tmpl/metabox/iframe-header.php line 25 and line 26.
    So i replaced
    <link rel=”stylesheet” href=”<?php echo AAM_MEDIA; ?>/css/vendor.min.css” type=”text/css” media=”all” /> to
    <link rel=”stylesheet” href=”/wp-content/plugins/advanced-access-manager/media/css/vendor.min.css” type=”text/css” media=”all” />

    and <link rel=”stylesheet” href=”<?php echo AAM_MEDIA; ?>/css/aam.css” type=”text/css” media=”all” /> to
    <link rel=”stylesheet” href=”/wp-content/plugins/advanced-access-manager/media/css/aam.css” type=”text/css” media=”all” />
    It’s a temporary fix, this modification will be overriten when a new update will be done.
    Why do i only have these type of Mixed Content Problem only on this plugin ?

Viewing 1 replies (of 1 total)
  • Hi @goldgothe,

    I’m facing the same issue on one of my sites. I also put a temporary measure in. From what I can tell, AAM_MEDIA (which is defined in the aam.php in the plugin’s root directory) is using plugin_url() to return the location of the plugin, but when this is used, it’s returning http and not https.

    My temp fix update was to rewrite that definition with an absolute url, but same as you, it’s a temporary measure that needs to be fixed.

    This is where I previously replied.
    also here.

    @vasyltech any thoughts?
    Mike

    Mike

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Mixed Content’ is closed to new replies.