So here's what I've done: Loads of customizing using /local copies of /core files. Updated from 1.9.0.1 to 1.9.1.
Now I can't send email. And no, I've ruled out the new >= 1.9 email-queue-through-cron-thingy as root to the error.
When sending invoice updates I get:
Fatal error: Call to a member function addEmailInfo() on a non-object in /xxx/app/code/core/Mage/Sales/Model/Order/Invoice.php on line 885
And this is the same for every email I try to send. New order gives:
Fatal error: Call to a member function addEmailInfo() on a non-object in /xxx/app/code/core/Mage/Sales/Model/Order.php on line 1326
...and so on.
This error occur both in front- and backend. So this has to be central.
And no, it's not the addEmailInfo() that's faulty.
$mailer = Mage::getModel('core/email_template_mailer');
$mailer returns empty, so I think the key is here.
I reiterate that this bit is unaltered Magento core so no custimizations here.
Any clues to what's wrong? Or at least how do I trace this error to it's origin? Or maybe tips where to start looking.
Mage::getModel('catalog/product')->load(1)
? Do you get the same "call to a member function XXXX() on a non-object"? – Julien Lachal Apr 10 '15 at 12:50$mailer = Mage::getModel('core/email_template_mailer');
is returning blank / null then this is the issue. I'm guessing you've over-ridden a core file (in local pool) that has since been altered by 1.9.1? Could you list the items you're overriding? – Douglas Radburn Apr 10 '15 at 12:53