Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

New Shipment email messing up
 
aaroncampbell
Jr. Member
 
Total Posts:  30
Joined:  2007-12-07
 

I’m trying to set up a store.  This line in my New Shipment E-Mail is causing an error

{{layout handle="sales_email_order_shipment_items" shipment=$shipment order=$order}}

Here is the error:

WarningMage_Core_Block_Template::include(/home/acholibeads/www/store/app/design/adminhtml/default/default/template/email/order/shipment/items.phtml[<a href='mage-core-block-template.include'>mage-core-block-template.include</a>]failed to open streamNo such file or directory  in /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php on line 144

#0 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(144): mageCoreErrorHandler(2, 'Mage_Core_Block...', '/home/acholibea...', 144, Array)
#1 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(144): Mage_Core_Block_Template::fetchView()
#2 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#3 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#4 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#5 /home/acholibeads/www/store/app/code/core/Mage/Core/Model/Layout.php(515): Mage_Core_Block_Abstract->toHtml()
#6 /home/acholibeads/www/store/app/code/core/Mage/Core/Model/Email/Template/Filter.php(111): Mage_Core_Model_Layout->getOutput()
#7 /home/acholibeads/www/store/lib/Varien/Filter/Template.php(128): Mage_Core_Model_Email_Template_Filter->layoutDirective(Array)
#8 /home/acholibeads/www/store/app/code/core/Mage/Core/Model/Email/Template.php(265): Varien_Filter_Template->filter(Array, Array)
#9 /home/acholibeads/www/store/app/code/core/Mage/Adminhtml/Block/System/Email/Template/Preview.php(50): Mage_Core_Model_Email_Template->getProcessedTemplate('<style type="te...')
#10 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Adminhtml_Block_System_Email_Template_Preview->_toHtml(Array, true)
#11 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#12 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml()
#13 /home/acholibeads/www/store/app/design/adminhtml/default/default/template/system/email/template/preview.phtml(34): Mage_Core_Block_Abstract->getChildHtml('content', true)
#14 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(144): include('/home/acholibea...')
#15 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('content')
#16 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView('adminhtml/defau...')
#17 /home/acholibeads/www/store/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#18 /home/acholibeads/www/store/app/code/core/Mage/Core/Model/Layout.php(515): Mage_Core_Block_Abstract->toHtml()
#19 /home/acholibeads/www/store/app/code/core/Mage/Core/Controller/Varien/Action.php(326): Mage_Core_Model_Layout->getOutput()
#20 /home/acholibeads/www/store/app/code/core/Mage/Adminhtml/controllers/System/Email/TemplateController.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#21 /home/acholibeads/www/store/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_System_Email_TemplateController->previewAction()
#22 /home/acholibeads/www/store/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch()
#23 /home/acholibeads/www/store/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Admin->match('preview')
#24 /home/acholibeads/www/store/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#25 /home/acholibeads/www/store/index.php(46): Mage::run()
#26 {main}

It doesn’t look like it touches any template files, but just in case, I ran a few diffs, and all the files mentioned above are identical to the 1.1.6 download.  The file (/home/acholibeads/www/store/app/design/adminhtml/default/default/template/email/order/shipment/items.phtml) doesn’t exist, but the New Shipment E-Mail works on a default install, and that file doesn’t exist on a default install either.

Any ideas?

EDIT: Someone wanted to see /www/store/app/code/core/Mage/Core/Block/Template.php ...in case it’s useful for anyone else: http://paste2.org/p/101509

 
Magento Community Magento Community
Magento Community
Magento Community
 
aaroncampbell
Jr. Member
 
Total Posts:  30
Joined:  2007-12-07
 

Changing

{{layout handle="sales_email_order_shipment_items" shipment=$shipment order=$order}}
to
{{layout handle="email_order_items" shipment=$shipment order=$order}}
fixed the problem.  Anyone know why?
 
Magento Community Magento Community
Magento Community
Magento Community
 
kiatng
Enthusiast
 
Total Posts:  875
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

Thanks for pointing that out.  And this works too:

{{layout handle="sales_email_order_items" shipment=$shipment order=$order}}

But I don’t know why the warning isn’t on the sales directory like this: app/design/adminhtml/default/default/template/sales/email/order/shipment/items.phtml

http://www.magentocommerce.com/boards/viewthread/27480/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top