Magento Forum

   
Detected an illegal character
 
poltrian
Sr. Member
 
Total Posts:  122
Joined:  2008-12-21
 

Hallo,

weiß jemand Rat. Ich bekomme den Fehler nicht weg

exception 'Exception' with message 'Notice: iconv_substr() [<a href='function.iconv-substr'>function.iconv-substr</a>]: Detected an illegal character in input string  in /WebServer/app/code/core/Mage/Core/Helper/String.php on line 98' in /WebServer/app/code/core/Mage/Core/functions.php:245
Stack trace
:
#0 [internal function]: mageCoreErrorHandler(8, 'iconv_substr() ...', '/home/giveyourd...', 98, Array)
#1 WebServer/app/code/core/Mage/Core/Helper/String.php(98): iconv_substr('http://www.give...', 0, 250, 'UTF-8')
#2 /WebServer/app/code/core/Mage/Log/Model/Mysql4/Visitor.php(61): Mage_Core_Helper_String->substr('http://www.give...', 0, 250)
#3 /WebServer/app/code/core/Mage/Log/Model/Mysql4/Visitor.php(71): Mage_Log_Model_Mysql4_Visitor->_saveUrlInfo(Object(Mage_Log_Model_Visitor))
#4 /WebServer/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(369): Mage_Log_Model_Mysql4_Visitor->_beforeSave(Object(Mage_Log_Model_Visitor))
#5 /WebServer/app/code/core/Mage/Core/Model/Abstract.php(284): Mage_Core_Model_Mysql4_Abstract->save(Object(Mage_Log_Model_Visitor))
#6 /WebServer/app/code/core/Mage/Log/Model/Visitor.php(170): Mage_Core_Model_Abstract->save()
#7/WebServer/app/code/core/Mage/Core/Model/App.php(1207): Mage_Log_Model_Visitor->saveByRequest(Object(Varien_Event_Observer))
#8e/WebServer/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#9 /WebServer/app/code/core/Mage/Core/Controller/Varien/Action.php(526): Mage::dispatchEvent('controller_acti...', Array)
#10/WebServer/app/code/core/Mage/Core/Controller/Front/Action.php(70): Mage_Core_Controller_Varien_Action->postDispatch()
#11/WebServer/app/code/core/Mage/Core/Controller/Varien/Action.php(422): Mage_Core_Controller_Front_Action->postDispatch()
#12 /WebServer/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('list')
#13/WebServer/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14/WebServer/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#15/WebServer/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#16/WebServer/index.php(78): Mage::run('', 'store')
#17 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
dbashyal
Sr. Member
 
Avatar
Total Posts:  164
Joined:  2008-09-12
rockdale, sydney, australia
 

I am experiencing same issue today as the text has question mark, may be that’s an illegal character in iconv_substr()

Anyone fixed this issue?

UPDATE:
=======
solved using this method: http://stackoverflow.com/questions/13114316/how-to-escape-special-chars-in-php-iconv-substr

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