So here's what I've done: Loads of customizing using /local copies of /core files. Updated from 126.96.36.199 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.