我的live WordPress网站上出现了一个奇怪的错误。在管理员主页上,我收到了指向doctype的混合内容警告。如果我将整个网站和数据库复制到本地机器上,我将无法产生错误。它只出现在wp admin的主页上,并阻止其他事情发生-例如,当鼠标悬停在左侧导航的帖子或其他链接上时,我不会在鼠标悬停时获得子导航-但如果我右键单击,它们会出现。
警告似乎指向了自己:
Mixed Content: The page at \'https://domain.co.uk/wp-admin/index.php\' was loaded over HTTPS, but requested an insecure script \'http://domain.co.uk/\'. This request has been blocked; the content must be served over HTTPS
.
此错误在升级到WordPress 4.9后开始出现。