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

Upgrade to 1.7 throws error : Wrong Content Type…. 
 
ncotrona
Sr. Member
 
Total Posts:  161
Joined:  2009-05-15
 

I upgraded from 1.6.1 to 1.7.0 and I get the following error when I try to login to the admin.. The frontend is accessible…

Any suggestions????

There has been an error processing your request

Wrong Content Type.

Trace:
#0 /public_html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php(397): Mage::throwException(’Wrong Content T...’)
#1 /public_html/app/code/core/Mage/Adminhtml/Model/System/Config/Source/Shipping/Allmethods.php(44): Mage_Usa_Model_Shipping_Carrier_Dhl_International->getAllowedMethods()
#2 /public_html/app/code/community/BL/OrdersGrid/Model/Grid/Type/Sales/Order.php(110): Mage_Adminhtml_Model_System_Config_Source_Shipping_Allmethods->toOptionArray()
#3 /public_html/app/code/community/BL/CustomGrid/Model/Grid/Type/Abstract.php(96): BL_OrdersGrid_Model_Grid_Type_Sales_Order->_getColumnsLockedValues(’adminhtml/sales...’)
#4 /public_html/app/code/community/BL/CustomGrid/Model/Grid/Type/Abstract.php(111): BL_CustomGrid_Model_Grid_Type_Abstract->getColumnsLockedValues(’adminhtml/sales...’)
#5 /public_html/app/code/community/BL/CustomGrid/Model/Grid.php(591): BL_CustomGrid_Model_Grid_Type_Abstract->getColumnLockedValues(’adminhtml/sales...’, ‘blog_billing_co...’)
#6 /public_html/app/code/community/BL/CustomGrid/Model/Grid.php(1208): BL_CustomGrid_Model_Grid->getColumnLockedValues(’blog_billing_co...’)
#7 /public_html/app/code/community/BL/CustomGrid/Model/Observer.php(775): BL_CustomGrid_Model_Grid->applyColumnsToGridBlock(Object(BL_CustomGrid_Block_Rewrite_Sales_Order_Grid), true)
#8 /public_html/app/code/community/BL/CustomGrid/Model/Observer.php(390) : eval()’d code(67): BL_CustomGrid_Model_Observer->afterGridPrepareCollection(Object(BL_CustomGrid_Block_Rewrite_Sales_Order_Grid))
#9 /public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(626): BL_CustomGrid_Block_Rewrite_Sales_Order_Grid->_prepareCollection()
#10 /public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(632): Mage_Adminhtml_Block_Widget_Grid->_prepareGrid()
#11 /public_html/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Grid->_beforeToHtml()
#12 /public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#13 /public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(’grid’, true)
#14 /public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php(77): Mage_Core_Block_Abstract->getChildHtml(’grid’)
#15 /public_html/app/design/adminhtml/default/default/template/widget/grid/container.phtml(36): Mage_Adminhtml_Block_Widget_Grid_Container->getGridHtml()
#16 /public_html/app/code/core/Mage/Core/Block/Template.php(241): include(’/...’)
#17 /public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(’adminhtml/defau...’)
#18 /public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#19 /public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#20 /public_html/app/code/core/Mage/Adminhtml/Block/Widget/Container.php(308): Mage_Adminhtml_Block_Template->_toHtml()
#21 /public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Adminhtml_Block_Widget_Container->_toHtml()
#22 /public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#23 /public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#24 /public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#25 /public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(’content’, true)
#26 /public_html/app/design/adminhtml/default/default/template/page.phtml(74): Mage_Core_Block_Abstract->getChildHtml(’content’)
#27 /public_html/app/code/core/Mage/Core/Block/Template.php(241): include(’/...’)
#28 /public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(’adminhtml/defau...’)
#29 /public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#30 /public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#31 /public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Adminhtml_Block_Template->_toHtml()
#32 /public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#33 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#34 /public_html/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php(95): Mage_Core_Controller_Varien_Action->renderLayout()
#35 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Sales_OrderController->indexAction()
#36 /public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#37 /public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#38 /public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#39 /public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#40 /public_html/index.php(87): Mage::run(’’, ‘store’)
#41 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
ncotrona
Sr. Member
 
Total Posts:  161
Joined:  2009-05-15
 

RESOLVED !!!!

The following code needs to be added to /public_html/app/code/core/Mage/Usa/etc/config.xml. 

<carriers>
<dhlint>
<content_type>D</content_type>
</dhlint>
</carriers>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rytje
Jr. Member
 
Total Posts:  1
Joined:  2011-07-12
 

Got the same issue. This solves the problem! Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
kalenjordan
Sr. Member
 
Avatar
Total Posts:  218
Joined:  2011-10-31
Pasadena, CA
 

Hey @ncotrona, great find!  If I may make one minor suggestion, you can place that config value in a custom module, as opposed to modifying the Mage_Usa module in the core directly.  This will make upgrades go much more smoothly for you down the road.

 
Magento Community Magento Community
Magento Community
Magento Community
 
joykeller
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2010-09-20
Chicago
 

I got the same error, not while upgrading but after installing the One Step Checkout extension.  In the admin, when I went to “One Step Checkout”, it threw this error.

I’m on Enterprise 1.12.0.2 as well, hopefully this helps someone else.

The solution above fixed my issue too.  Many thanks!

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