Guest Posted February 16, 2008 Share Posted February 16, 2008 When I click 'Log In' I get the following error messages on top of the page: Warning: parse_url(/index.php?_a=login&redir=http://sgawinc.com/index.php&ccUser=00c3ff1cce7bd112f669b30f89276b23) [function.parse-url]: Unable to parse URL in /home/sg75rd/public_html/includes/sslSwitch.inc.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /home/sg75rd/public_html/includes/sslSwitch.inc.php:36) in /home/sg75rd/public_html/classes/session/cc_session.php on line 188 Anybody know what might to causing this? I'm still able to log in as a customer... Rob Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2008 Share Posted February 18, 2008 Did you upload the files in Binary mode? Yes, I uploaded all the files in binary mode. Was that the correct way to do it? Quote Link to comment Share on other sites More sharing options...
Guest Wiseguy Digital Posted February 20, 2008 Share Posted February 20, 2008 Did you upload the files in Binary mode? Yes, I uploaded all the files in binary mode. Was that the correct way to do it? Yes it is. It could be a permissions problem. I would suggest submitting a support ticket. I'm having exactly the same problem!!!! Quote Link to comment Share on other sites More sharing options...
Guest Wiseguy Digital Posted February 20, 2008 Share Posted February 20, 2008 I have just taken a look at the SSL Switch script (includes/sslSwitch.inc.php) and it has the following line (around line 36): http://uk.php.net/parse_url I would change this line to: $url_elements = parse_url($_SERVER['REQUEST_URI']); The PHP function parse_url only works when using URLs (e.g.http://something/script.php) not URIs (e.g./script.php) See $url_elements = parse_url($config['storeURL_SSL'].$_SERVER['REQUEST_URI']); Quote Link to comment Share on other sites More sharing options...
Guest daverock Posted May 12, 2008 Share Posted May 12, 2008 I just tried that fix on a store with the same problem. It worked. Thank you my store details: CC v4.1.1 SSL on SEO on = Apache directory lookback Quote Link to comment Share on other sites More sharing options...
stevemills Posted August 16, 2008 Share Posted August 16, 2008 I have just taken a look at the SSL Switch script (includes/sslSwitch.inc.php) and it has the following line (around line 36): http://uk.php.net/parse_url I would change this line to: $url_elements = parse_url($_SERVER['REQUEST_URI']); The PHP function parse_url only works when using URLs (e.g.http://something/script.php) not URIs (e.g./script.php) See $url_elements = parse_url($config['storeURL_SSL'].$_SERVER['REQUEST_URI']); Same problem here. I was instructed to install the sslSwitch file from 4.2.2 into my 4.1.1 store to resolve another issue, so for anyone who is looking at that newer file, it's line 52. My login is still failing, but at least the error is gone. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.