Magento Mage::getModel('core/email_template') returns an empty object

Magento Mage::getModel('core/email_template') returns an empty object

October 13, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento Mage::getModel('core/email_template') returns an empty object

Magento: Solving the Empty Email Template Model Issue

Hello,

I want to address your recent issue with Magento where calling Mage::getModel('core/email_template') returns an empty object, causing widespread failures like order emails not being sent and comment add-ons not working properly.

Let’s dive into this problem and find a solution step-by-step.

Understanding the Problem

When you create an instance of the email template model using Mage::getModel('core/email_template'), it typically points to /home/website/public_html/app/code/core/Mage/Core/Model/Email/Template.php. However, in your case, something is preventing this model from being loaded correctly.

The error message you’re seeing:

Fatal error: Call to a member function addBcc() on a non-object in /home/website/public_html/app/code/core/Mage/Core/Model/Email/Template/Mailer.php on line 69

indicates that addBcc() is being called on an object that isn’t actually an instance of the email template model. This happens because $emailTemplate = Mage::getModel('core/email_template'); returns false, meaning no valid object was created.

Possible Causes and Solutions

There could be several reasons why this issue occurs:

  1. Incorrect Magento version: Ensure you’re using version 1.9.0.1 exactly as stated in your question. If there’s a version mismatch, the model might not load correctly.

  2. Extension conflicts: Check if any third-party extensions are overriding or interfering with the core email template functionality. Disabling them temporarily can help identify if an extension is causing the issue.

  3. Incorrect path configuration: Although less likely in your case, double-check that all necessary files and folders exist at /home/website/public_html/app/code/core/Mage/Core/Model/Email/Template.php exactly as mentioned.

Best Practices for Debugging

To debug this efficiently:

  • Enable Magento’s developer mode by setting default_config --> general --> developer --> enabled to 1 in the config file.
  • Check the error logs at /home/website/public_html/var/log/ for any additional clues about what might be causing the problem.

My Recommendation

Given that you’re already aware of the core model path and have verified your Magento version, I would recommend thoroughly checking for third-party extension conflicts. Disabling extensions one by one and observing if the issue persists can help pinpoint which extension (if any) is interfering with the email template loading process.

If no extension appears to be causing the problem, it might be worth reaching out to Mage::getModel’s creator directly or exploring their community forums for more specific guidance on your setup.

Remember, Magento’s core models are designed to follow a specific hierarchy and naming convention. Any deviation from this standard could lead to unexpected behavior like the empty object issue you’re experiencing.

Conclusion

In summary, when facing an empty email template model in Magento:

  • Verify your Magento version
  • Check for extension conflicts
  • Enable developer mode and review error logs
  • Test disabling extensions one by one
  • Reach out to Mage::getModel’s creators or community forums if needed

I hope this analysis helps you resolve the issue quickly. If you’re looking for more in-depth Magento tutorials or support, feel free to explore our resources at https://laravelcompany.com.

Remember, debugging is an iterative process that often involves a combination of these steps until the root cause is identified and resolved.

Thank you for reaching out with this question! Let me know if you need any further assistance.

Magento 1 Extensions Themes Email

Our network