Fatal error: Uncaught Error: Call to undefined function iconv() - CREATE TARGET, LIST,CAMPAING ... #3176

Closed
opened 2026-02-20 16:01:55 -05:00 by deekerman · 11 comments
Owner

Originally created by @maverikmaverik on GitHub (Jun 20, 2018).

Issue

This error occurs in different options, it is an error of the Lucene module.

Error when creating a new targets list and also when creating a new campaign, I suppose that it will give an error in all the options that load this module.

Expected Behavior

It is produced this error:

Fatal error: Uncaught Error: Call to undefined function iconv() in /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php:222 Stack trace: #0 /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php(131): Zend_Search_Lucene_Field->getUtf8Value() #1 /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/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/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene.php(1410): Zend_Search_Lucene_Index_Writer->addDocument(Object(Zend_Search_Lucene_Document)) #3 /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/AOD_Index.php(310): Zend_Search_Lucene->addDocument(Object(Zend_Search_Lucene_Document)) #4 /home/admin/domains/grupo-omnimedia.com/public in /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php on line 222

Actual Behavior

Possible Fix

Steps to Reproduce

  1. create a new TARGET or TARGETS LIST
  2. or too create a new CAMPAING

Context

Your Environment

  • SuiteCRM Version used: 7.10.7
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): all browser
  • Environment name and version (e.g. MySQL, PHP 7): PHP7 mysql
  • Operating System and version (e.g Ubuntu 16.04): Centos
    screenshot_1
    screenshot_2
    screenshot_3
    screenshot_4
    screenshot_5
Originally created by @maverikmaverik on GitHub (Jun 20, 2018). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> This error occurs in different options, it is an error of the Lucene module. Error when creating a new **targets lis**t and also when **creating a new campaign**, I suppose that it will give an error in all the options that load this module. #### Expected Behavior <!--- Tell us what should happen --> It is produced this error: **Fatal error:** Uncaught Error: Call to undefined function iconv() in /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php:222 Stack trace: #0 /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php(131): Zend_Search_Lucene_Field->getUtf8Value() #1 /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/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/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene.php(1410): Zend_Search_Lucene_Index_Writer->addDocument(Object(Zend_Search_Lucene_Document)) #3 /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/AOD_Index.php(310): Zend_Search_Lucene->addDocument(Object(Zend_Search_Lucene_Document)) #4 /home/admin/domains/grupo-omnimedia.com/public in /home/admin/domains/grupo-omnimedia.com/public_html/suitecrm/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php on line 222 #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. create a new TARGET or TARGETS LIST 2. or too create a new CAMPAING 3. 4. #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.10.7 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): all browser * Environment name and version (e.g. MySQL, PHP 7): PHP7 mysql * Operating System and version (e.g Ubuntu 16.04): Centos ![screenshot_1](https://user-images.githubusercontent.com/40229134/41667413-39659790-74ad-11e8-8dcf-d3e2c2e6f732.jpg) ![screenshot_2](https://user-images.githubusercontent.com/40229134/41667414-39885a14-74ad-11e8-8ea0-574105813ce6.jpg) ![screenshot_3](https://user-images.githubusercontent.com/40229134/41667415-39d6c47e-74ad-11e8-961a-8df536605bb0.jpg) ![screenshot_4](https://user-images.githubusercontent.com/40229134/41667416-3a0713b8-74ad-11e8-9e0e-b6f8d844e1e3.jpg) ![screenshot_5](https://user-images.githubusercontent.com/40229134/41667418-3a451e92-74ad-11e8-9ac4-701b872cb250.jpg)
Author
Owner

@maverikmaverik commented on GitHub (Jun 20, 2018):

The Campaigns option has many errors and it is impossible to create a new complete NEWLETTER CAMPAIGN.

@maverikmaverik commented on GitHub (Jun 20, 2018): The Campaigns option has many errors and it is impossible to create a new complete NEWLETTER CAMPAIGN.
Author
Owner

@Dillon-Brown commented on GitHub (Jun 20, 2018):

Hi @maverikmaverik, iconv is a PHP extension. You just need to uncomment it in your php.ini.

@Dillon-Brown commented on GitHub (Jun 20, 2018): Hi @maverikmaverik, iconv is a PHP extension. You just need to uncomment it in your php.ini.
Author
Owner

@maverikmaverik commented on GitHub (Jun 21, 2018):

I have php7 and the php iconv extension is installed so I miss that error, it has to be for another reason.

@maverikmaverik commented on GitHub (Jun 21, 2018): I have php7 and the php iconv extension is installed so I miss that error, it has to be for another reason.
Author
Owner

@pgorod commented on GitHub (Jun 21, 2018):

Cam you please go in Admin / Diagnostic tool and run phpinfo() from there?

This will let you examine the effective modules being loaded, because sometimes things are configured in one php.ini but it is not the correct one, and this helps to determine exactly what is loaded.

@pgorod commented on GitHub (Jun 21, 2018): Cam you please go in `Admin / Diagnostic tool` and run `phpinfo()` from there? This will let you examine the effective modules being loaded, because sometimes things are configured in one php.ini but it is not the correct one, and this helps to determine exactly what is loaded.
Author
Owner

@maverikmaverik commented on GitHub (Jun 21, 2018):

All ok
screenshot_2

@maverikmaverik commented on GitHub (Jun 21, 2018): All ok ![screenshot_2](https://user-images.githubusercontent.com/40229134/41722380-aba476d0-7568-11e8-9464-0a05bbd9fc36.jpg)
Author
Owner

@pgorod commented on GitHub (Jun 21, 2018):

You have to click the "Download diagnostic file" at the bottom, download it, unzip it, open phpinfo output in a web browser, examine your effective loaded modules.

You should untick all those other diagnostics and ask just for phpinfo.

@pgorod commented on GitHub (Jun 21, 2018): You have to click the "Download diagnostic file" at the bottom, download it, unzip it, open phpinfo output in a web browser, examine your effective loaded modules. You should untick all those other diagnostics and ask just for phpinfo.
Author
Owner

@maverikmaverik commented on GitHub (Jun 21, 2018):

php7 iconv is by default,

You don't have to install the extension to part because it is already included in php7

@maverikmaverik commented on GitHub (Jun 21, 2018): php7 iconv is by default, You don't have to install the extension to part because it is already included in php7
Author
Owner

@pgorod commented on GitHub (Jun 21, 2018):

I know that, but you say you're getting Fatal error: Uncaught Error: Call to undefined function iconv() which seems to suggest otherwise. You're not the only person on the Internet with this incoherence on PHP 7.0.

I'm trying to help you but if you feel you have a better way of diagnosing the problem, go ahead, explore it, and then tell us the results.

@pgorod commented on GitHub (Jun 21, 2018): I know that, but you say you're getting `Fatal error: Uncaught Error: Call to undefined function iconv()` which seems to suggest otherwise. You're not the only person on the Internet with this incoherence on PHP 7.0. I'm trying to help you but if you feel you have a better way of diagnosing the problem, go ahead, explore it, and then tell us the results.
Author
Owner

@maverikmaverik commented on GitHub (Jun 22, 2018):

Thank you for your help, because all I want is to make this suiteCRM work that is giving me many problems, so all the help is small and I am very grateful.

I have spoken with the systems team and they have told me that iconv in version php7 is included and they have confirmed that is installed.

I do not know what it could be...

@maverikmaverik commented on GitHub (Jun 22, 2018): Thank you for your help, because all I want is to make this **suiteCRM** work that is giving me many problems, so all the help is small and I am very grateful. I have spoken with the systems team and they have told me that iconv in version php7 is included and they have confirmed that is installed. I do not know what it could be...
Author
Owner

@mattlorimer commented on GitHub (Jun 22, 2018):

Either your iconv is not enable and/or not installed or there is something wrong with your setup,
but if your are not using the AOD search functionality, just go to Admin->AOD Settings and disable AOD

@mattlorimer commented on GitHub (Jun 22, 2018): Either your iconv is not enable and/or not installed or there is something wrong with your setup, but if your are not using the AOD search functionality, just go to Admin->AOD Settings and disable AOD
Author
Owner

@maverikmaverik commented on GitHub (Jun 22, 2018):

Disabled AOD
screenshot_9

At the moment no error.

Thank you

@maverikmaverik commented on GitHub (Jun 22, 2018): Disabled AOD ![screenshot_9](https://user-images.githubusercontent.com/40229134/41768781-8797ed8a-760d-11e8-8335-a94f7ec53416.jpg) At the moment no error. Thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#3176
No description provided.