AndreaFahy Posted October 19, 2007 Share Posted October 19, 2007 My first customer ordered from my new oscommerce site. I received a PayPal payment notification but cannot find any record of an order being placed! Please advise, let me know what additional information is required to figure out the problem. If I click on the customers name and then "Orders" I receive this error: Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/httpd/vhosts/bonsaibirds.com/httpdocs/shop/admin/includes/classes/order.php on line 172 Line 172: ?> Thank you sooo much in advance!! Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2007 Share Posted October 19, 2007 My first customer ordered from my new oscommerce site. I received a PayPal payment notification but cannot find any record of an order being placed! Please advise, let me know what additional information is required to figure out the problem. If I click on the customers name and then "Orders" I receive this error: Line 172: ?> Thank you sooo much in advance!! It's hard to tell with the T_OLD_FUNCTION and T_FUNCTION, because they aren't a part of osCommerce. I think that they are a php thing, but I'm not totally sure. It would appear that you have either an extra ; or doing have a } in a certain place in your admin/includes/classes/order.php. You might want to look through your code and make sure that every line ends correctly. I'm not sure if that will fix it, but it would be a good place to start. And think of it this way, at least you customer can still see that their order has been made. Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 19, 2007 Author Share Posted October 19, 2007 Well, the customer and I both received PayPal notification, but not any record of the order itself. So now she has to type an e-mail listing everything she picked out... I may just compare the original /order.php to my current one and see what may be different. Is there a way to disable orders though? I really would hate for anyone else to deal with this in the meantime before it is fixed. Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
bobg7 Posted October 19, 2007 Share Posted October 19, 2007 Are you using the stock PayPal payment module or a PayPal IPN contribution. If your using the stock PayPal module install the PayPal IPN. it will store the order so if the customer does not return to your checkout_success.php page the order is still recorded, just the customer and you won't get an order conformation email. Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going. Link to comment Share on other sites More sharing options...
Trentide Posted October 19, 2007 Share Posted October 19, 2007 I dont know if this'll help. But I seem to recall this happening to me once when a customer ordered from Paypal. It never happened again. You know what you could do, just place a "fake" order. If you can select "check/moneyorder" all the better. Then see if you get the necessary emails. Then just delete order in admin and select "return to stock" on that page. If you don't have the check/moneyorder option. just create a fake product for 2 cents and purchase that using your paypal. This way you could see if it's a persistant problem and fix in necessary Hope this helps! Jason Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 Are you using the stock PayPal payment module or a PayPal IPN contribution. If your using the stock PayPal module install the PayPal IPN. it will store the order so if the customer does not return to your checkout_success.php page the order is still recorded, just the customer and you won't get an order conformation email. I just have the stock PayPal module turned on/installed. I do see the PayPal IPN as an option, so I will set that up and test it. I don't know which option to choose for this: "Set Preparing Order Status Set the status of prepared orders made with this payment module to this value" Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 Checkout with check payment processes fine with e-mail notification to both buyer and shop. The e-mail I get for the shop is a mess to read though! Although, if I try to view the order in my admin I still receive this error: Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/httpd/vhosts/bonsaibirds.com/httpdocs/shop/admin/includes/classes/order.php on line 172 And if the "buyer" follows the link in the e-mail to view the order online: Parse error: parse error, unexpected '<' in /home/httpd/vhosts/bonsaibirds.com/httpdocs/shop/account_history_info.php on line 107 Here is line 107: <?php What a mess, I wonder what has happened b/c I thought the shop was ready to go "live" and it is... Thanks guys for all of the input thus far! Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 I dont know if this'll help. But I seem to recall this happening to me once when a customer ordered from Paypal. It never happened again. You know what you could do, just place a "fake" order. If you can select "check/moneyorder" all the better. Then see if you get the necessary emails. Then just delete order in admin and select "return to stock" on that page. If you don't have the check/moneyorder option. just create a fake product for 2 cents and purchase that using your paypal. This way you could see if it's a persistant problem and fix in necessary Hope this helps! Jason Jason - I am able to order from myself basically and the customer can go through with check payment. I have that as the only option right now. But I cano't even delete orders, because I have no access to the orders due the the php errors outlined above :( Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 UPDATE - I could see one problem lied in the account_history_info.php was causing errors. I backed up my file. I then uploaded the original stock file. Error fixed!! But what caused the changes that ended up in errors?? I hope it doesn't happen again... I will try the same with the order.php file. Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 I did the same for the order.php file. I can now access order histories. I did archive the original just in case, but for now I only have the stock order.php on my server. Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 Then just delete order in admin and select "return to stock" on that page. Hope this helps! Jason How do I delete an order? I am not seeing that option yet. Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
Trentide Posted October 20, 2007 Share Posted October 20, 2007 Go into your admin. Under customers go to orders. Then delete it. You also have the option of putting the item back into stock automatically Hope this helps. Jason Link to comment Share on other sites More sharing options...
AndreaFahy Posted October 20, 2007 Author Share Posted October 20, 2007 Geez, so obvious. Thanks!! Kindly, Andrea Fahy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.