xiaumiau Posted July 29, 2004 Posted July 29, 2004 I got a customer paid successfully through Paypal during checkout, but got a error message right after that step: Parse error: parse error, unexpected ')' in /checkout_process.php on line 261 And then the order didn't get recorded or anything... What should I do to fix it?? Thanks for your help :)
Chris Dunning Posted July 29, 2004 Posted July 29, 2004 Probably you forgot to close a quote somewhere, didn't put a semicolon at the end of a line or something like that. I would first look at the end of line 260 and make sure there's a ; at the end. If that doesn't do it, you can post a few lines around line 261 (like 258-263 or so) and maybe we can take a look at the code and see what's wrong. If you don't know where line 261 is, you should get an editor that shows you. I would recommend either DEV-PHP or PHPEdit - a google search for either of those will turn up some free software that works great. Both of these will color-code your code and make it much easier to locate oopses like this. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.
xiaumiau Posted July 29, 2004 Author Posted July 29, 2004 Thanks for your help!! Below is between line 260~270 in checkout_process.php // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != ) {tep_mail(, SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, "Order from: " . $order->customer['email_address'] . " " . nl2br ($email_order), $order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer ['email_address'], ''); } Dev-PHP doesn't show what's wrong with it (or maybe I just can't tell). Can you help me out? Thank you :)
Chris Dunning Posted July 29, 2004 Posted July 29, 2004 {tep_mail(, That's at least one problem right there - a comma right after opening the parentheses. Try deleting that comma, changing that statement to: tep_mail(SEND_EXTRA_ORDER_EMAILS_TO, Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.