News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SSL Conversion Help

Started by mcpheex3, February 04, 2019, 12:33:44 PM

Previous topic - Next topic

drewactual

when it was deactivated, and using a browser with no memory of your site (or using incognito in chrome, private browsing in firefox) it loaded just fine (well, padlock wasn't green, but that is an easy fix). 

so...

make sure it's deactivated.

making WP and SMF play nicely is something i have some experience with ... there is a way... let's get this straight first... don't worry about the forum being inaccessible for right now- deactivate the plugin.  freakin' WP tries to do things for you too much, and right now it's making entries in your htaccess and it's using php to redirect... we don't want that foolishness.

drewactual

no worries... i see ghosts when i sleep.. so... i don't do it.

your padlock.. easy peasy..

using chrome? right click and inspect.. console tab.. it will show you the items not using https, and we're going to fix them.

mcpheex3

LOL! No ghosts allowed.  ;)

OK, I deactivated. But the only way to get it working was to reload the original .htaccess.  Also, when I try to modify a message, I now get this error:

The following error or errors occurred while posting this message:
Your session timed out while posting. Please try to re-submit your message.

Every time...

OK, I will try the .htaccess you gave me again. What about this one from WP:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>


that is what they suggest.  :-\

drewactual

they're just using wildcards... we're hard wiring it. 

the sessions thing is something else... we'll get to that.  it has to do with something called "2.0.14 login fix".  no worries- let's get the redirect back up....

three things of vital importance:
the redirect in the htaccess just as posted prior.
the settings in WP, asking you site URL and Address (there are two lines) must match the URL in the htaccess
the settings in your SMF (easily accessed via repair_settings) must all have https and either www or not, just like ^those two.

you're NOT going to have a green padlock, but... we're gonna get there too.  first things first

drewactual

....... and by the way... you're using http2, which is going to get fun in a little while when i make your page zoom like a Ferrari.

mcpheex3

Oh boy! Sounds like fun!

OK, I'm going to run through it. I'm buckling up.  ;D

mcpheex3

OK, I put in the .htaccess as you wrote it.
Made sure the WordPress Address and Site Address URL are both https://www.theflourishforum.com.
All settings in SMF have https://theflourishforum.com.

It says, "The page isn't redirecting properly."

Should I change all the settings in SMF to https://www.theflourishforum.com and try again?

mcpheex3

I can no longer access the WP admin page.  :o

drewactual

wp-settings.php will have the info you need to alter.  you can access it ftp or through your cpanel.  also, wp-config.php....

mcpheex3

OK, I can access through control panel. But...what do I change?

drewactual

if you want you can PM me your cpanel access and I'll get you squared away... but only because i got you here.  i'd rather you do it (even if directed) so you know how and learn how this junk works in the meantime.


the htaccess- comment everything out.. that is put a # in front of every line... this eliminates the threat of it messing with something.
you're going to want to look at your wp-config.php and wp-settings.php... there is something WP is doing that is jacking this up for us...
the SMF settings.php is where a lot of those files URLs you change in repair_settings live... they can be changed there too- it's just not as easy.

mcpheex3

Oh OK. Well since I can't see straight right now and my brain hurts, I think I will revert it back for now (I have members all over the world so they access it 24/7). And then try again in the morning.

You are a lifesaver and I really, truly appreciate all of your help with this.  ;D

drewactual

here is some homework for you. 

use google chrome and access your site.  right click and inspect.. choose the console tab, and it will show you all the unsecured items on the page... we'll be needing to make them secure.  it looks like most your items are from your images folder...

just a tidbit: those directories don't change from unsecured to secured, only the way you access them does.. the padlock isn't green as WP is asking for the images over http NOT https.  it's a URL in the code we'll have to change. 

the redirect works- the one i gave you... but it is conflicting with something WP is doing...

if you want ONE more swing at it tonight, try this:

MAKE a file, call it .user.ini .... that begins with a period.... place it in your SMF directory. INSIDE that file, add the redirect provided above, but put /forum after the .com this time. 

.user.ini does the same thing, basically, a htaccess file does except only for php files (which is what we're working with) and only for the directory it's in.  this is a bandaide.  but.... it should work.   

drewactual

uh... DON'T DO THAT^^^^^

using incognito, your site is working with a green padlock as it is supposed to... both the main and the forum.

congrats!

dump your cache and your cookies.

drewactual

DO come back tomorrow, though...

my site is a lot heavier than yours, but mine loads in less than a second. we can get yours to do the same because you are using mod_h2 ... I'll do some of my own homework for you in the morning and give you some code that will blow your mind.  will assist with your SEO too.

mcpheex3

You are a peach @drewactual! I'm sorry it took me a few days to get back. My site is really unstable right now. I deactivated a plugin (All-In-One_Migration) and the whole site went down. I restored it from a back up and it's working but very glitchy. I'm getting lots of 405 and 502 errors.

I think I need to get it off cloudflare. I am looking at changing hosts so I'm not going to make any changes right now. I feel like it's teetering on a pushpin.  :-\

drewactual

take a peek in your server error logs and we can figure it out.

mcpheex3


mcpheex3

There are a whole lot of errors in that log. Not even sure where to begin. I think I need to hire a web developer at this point.  :(

mcpheex3

The only one listed with today's date:

[12-Feb-2019 13:08:23 UTC] PHP Warning:  array_unshift() expects parameter 1 to be array, null given in /home/paperwhi/public_html/wp-includes/class-wp-xmlrpc-server.php on line 508

Advertisement: