Call to undefined function iconv() fatal error - Suitecrm

牧云@^-^@ 提交于 2019-12-08 16:41:25

问题


Using suitecrm 7.9.1

I am facing the below error whenever i try to create a lead , that is after submitting the create lead form.

Facing the same error whenever i try to import a csv file . This error occurs only on live server

Fatal error: Uncaught Error: Call to undefined function iconv() in /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php:222 Stack trace: #0 /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php(131): Zend_Search_Lucene_Field->getUtf8Value() #1 /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/Writer.php(244): Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter->addDocument(Object(Zend_Search_Lucene_Document))

2 /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene.php(1410):

Zend_Search_Lucene_Index_Writer->addDocument(Object(Zend_Search_Lucene_Document)) #3 /home/testsite/public_html/modules/AOD_Index/AOD_Index.php(310): Zend_Search_Lucene->addDocument(Object(Zend_Search_Lucene_Document))

4 /home/testsite/public_html/modules/AOD_Index/AOD_LogicHooks.php(36):

AOD_Index->index('Leads', 'b81874eb-1233-5...') #5 /home/testsite/public_html/include/utils/LogicHook.php(262): AOD_LogicHooks->saveModuleChanges(Object(L in /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php on line 222

what is the cause for this error . newbie to the suitecrm, how to fix it .


回答1:


iconv is a PHP extension. look for an entry in php.ini that you can uncomment, or see following link

https://www.hackersgarage.com/iconv-php-extension-installation-without-recompiling-php.html




回答2:


Install the Iconv module on your CPanel.

  1. Open WHM
  2. EasyApache 4
  3. Customize
  4. PHP extensions
  5. Find iconv. Enable the one matches your PHP version
  6. Review
  7. Provision


来源:https://stackoverflow.com/questions/45768556/call-to-undefined-function-iconv-fatal-error-suitecrm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!