this may be the same issue as http://drupal.org/node/1023302 but that post didn't have enough information to be sure.

I had set up a Drupal Commerce store which allowed anonymous checkouts. Everything worked dandily. When I set up SSL + Secure Pages, SSL was enabled on only checkout, login and administrative pages. When I view cart (/cart), it is http:// and when i click "Checkout" (/checkout) it switches to https:// - perfect! Secure pages is set to secure checkout/*

The problem lies in the next step. The user enters an email address and basic customer information and click "Continue" which sends the user to checkout/review. Anonymous users get a "Page Not Found" error. Logged in users who attempt to checkout have no problem.

My Secure Pages configuration is as follows:

-Enabled
-switch back to http if no matches
-Make secure only listed pages: checkout
checkout/*
node/add*
node/*/edit
node/*/delete
user
imce*
user/*
admin
admin/*

-Ignore: */autocomplete/*
*/ajax/*
batch
js/*

-All user roles

Comments

tevih’s picture

Slight update after some more testing. I already did do the required settings.php change $conf['https'] = TRUE; but it appears to be a sessions issue.

If I try going through the checkout process as an anonymous user, when I get to the "Page Not Found" and try to go through the ordering process again, it does allow me to proceed. (Even if i try a different email address than the first time.) It will clear my cart, though.

cmhdesign’s picture

Seems to work consistently with the following settings:

store
store/*
cart
cart/*
checkout
checkout/*

TyrelDenison’s picture

Can someone else confirm this is working properly with the configuration cmhdesign has mentioned, or at all for that matter? Really needing this functionality.

SusieQ123’s picture

Hi there

I have the same problems described and have searched and followed all settings advice.
Did you find a solution? Is this a Bug?

To confirm the problem occurs when going from 'http' cart to a 'https' checkout only as an anonymous user. At this point they get the message " checkout/... ' page cannot be found' "

When I change the cart to HTTPS (in secure pages settings) it becomes empty when selected - again I suspect it has something to do with adding things in HTTTP and going to HTTPs.

Is there a solution, it seems this was posted a while back?
Thanks
Sue

farald’s picture

SusieQ, If not already done, try adding

$conf['https'] = TRUE;

To your settings file.

SusieQ123’s picture

Hi farald

Yes I had tried changing that - to no avail.
Would anything else be causing this?
Thanks

rodvolpe’s picture

Having the same issue as above. (#4)
The weirdest thing is that I have implemented securepages in two other projects + staging environment and it functions perfectly.
This is happening on a client RACSPACE box.
No errors are issued and they cannot tell what is going on.

webservant316’s picture

Issue summary: View changes

Same here. I was hoping to launch my D7 site in a couple weeks, but is there no working SSL module?

kevster’s picture

Thanks @farald - adding $conf['https'] = TRUE; seems to have done the trick for me...

Phew - orders flowing again...

fabrizior’s picture

Same problem, but not solved...

astonvictor’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.