When generating an invoice I get the following errors:
o Can not save invoice
o Can not do invoice for order
The order is invoiced but the customer does not get the email. I’ve dug through the code and found that the first error is generated when an exception is thrown in saveAction (in InvoiceController.php). It appears that $transactionSave->save()is the culprit, although I cannot tell from the sql logs where it’s going wrong.
Has anyone seen anything similar? Any ideas how to to troubleshoot further?
Thanks .. got the same problem, and got half way through finding the source (starting by adding $e->getMessage() to the error message!!) . Your post has saved me some time!
The new shipment and credit memo templates also need fixing.
I would like to know, is every new version going to break a million things like this? I think I will stick with this version indefinitely.
I am getting no items showing up in the invoice or shipment emails. Do you have the same problem?
I am stabbing in the dark here trying to understand what’s going on. I notice that both the My Account invoice code and the email invoice code now use a specific artitecture for item rendering. It works fine in the My Account case but not in the email case.
I’d hazard a guess that the problem is that the email template calls the code via
but then I get the “can not save invoice” error. Printing Exception::getMessage(), the error is:
Recoverable Error: Argument 1 passed to Mage_Checkout_Block_Cart_Item_Renderer::setItem() must be an instance of Mage_Sales_Model_Quote_Item_Abstract, instance of Mage_Sales_Model_Order_Invoice_Item given, called in /home/huntingb/public_html/app/code/core/Mage/Sales/Block/Items/Abstract.php on line 114 and defined in /home/huntingb/public_html/app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php on line 38
... and this is where I have to throw my hands up and hope that someone less clueless than me can help!!!!
I’m having the same problem… although, out of interest, I have just discovered that if you re-order from within admin on an order, the invoice does print the items, sku etc. It just doesn’t print it on an order made on the site. If someone can confirm this that would be great.
same problem at my site. the invoice / order e-mails don’t include the purchased items an costs. switching to the default template didn’t solve the problem.
this is a serious bug: you can’t send e-mails to customers without an information about the costs of their order!