Forwarding every other time

mikesir87 - September 22, 2009 - 14:50
Project:Secure Pages
Version:6.x-1.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

We're having an issue in which the Secure Pages module is forwarding the user to the SSL server on every other page visit. It is quite consistent with it as well... every other. We've cleared the cache, and nothing. I then dived into the source code, and found that in the securepages_match function, the function 'drupal_get_path_alias' is not defined on the times that the page is not forwarded. I then went into the system table, and changed the weights around to ensure that the path module is loaded before Secure Pages, but still getting the same issue. Has anyone else had this issue?

#1

mikesir87 - September 22, 2009 - 15:56

Update...it seems that it may not necessarily matter there. I kept digging, and it seems that when I comment out the line
$_SESSION['securepages_redirect'] = TRUE;
in the securepages_goto function, it works everytime. I'm still not 100% sure what this variable does. Any ideas? Is this truly needed?

#2

adamo - October 15, 2009 - 20:42

I believe this is a duplicate of this:
http://drupal.org/node/420712

Check your Secure Pages config and make sure you don't have any blank lines in your include/exclude lists.

#3

mikesir87 - October 27, 2009 - 20:44

It looks fairly similar, but I don't think it's exactly the same because it's actually doing it on [site]/?q=user, not the home page.

I'm still not quite sure what was causing it, but we had to roll the site into production, so moved to another module. I would like to be able to help figure it out though. I'll see if I can get any more details.

#4

primerg - October 29, 2009 - 15:51

I confirm this bug. Commenting out this line worked
$_SESSION['securepages_redirect'] = TRUE;

http://drupal.org/node/420712 isn't also an issue in my case.

 
 

Drupal is a registered trademark of Dries Buytaert.