最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

SSL Breaks Wordpress CSS

programmeradmin0浏览0评论

We purchased an SSL certificat from network solutions (would never recommend them to my worst enemy, btw).

Apparently it's activated... did a few checks that says it's activated for our domain. But when I put in the entire site breaks. To be more specific, by "breaks," I mean it completely disables the CSS, and my login User+Password no longer work (seems like this might be a clue?)

I've tried downloading Wordpress HTTPS, but that kicks me out of the admin page and also mangles the CSS.

I don't care if it works on the entire site, just need it working for our form page (texasshredderclassic/registration) – using gravity forms and connecting to authorize!

I'm tearing my hair out here because I don't have a clue where to go next. Seems like we have the SSL cert... just can't get the damn thing to work! Any help is GREATLY appreciated!

We purchased an SSL certificat from network solutions (would never recommend them to my worst enemy, btw).

Apparently it's activated... did a few checks that says it's activated for our domain. But when I put in https://www.texasshredderclassic the entire site breaks. To be more specific, by "breaks," I mean it completely disables the CSS, and my login User+Password no longer work (seems like this might be a clue?)

I've tried downloading Wordpress HTTPS, but that kicks me out of the admin page and also mangles the CSS.

I don't care if it works on the entire site, just need it working for our form page (texasshredderclassic/registration) – using gravity forms and connecting to authorize!

I'm tearing my hair out here because I don't have a clue where to go next. Seems like we have the SSL cert... just can't get the damn thing to work! Any help is GREATLY appreciated!

Share Improve this question edited Apr 18, 2019 at 11:47 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Dec 12, 2012 at 22:19 user1727053user1727053 3191 gold badge2 silver badges5 bronze badges 10
  • '...the entire site breaks' isn't really helpful to anyone who'd be willing to offer assistance. Can you edit your question to detail the problems and behaviors you're seeing? – Steve Commented Dec 12, 2012 at 22:31
  • thanks for the suggestion, added more detail, hopefully this helps! Thanks! – user1727053 Commented Dec 12, 2012 at 22:36
  • I can't find any issue with CSS, loads fine for me even on the registration page. No errors in Firebug or certificate/SSL warnings. Until I get to the registration page; where the form tells me the page isn't secure. – Steve Commented Dec 12, 2012 at 22:46
  • that's with https:// in front, Stephen? – user1727053 Commented Dec 12, 2012 at 22:48
  • Yeah, how else would I test the certificate? ;) – Steve Commented Dec 12, 2012 at 22:49
 |  Show 5 more comments

4 Answers 4

Reset to default 51

For the login part, this works for me ...

Paste the following line in your wp-config.php

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';

but make sure that you do it before the following line

require_once(ABSPATH . 'wp-settings.php');

By doing so you can get your admin panel back ... See details here

Also to avoid getting Mixed content, after restoring your admin panel, remember to go to SETTINGS, General, change Server URL from http to https.

Go to your WordPress General Settings and change the WordPress Address (URL) and the Site Address (URL) from HTTP to HTTPS.

ps. And disable all the plugin breaking your site.

If that doesn't fix this there is a proper guide here and several steps you can take: https://managewp/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings

This type of CSS "breaking" is caused mostly due to accessing files via HTTP request on an HTTPS connection, or to be short, accessing insecure files.

In the provided link, the Registration form is loaded in an iframe, and also, its CSS files are loaded by HTTP and not by HTTPS connection.

So, if you have direct access to the files that is served as registration form, changing all http:// to https:// might does the job, but I've been using the SSL Insecure Content Fixer, and it works fine till now.

Have you tried running SSL Insecure Content Fixer? (disclosure: I wrote it, but I just want to know have you tried fixing your problem with this plugin). It should clear up most of the script load errors, at least for plugins that haven't been too naughty.

I notice that you're running WP 3.5. I had a report this morning that someone running WP 3.5 with stylesheets loaded using bloginfo('stylesheet_url'); was getting the same problem, insecure content report on their theme's stylesheets. Can you look at your theme and tell us how your stylesheets are loaded?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论