mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Fatal error: Uncaught Error: Call to undefined function iconv() - CREATE TARGET, LIST,CAMPAING ... #3176
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#3176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Context
Your Environment
@maverikmaverik commented on GitHub (Jun 20, 2018):
The Campaigns option has many errors and it is impossible to create a new complete NEWLETTER CAMPAIGN.
@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.
@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.
@pgorod commented on GitHub (Jun 21, 2018):
Cam you please go in
Admin / Diagnostic tooland runphpinfo()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.
@maverikmaverik commented on GitHub (Jun 21, 2018):
All ok

@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.
@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
@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.
@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...
@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
@maverikmaverik commented on GitHub (Jun 22, 2018):
Disabled AOD

At the moment no error.
Thank you