0

analytics.js:44 Mixed Content: The page at 'https://www.ringmastersports.co.uk/' was loaded over HTTPS, but requested an insecure image 'http://192.168.1.7/magento-amsport/magento2/pub/media/emthemes/themesettings/background/blank.gif'. This content should also be served over HTTPS. Kc @ analytics.js:44 jquery-migrate.js:21 JQMIGRATE: Logging is active (index):1 Mixed Content: The page at 'https://www.ringmastersports.co.uk/' was loaded over HTTPS, but requested an insecure image 'http://192.168.1.7/magento-amsport/magento2/pub/media/emthemes/themesettings/background/blank.gif'. This content should also be served over HTTPS. blank.gif:1 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT jquery.js:6631 Mixed Content: The page at 'https://www.ringmastersports.co.uk/' was loaded over HTTPS, but requested an insecure image 'http://192.168.1.7/magento-amsport/magento2/pub/media/emthemes/themesettings/background/blank.gif'. This content should also be served over HTTPS. computeStyleTests @ jquery.js:6631 jquery-migrate.js:41 JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack()

3
  • I can see the image paths are being called via http and other paths by https. You can update all paths to be called via https to rectify mixed content issue, specially 192.168.1.7/magento-amsport/magento2/pub/media/emthemes/… needs to be called via https path as per above log. Commented Sep 10, 2018 at 5:47
  • i can't see any such directory over in my website Commented Oct 20, 2018 at 6:36
  • As per the provided log, it seems like it is set as emtheme background image. Please check it carefully if you can find it. Commented Oct 22, 2018 at 17:27

1 Answer 1

0

try to paste this in your index.php

if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ) {
    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = 443;
}

or

if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}

got it here.

Happy Coding

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.