Magento无法在更新后发送订单电子邮件

时间:2015-04-30 08:11:21

标签: magento

我是Magento的新手。我试图从1.8.1更新到1.9.1。更新后,一切似乎都很完美。但是当你订购产品时,你不会收到任何电子邮件。

我真的不太了解Magento所以任何提示都会令人惊讶。

我在此过程中遇到以下2个例外:

btw:“UngültigerBlocktyp”的意思是“无效的块类型”

2015-04-30T08:03:43+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Ungültiger Blocktyp:
Mage_Imprint_Block_Content' in /var/www/vhosts/somedomain.com/httpdocs/shop2/app/Mage.php:595

Stack trace:
#0 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ung\xC3\xBCltiger Blo...')
#1 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('imprint/content', Array)
#2 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template/Filter.php(169): Mage_Core_Model_Layout->createBlock('imprint/content', NULL, Array)
#3 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#4 /var/www/vhosts/somedomain.com/httpdocs/shop2/lib/Varien/Filter/Template.php(163): call_user_func(Array, Array)
#5 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template/Filter.php(548): Varien_Filter_Template->filter('<!--@vars\n{"sto...')
#6 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template.php(311): Mage_Core_Model_Email_Template_Filter->filter('<!--@vars\n{"sto...')
#7 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template.php(391): Mage_Core_Model_Email_Template->getProcessedTemplate(Array, true)
#8 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template.php(508): Mage_Core_Model_Email_Template->send(Array, Array, Array)
#9 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template/Mailer.php(84): Mage_Core_Model_Email_Template->sendTransactional('7', 'sales', Array, Array, Array, '1')
#10 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Sales/Model/Order.php(1354): Mage_Core_Model_Email_Template_Mailer->send()
#11 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Checkout/Model/Type/Onepage.php(813): Mage_Sales_Model_Order->queueNewOrderEmail()
#12 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#13 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#14 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#15 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#16 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#17 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#18 /var/www/vhosts/somedomain.com/httpdocs/shop2/index.php(87): Mage::run('', 'store')
#19 {main}
2015-04-30T08:03:43+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Ungültiger Blocktyp: Mage_Imprint_Block_Field' in /var/www/vhosts/somedomain.com/httpdocs/shop2/app/Mage.php:595
Stack trace:
#0 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ung\xC3\xBCltiger Blo...')
#1 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('imprint/field', Array)
#2 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template/Filter.php(169): Mage_Core_Model_Layout->createBlock('imprint/field', NULL, Array)
#3 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#4 /var/www/vhosts/somedomain.com/httpdocs/shop2/lib/Varien/Filter/Template.php(163): call_user_func(Array, Array)
#5 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template/Filter.php(548): Varien_Filter_Template->filter('{{block type="i...')
#6 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template.php(530): Mage_Core_Model_Email_Template_Filter->filter('{{block type="i...')
#7 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template.php(392): Mage_Core_Model_Email_Template->getProcessedTemplateSubject(Array)
#8 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template.php(508): Mage_Core_Model_Email_Template->send(Array, Array, Array)
#9 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/Email/Template/Mailer.php(84): Mage_Core_Model_Email_Template->sendTransactional('7', 'sales', Array, Array, Array, '1')
#10 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Sales/Model/Order.php(1354): Mage_Core_Model_Email_Template_Mailer->send()
#11 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Checkout/Model/Type/Onepage.php(813): Mage_Sales_Model_Order->queueNewOrderEmail()
#12 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#13 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#14 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#15 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#16 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#17 /var/www/vhosts/somedomain.com/httpdocs/shop2/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#18 /var/www/vhosts/somedomain.com/httpdocs/shop2/index.php(87): Mage::run('', 'store')
#19 {main}

2 个答案:

答案 0 :(得分:1)

看起来您的订单确认电子邮件模板可能正在使用已卸载或未正确安装的扩展程序中的某些自定义块。我怀疑这是因为在你的堆栈跟踪中我看到{{block type="imprint/content"...}}。当Magento尝试加载此块时,它找不到它,你可以告诉它,因为它试图从核心加载Mage_Imprint_Block_ContentMage_Imprint_Block_Field而没有找到它们。您应该检查您的模板并删除这些指令。

答案 1 :(得分:0)

您需要确保您的cron作业正常运行。

http://jakesharp.co/magento/magento-emails-not-sent/