Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
All forum links and rss feeds ssl and upgrade difficulties
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 6:48 am

Update - I have the blog linking plugin activated as I was about to start testing this feature and you can see that on the sample pages supplied above the go to forum to discuss. As you hover over this it is showing https?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 9:30 am

so you as indicate, it is wp that is telling us the pages are https (ssl)...  I do not know why...  but if site_url() and home_url() are returning https, then either you have a plugin forcing the https or core itself is from the wp - settings - general admin panel... 

on the test site, are you overriding those settings with the wp config defines?

also, back in your first post, your second image, is that https setting still there?  could it be forcing it?

Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 11:17 am

Pasted in 2 posts because I think SimplePress is recognizing all the http's as links and won't let me post over 10.

The screenshot in post 2 is of the site options. The details are showing for the wordpress https plugin but the plugin is deactivated (but not deleted). I think even if deleted it doesn't take it's settings with it?

I can manually change that record but as the plugin is deactivated I wouldn't expect it to help.

I did have the wp settings in the config file.

define(‘FORCE_SSL_LOGIN’, true);
define(‘FORCE_SSL_ADMIN’, true);

but I have now commented them out as the domain mapping plugin does the same thing, I would be concerned the domain mapping plugin was changing more settings but the issue remained when I deactivated and went to the forum integration page again to refresh.

It seems like what we need to work out is why wordpress sees the site as http as in the attached wp settings>permalink page but SimplePress is picking up https as in the other screenshot.

After testing - turning the plugin off and then on again makes the permalink appear as http! and on the test site works!

But... if I go to integration and update permalink or change the forum page and back again it changes to https?

 

 

test-site-wp-permalink-page.jpgImage Enlarger

 test-site-forum-permalinks-page.jpgImage Enlarger

Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 11:18 am

 Does the forum is use

site_url();
home_url();

 

in the same way to determine whether http or https when it is activated as it does when clicking update?

If so why does it not change to ssl until I hit update permalink? When I click the button on the integration page I am in the admin area so it's https is it pulling the https from the current url?

I added your test into the theme when turning the plugin on and off and it says along the header

http://lrsdev2.candsprint.com/forum

http://lrsdev2.candsprint.com/forum

So until I update permalink it is recognizing the site as http?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 11:21 am

when updating the permalink, we request from wp the permalink for the wp page the forum appears on...  we store it in the db as our permalink...  so that would mean that wp thinks the page should be https...

other than that, we just use the site_url() and home_url()...   

after updating the permalink (why do we do that?), you could edit the sfpermalink option in the sfoptions table and change it to http...  but it still doesnt 'correct' that wp is telling us the permalink for the page is https...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2014 - 12:05 pm

Try this.

On the integration panel change the forum page at the top and UPDATE whole the panel. Then change it back to the one you want and update it again. THEN - and only then - Update the forum permalink.

Does that help?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 12:16 pm

I have pulled simplepress apart a bit trying to see the process and please correct me if I'm wrong as I'm obviously just trying to figure it out.

In spa-integration-page-form.php

spa_paint_open_fieldset(spa_text('Update Forum Permalink'), true, 'forum-permalink');
                    echo '

'.spa_text('Current permalink').':

'.$sfoptions['sfpermalink'].'

';
                    spa_paint_update_permalink();
                spa_paint_close_fieldset();

 

At the bottom seems to be the function which makes the permalink

function spa_paint_update_permalink() {
    $site = SFHOMEURL.'index.php?sp_ahah=integration-perm&sfnonce='.wp_create_nonce('forum-ahah').'&item=upperm';
    $target = 'adminupresult';
    $gif = SFCOMMONIMAGES.'working.gif';

    echo '';
}
?>

Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 12:17 pm

3 posts this time due to link limit.

 sp-control.php defines SFHOMEURL as

$home = trailingslashit(site_url());
if (is_admin() && force_ssl_admin()) $home = str_replace('http://', 'https://', $home);
define('SFHOMEURL', $home);

# IMPORTANT - SFSITEURL is always slashed! check user_trailingslashit()) if using standalone (ie no args)
# IMPORTANT - This is NOT the same as what wp refers to as site url. This is actually to the site home URL. Changing to be consistent ripples through everything.
$site = trailingslashit(home_url());
if (is_admin() && force_ssl_admin()) $site = str_replace('http://', 'https://', $site);
define('SFSITEURL', $site);

Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2014 - 12:17 pm

From this doesn't it say 'if' SSL admin is set change to https:// ?

This would trail back to how it is setting the permalink which is wrong isn't it as I don't want the front of the site as I Only want the admin areas as https not the front/public side.

So it isn't calling site_url or blog_url but your SFSITEURL which is now https because I have ssl_admin on.

 

I'm not sure why your tests you asked me to do didn't work but they did seem to change depending on the url status whether http or https in the forum permalink page which surely if they were calling the wordpress core url status it would have been consistently http or https not both?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2014 - 12:18 pm

Did you try my suggestion above yet?

andy-signature.png
YELLOW
SWORDFISH
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: 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