【问题标题】:Insecure stylesheet WordPress不安全的样式表 WordPress
【发布时间】:2023-04-03 09:17:01
【问题描述】:

我在使用 WordPress 时遇到问题,我在网站、wp-admin、主目录等处都遇到了这个错误。我找不到解决方法,因为我看不到它的有效 URL。错误看起来像这样,我在尝试在小部件区域 wp-admin 中编辑小部件时收到它:

Mixed Content: The page at 'https://somesite.com/wp-admin/widgets.php' was loaded over HTTPS, but requested an insecure stylesheet 'http://somesite.com/?ver=1.11.4'. This request has been blocked; the content must be served over HTTPS.

也许有人遇到过类似的问题,请帮忙!

【问题讨论】:

    标签: wordpress stylesheet


    【解决方案1】:

    每当具有 SSL 证书的网站(使用 HTTPS 的网站)尝试调用没有 HTTPS 的 URL 时,Google Chrome 都会生成该错误,在您的情况下,您在代码中的某处调用 URL“http://somesite.com/?ver=1.11.4”(可能在菜单或标题中)。

    有一个名为“SSL Insecure Content Fixer”的 Wordpress 插件可以帮助您解决这个问题,基本上该插件将所有字符串“http://somesite.com/...”替换为“https://somesite.com/...”。

    所以看看吧,我想它会对你有所帮助。

    【讨论】:

    • 试过“SSL Insecure Content Fixer”还是一样。
    • 你能找到“somesite.com/?ver=1.11.4”在哪里吗?可能会在 header.php 或 menu.php 中。
    • 发现问题,重定向出现问题。
    • @Sidas 你能给我们你的确切解决方案吗?你到底做了什么?
    • 下载插件SSL Insecure Content Fixer,它应该可以工作,否则您需要编辑header.php或footer.php并将http://更改为https://
    【解决方案2】:

    问题在于重定向。如果有人有类似的问题。尝试查看您的服务器和 htaccess 重定向。否则这不是你的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-02
      • 1970-01-01
      • 2016-11-30
      相关资源
      最近更新 更多