The wordpress file are not in https
LucaMiozzo opened this issue · 4 comments
When I'm trying to install wordpress I have many console errors:
Mixed Content: The page at 'https://www.domain.com/wp-admin/install.php?step=2' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.domain.com/wp-includes/css/buttons.min.css?ver=4.9.6'. This request has been blocked; the content must be served over HTTPS. install.php?step=2:9
Mixed Content: The page at 'https://www.domain.com/wp-admin/install.php?step=2' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.domain.com/wp-admin/css/install.min.css?ver=4.9.6'. This request has been blocked; the content must be served over HTTPS.
install.php?step=2:10
Mixed Content: The page at 'https://www.domain.com/wp-admin/install.php?step=2' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.domain.com/wp-includes/css/dashicons.min.css?ver=4.9.6'. This request has been blocked; the content must be served over HTTPS.
Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure script ''. This request has been blocked; the content must be served over HTTPS.
install.php?step=2:115 Uncaught ReferenceError: jQuery is not defined at install.php?step=2:115
(anonymous) @ install.php?step=2:115
Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS.
You are using an insecure plugin or theme, In fact, this has nothing to do with the container settings.
Please add a plugin to make all ssl, there are a few of them around, such as:
https://wordpress.org/plugins/really-simple-ssl/
or
Hi, thankU for your quick reply.
But the wordpress does not have any plugin, is new and wothout nothing.
@LucaMiozzo ritght... even though try out this plugins and you should be fine. Some how you are trying to load some non ssl links. Let me know if it worked.
Try to add
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
at the beginig wp-config.php