View Single Post
  #330  
Old 03-11-2005, 03:04 AM
 
ian_fs ian_fs is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Norwich, UK
Posts: 86
 

Default

On a fresh installation of X-Cart with exCheckout installed I receive this error when ever trying to login / logout of customer and admin:

Code:
Parse error: parse error, unexpected '}' in W:\www\dev\include\login.php on line 203

line number changes between 201 and 203 depending if there is a white space before the code is modified.

The code in question is:

Code:
[b]Find[/b] if ($login_type == "C" || $login_type == "B") { if (!func_is_cart_empty($cart)) { if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) { func_header_location($redirect_to."/cart.php"); } else { func_header_location($redirect_to."/cart.php?mode=checkout"); } [b]Replace With[/b] if ($login_type == "C" || $login_type == "B") { if($redirect2 == "checkout") { func_header_location($redirect_to."/cart.php?mode=checkout") } elseif (!func_is_cart_empty($cart)) { if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) { func_header_location($redirect_to."/cart.php"); } else { func_header_location($redirect_to."/cart.php?mode=checkout"); }

It is with the replacement code that the problem is occuring. This error has now happened on two versions of fresh installs of X-Cart when testing to check I was double sure.

Ian[/b][/code]
__________________
X-Cart 4.0.17
Reply With Quote