Jump to content

Warning After 'log In' Link: Unable To Parse Url...


Guest

Recommended Posts

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

Link to comment
Share on other sites

Guest Wiseguy Digital

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!!!!

Link to comment
Share on other sites

Guest Wiseguy Digital

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']);

Link to comment
Share on other sites

  • 2 months later...
Guest daverock

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

Link to comment
Share on other sites

  • 3 months later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...