Magento Forum

   
Front Store completely down due to translation/locale problem
 
N Lopez
Sr. Member
 
Total Posts:  94
Joined:  2008-06-16
 

I have a fatal error on my front store. When I try to access it I have this screen:

Warning: json_encode(): Invalid UTF-8 sequence in argument in /backup/hsphere/local/home/papiringo/calzafino.com/lib/Zend/Json.php on line 95
Trace:
#0 /backup/hsphere/local/home/papiringo/calzafino.com/lib/Zend/Json.php(95): mageCoreErrorHandler(2, ‘json_encode(): ...’, ‘/backup/hsphere...’, 95, Array)
#1 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Helper/Js.php(48): Zend_Json::encode(Array)
#2 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Helper/Js.php(58): Mage_Core_Helper_Js->getTranslateJson(Array)
#3 /backup/hsphere/local/home/papiringo/calzafino.com/app/design/frontend/default/modern/template/page/html/head.phtml(42): Mage_Core_Helper_Js->getTranslatorScript()
#4 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Template.php(144): include(’/backup/hsphere...’)
#5 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView()
#6 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView(’frontend/defaul...’)
#7 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#8 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#9 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml()
#10 /backup/hsphere/local/home/papiringo/calzafino.com/app/design/frontend/default/modern/template/page/3columns.phtml(35): Mage_Core_Block_Abstract->getChildHtml(’head’, true)
#11 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Template.php(144): include(’/backup/hsphere...’)
#12 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(’head’)
#13 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView(’frontend/defaul...’)
#14 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#15 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract->toHtml()
#16 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout->getOutput()
#17 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Cms/Helper/Page.php(100): Mage_Core_Controller_Varien_Action->renderLayout()
#18 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage()
#19 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Cms_IndexController->indexAction(Object(Mage_Cms_IndexController), ‘home’)
#20 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch()
#21 /backup/hsphere/local/home/papiringo/calzafino.com/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(’index’)
#22 /backup/hsphere/local/home/papiringo/calzafino.com/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#23 /backup/hsphere/local/home/papiringo/calzafino.com/index.php(65): Mage::run()
#24 {main}

My host took a look at this and this is they answer:

The UTF-8 error I believe has to do with your translation/locale. Magento is not able to parse some of your language strings as valid UTF-8 which results in the error. For now, I have changed your locale to en_US in order for you to have a look at the problem.

What I consider more unusual is this error just appeared suddenly, I did not make any changes the day or even the week before this problem. I am using ver 1.3.2.3 in a shared hosting.

Does somebody have a similar problem, any suggestions how to fix it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
N Lopez
Sr. Member
 
Total Posts:  94
Joined:  2008-06-16
 

All this happened while using the Spanish (Mexico) locale for my Spanish store view, as son I changed it to English (United States) the problem was gone.

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