Guest Posted January 14, 2006 Share Posted January 14, 2006 I Have installed PWA 1.0.1 and am getting this error message can any one point me in the right direction Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/thermals/thermalsecrets.com/catalog/create_account.php on line 244 This is the code just before and after line 244 // Ingo PWA if (isset($HTTP_GET_VARS['guest'])) tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING)) // restore cart contents $cart->restore_contents(); // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } The code on line 244 is $cart->restore_contents(); Thanks in advance Quote Link to comment Share on other sites More sharing options...
tina_boots Posted January 14, 2006 Share Posted January 14, 2006 I Have installed PWA 1.0.1 and am getting this error message can any one point me in the right directionParse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/thermals/thermalsecrets.com/catalog/create_account.php on line 244 This is the code just before and after line 244 // Ingo PWA if (isset($HTTP_GET_VARS['guest'])) tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING)) // restore cart contents $cart->restore_contents(); // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } The code on line 244 is $cart->restore_contents(); Thanks in advance Looks to me as though you might need a semi colon at the end of the first line with the if statement. Be well, Tina Quote If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. 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.