Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
frozen input fields
Avatar
Adam Phillips
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2017 - 10:17 am
sp_QuotePost Quote

Hi, I've just migrated my entire site to a new host, including the forum. Everything looks to be in order, the only problem right now is we're unable to post new topics or send PMs because the main post form doesn't take any input (i.e. can't be focused, no cursor appears, seems to be frozen, unclickable). The topic name/subject fields work just fine, but not that main post/message body field.

I've checked the FAQ and gone over the permissions carefully. All members are in a permissions group with those permission groups assigned globally. Does this issue sound like something that could have happened in the migration? Or does it sound like some simple face-palming omission?

Thank you!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 29, 2017 - 12:22 pm
sp_QuotePost Quote

Not much to go on... If you moved the wp-content folder from your old server which will include the necessary SP files and storage folders then most usually if something stops working it is because something new has entered the equation. Like a new WP theme, or a new WP plugin for example.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Adam Phillips
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 30, 2017 - 5:31 am
sp_QuotePost Quote

Thank you for the reply. I've found that disabling the tinymce plugin fixes the issue and we're able to use the plain text editor. The chrome console (image attached) suggests that tinymce isn't working with ssl on my site. However, I notice you're using tinymce on this forum with ssl. Do you have a solution that might work for me?

 

insecure contentImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 30, 2017 - 6:21 am
sp_QuotePost Quote

Simple:Press uses the WordPress function content_url() to determine the base url which includes the http scheme. The function resolves this by calling the set_url_scheme() function which, in turn calls the is_ssl() function.

So the suggestion here is that WordPress - at core level - does not recognise your site as being ssl. That suggests you have not, perhaps, followed all the instructions for setting ssl outlined in the . WordPress Codex.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ksexton
Guest
Guests
May 1, 2017 - 2:53 am
sp_QuotePost Quote

Thanks for responding to the previous post.  I did find the response a bit unhelpful and dismissive, but you are indeed correct.  I went and debugged the code and the 'is_ssl' function is pretty 'dumb' in how it determines if a site is over ssl.  Its basically checking the port numbers and doesn't do any discovery of forwarded-for or other configurations (such as site url checking) to detect common setups (such as load balancers doing ssl termination).

For future reference to people who have issues with ssl, please visit this page : 

https://codex.wordpress.org/Fu.....nce/is_ssl

Specifically for setups with load balancers which do ssl termination the 'how to switch to ssl' wordpress page does not actually properly switch you to ssl for all things.  Even the plugins which claim to deal with x-forwarded-for do *not* cover all cases.

You must add the following line to your 'wp-config.php' file above the 'require_once' line : 

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

 

This will fix the site_url and content_url methods for all php code used by wordpress.
Cheers.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 1, 2017 - 4:26 am
sp_QuotePost Quote

Ah - some useful information not in my own area of expertise. Thank you. We will note this one.

Apologies if you found my response 'dismissive'.  I am sure you will understand that support questions from members will always take priority and I was juggling a couple of testing questions at the same time as well as trying to spend some time with family on a Sunday.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626