Wordpress混合内容错误

Ani*_*yed 3 php wordpress .htaccess

我在Multisite环境中有3个站点.我也为管理部分启用了SSL.但是我在管理员身上只有一个网站上出现了很多" 混合内容 "错误.结果,管理员中的许多脚本和样式表都被破坏了.

如果我的htaccess规则wp_config文件出现问题,那么其他网站也应该存在同样的问题.但其他2个站点正常工作.

我在所有三个站点上都安装了几乎相同的插件.我尝试停用插件.也尝试使用基本的Wordpress 2015主题徒劳无功.所以我已经 插件和主题排除在外.

任何人都可以建议为什么会发生这种情况?

 Blocked loading mixed display content "http://sitename/wp-includes/js/thickbox/loadingAnimation.gif"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/capsman/framework/styles/admin.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/capsman/admin.css?ver=1.3.2"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/capsman/framework/styles/admin.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/capsman/admin.css?ver=1.3.2"
 
Blocked loading mixed display content "http://sitename/wp-content/themes/pagelines/sections/boxes/icon.png"
 
Blocked loading mixed display content "http://sitename/wp-content/themes/pagelines/sections/features/icon.png"
 
Blocked loading mixed display content "http://sitename/wp-content/themes/pagelines/sections/banners/icon.png"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/custom-status/lib/custom-status.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/wordpress-seo/css/edit-page.min.css?ver=2.1.1"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/editorial-metadata/lib/editorial-metadata.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/css/edit-flow-admin.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/captcha/css/style.css?ver=4.2.2"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/ig-analytics//assets/css/admin.css?ver=1.3"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/css/jquery.ui.datepicker.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/css/jquery.ui.theme.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/css/jquery.listfilterizer.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/notifications/lib/notifications.css?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/user-groups/lib/user-groups.css?ver=0.8"
 
Blocked loading mixed display content "http://sitename/files/2015/06/500201259536538-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/06/Econsultancy-Mobile-Survey-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/06/ThinkstockPhotos-482221483-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/06/seo-localization-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/ID-10091333-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/South-Korea-Flag-On-Hand-100x100.jpg"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/search-everything/static/css/admin.css?ver=8.1.3"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/search-everything/static/css/se-compose.css?ver=8.1.3"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/ig-analytics//assets/js/admin.js?ver=1.3"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/search-everything/static/js/searcheverything.js?ver=8.1.3"
 
Blocked loading mixed active content "http://sitename/wp-content/themes/pagelines/admin/css/admin.css?ver=2.4.6"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Australian-Landscape-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Australian-Flag-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Digital-Content-Strategy-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/dms15_singapore_sydney_banner_900x600px-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Digital-Directionsl-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/04/2015_gartner_mq_mccm_1600x900-1200x675-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/mobile-marketing-asia-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/04/mobile-video-marketing-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/03/2400x800-Landing-pg-Banner2-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/04/dms15_singapre_sydney_banner_3400x2267-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/04/Nissan-Motor-Corporation_Final-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/wp-content/plugins/bwp-google-xml-sitemaps/images/icon_menu.png"
 
Blocked loading mixed display content "http://sitename/wp-content/plugins/captcha/images/px.png"
 
Blocked loading mixed display content "http://sitename/wp-content/plugins/edit-flow/modules/settings/lib/eflogo_s32.png"
 
Blocked loading mixed active content "http://sitename/wp-includes/js/wp-emoji-release.min.js?ver=4.2.2"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/search-everything/static/js/searcheverything.js?ver=8.1.3"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/custom-status/lib/custom-status.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/wordpress-seo/js/wp-seo-admin-global.min.js?ver=2.1.1"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/jquery-ui-timepicker-addon.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/ef_date.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/calendar/lib/calendar.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/jquery.listfilterizer.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/jquery.quicksearch.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/notifications/lib/notifications.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/user-groups/lib/user-groups.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/themes/pagelines/admin/css/admin.css?ver=2.4.6"
 
Blocked loading mixed display content "http://sitename/wp-content/themes/pagelines/sections/boxes/icon.png"
 
Blocked loading mixed display content "sitename/wp-content/themes/pagelines/sections/features/icon.png"
 
Blocked loading mixed display content "http://sitename/wp-content/themes/pagelines/sections/banners/icon.png"
 
Blocked loading mixed display content "http://sitename/files/2015/06/500201259536538-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/06/Econsultancy-Mobile-Survey-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/06/ThinkstockPhotos-482221483-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/06/seo-localization-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/ID-10091333-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/South-Korea-Flag-On-Hand-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Australian-Landscape-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Australian-Flag-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Digital-Content-Strategy-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/dms15_singapore_sydney_banner_900x600px-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/Digital-Directionsl-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/dms15_singapore_sydney_banner_900x600px-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/04/2015_gartner_mq_mccm_1600x900-1200x675-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/files/2015/05/mobile-marketing-asia-100x100.jpg"
 
Blocked loading mixed display content "http://sitename/wp-content/plugins/captcha/images/px.png"
 
Blocked loading mixed display content "http://sitename/wp-content/plugins/edit-flow/modules/settings/lib/eflogo_s32.png"
 
Blocked loading mixed display content "http://sitename/wp-content/plugins/bwp-google-xml-sitemaps/images/icon_menu.png"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/wordpress-seo/js/wp-seo-admin-global.min.js?ver=2.1.1"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/jquery-ui-timepicker-addon.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/ef_date.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/calendar/lib/calendar.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/custom-status/lib/custom-status.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/jquery.listfilterizer.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/common/js/jquery.quicksearch.js?ver=0.8"
 
Blocked loading mixed active content "http://sitename/wp-content/plugins/edit-flow/modules/notifications/lib/notifications.js?ver=0.8" 
Run Code Online (Sandbox Code Playgroud)

KRa*_*avi 8

将以下内容添加到wp-config.php:

 $_SERVER['HTTPS'] = 'on';
Run Code Online (Sandbox Code Playgroud)

  • 这是正确的答案。我尝试了一切。但这是我在互联网上找到的最好的答案 (2认同)