Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
problem with post edit button and tools when always using https://
Avatar
rb22
Member
sp_UserOfflineSmall Offline
Jul 14, 2015 - 4:30 pm

Hi I have a problem. I recently changed my .htaccess file to ensure that the site is always using https://  (sll)

 Basically every hit to the server is redirect to https:// if it's not already https://

that works fine and the forum generally works OK but when I click a button such as edit a user topic post, I get this message from firefox:

=====

The information you have entered on this page will be sent over an insecure connection and could be read by a third party.

Are you sure you want to send this information?

 

=====

 

If I accept, the forum redirects to the https:// url (probably thanx to the .htaccess) but it doesn't redirect to an edit screen. It just goes back to the page on which the button was clicked.

...

 

The problem is that the url being built and put into the rendered forum page is http:// instead of https://

the function sp_build_url seems to relevant but I don't see where the http or https protocol is set.

 ./forum/content/forms/sp-form-post-edit.php
 ./sp-api/sp-api-permalinks.php

 

This is the relvevant markup where the button is clicked.

 

<form class="spButtonForm" action="http://link-to-post/forum/21900" method="post" name="usereditpost21900">
<input name="postedit" value="21900" type="hidden">
<a class="spButton spRight" id="spPostIndexEdit21900" title="Edit this post" rel="nofollow" href="javascript:document.usereditpost21900.submit();"><img class="spIcon" src="https://versatilephd.com/wp-content/sp-resources/forum-themes/css-only/images/sp_EditPost.png" alt="">
Edit</a>
</form>

 

....

 

Do  you have an tips on how I can fix this?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 14, 2015 - 5:02 pm

Hey rb22.

A lot of people use SSL with SP just fine, but I must admit it's not an area I have much experience in!

Have you checked Forum > Integration > Page and Permalink to make sure the permalink includes https? If not try resetting it.

Also check Forum > Components > Login and Registration to make sure they contain https.

Avatar
rb22
Member
sp_UserOfflineSmall Offline
Jul 14, 2015 - 5:17 pm

I think I found the solution.
I changed the value for sfpermalink to https://
UPDATE .`sfoptions` SET `option_value` = 'https://the.url.com/the.forum.slug/' WHERE `sfoptions`.`option_name` = 'sfpermalink';
Seems to work now.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 14, 2015 - 5:27 pm

Simple:Press supports the WordPress methods for using https an we let WordPress determine the scheme that is being used as we are just a WP plugin. I don't think that includes using the htaccess file..

https://make.wordpress.org/sup.....wordpress/

andy-signature.png
YELLOW
SWORDFISH
Avatar
rb22
Member
sp_UserOfflineSmall Offline
Jul 14, 2015 - 5:31 pm

Thanks Ike.

I think you solution would have worked too. In forums --> wp Integration permalinks, there is an update button and I suppose when you click it, sp gets the value from site_url value in the wp_options table.

I had previously updated that to https://.

when I click on update, it remains correct.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 14, 2015 - 5:52 pm

Either way, glad you are all up and running!

Avatar
rb22
Member
sp_UserOfflineSmall Offline
Jul 14, 2015 - 6:51 pm

Thanks to you too, yellow swordfish!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 14, 2015 - 9:23 pm

glad all is well!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616