Log in

View Full Version : Checkout with gzip enabled



alexm
22-07-2010, 06:39
Hi,

I just noticed an issue when gzip is enabled and a user is not logged on. When clicking on Checkout, instead of forwarding the user to the login page you get a page of gibberish instead.

Alex

Greystoke
22-07-2010, 13:19
Hi,

Sorry about this bug and thank you for pointing this out.

In shop/checkout_shipping.php

Find on line 17:


if (!tep_session_is_registered('customer_id')) {

Add on new line after it:


ob_end_clean();

alexm
22-07-2010, 14:45
Thanks, that's sorted it.

Do you think it would be wise to make the same mod to any of the other files that users may end up on whilst logged out e.g. if they have a shortcut to account.php etc?

Alex

Greystoke
23-07-2010, 01:34
All files will be updated in the next release.