Update: I just added two new orders and both show the products in the invoices and there are records in the orders_products table for the orders. I deleted one order and the other one was OK. The only difference was between the test orders and the real order is that the real order used paypal to make the payment and I've been using "Check/Money Order" for the test orders. Would that make a difference?