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()
-
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.– Himmat PaliwalSep 10, 2018 at 5:47
-
i can't see any such directory over in my website– Aadii MughalOct 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.– Himmat PaliwalOct 22, 2018 at 17:27
1 Answer
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