varnco Posted May 24, 2003 Share Posted May 24, 2003 I just installed the purchase without account contribution and I get the following parse error: Parse error: parse error, unexpected $ in checkout_success.php on line 171 BTW, there isn't anything on line 171 in checkout_success.php. I haven't done a thing to the checkout_success.php file except add the following text, per the instructions in the readme file: // Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } Is perhaps something wrong with the above code? Now, the instructions said to take the above code and put it in place of this code: tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); But, my checkout_success.php didn't have that exact text, but this (note the SSL missing: tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); I did not have this issue with the success page until I installed this contribution. I found another person on the forum that had this same problem, but their fix was to remove the entire contribution.... I don't want to do that.. Thanks for the help! Link to comment Share on other sites More sharing options...
varnco Posted May 24, 2003 Author Share Posted May 24, 2003 Is perhaps the "$notify_string" part missing in the NOSSL part? Link to comment Share on other sites More sharing options...
varnco Posted May 24, 2003 Author Share Posted May 24, 2003 Okay, I removed the text that the instructions told me to add, and it works fine now. What was the purpose of that set of instructions, anyway? It originally came from this discussion: http://www.oscommerce.com/forums/viewtopic.php...m+pope&start=10 Am I putting my store at risk if I don't use the code the readme instructions asked me to add, that was causing the error? Thanks. Link to comment Share on other sites More sharing options...
varnco Posted June 12, 2003 Author Share Posted June 12, 2003 I reinstalled the purchase without account contribution, and I am getting the error again: Parse error: parse error, unexpected $ in /home/varn/public_html/catalog/catalog/checkout_success.php on line 171 Last time, I fixed it by removing certain instructions. that said to add // Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, ?SSL?)); } to checkout_success.php Why would the above command be causing my parse error? Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2003 Share Posted June 12, 2003 You are missing a curly bracket } in your file.... most pobabably right after what you changed........ :shock: Link to comment Share on other sites More sharing options...
varnco Posted June 12, 2003 Author Share Posted June 12, 2003 Actually, it appears there was some white space before the curly bracket on what I cut n pasted from the readme file. Weird thing is, when the order is finished, it doesn't take the customer to the "order done" page anymore, just back to my default page, so it kinda looks like the customer didn't go through, even though it did. How do I get the contribution to take the customer to the "thanks for your order" (the one with the surf board image) page instead of back to my home page? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.