email setup woes

There may be more going on here, but i can’t seem to get the email portion of my install going. when I go to the incoming mail settings it displays this error:

A non-numeric value encountered in /home/*****/public_html/sales/include/ListView/ListView.php on line 1189  (username replaced with ***)

when I go to outboud mail settings and click edit i get this error message:


Warning: A non-numeric value encountered in /home/******/public_html/sales/cache/smarty/templates_c/%%1A^1AB^1AB6DD00%%tab_panel_content.tpl.php on line 190

Warning: A non-numeric value encountered in /home******/public_html/sales/cache/smarty/templates_c/%%1A^1AB^1AB6DD00%%tab_panel_content.tpl.php on line 190

and if I try to change the smtp auth I get these errors:

Fatal error: Uncaught Error: Call to undefined function iconv() in /home/******/public_html/sales/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php:222
Stack trace:
#0 /home/******/public_html/sales/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php(131): Zend_Search_Lucene_Field->getUtf8Value()
#1 /home/******/public_html/sales/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******/public_html/sales/modules/AOD_Index/Lib/Zend/Search/Lucene.php(1410): Zend_Search_Lucene_Index_Writer->addDocument(Object(Zend_Search_Lucene_Document))
#3 /home******/public_html/sales/modules/AOD_Index/AOD_Index.php(310): Zend_Search_Lucene->addDocument(Object(Zend_Search_Lucene_Document))
#4 /home******/public_html/sales/modules/AOD_Index/AOD_LogicHooks.php(36): AOD_Index->index('OutboundEmailAc...', '7b4ebd4f-933b-0...')
#5 /home/******/public_html/sales/include/utils/LogicHo in /home/aucanna/public_html/sales/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php on line 222

There’s quite a few other problems, but for now I would love to be able to set emails to go out! Right now all my settings appear to be correct, but i’m not receiving any emails from the system.

Which version of SuiteCRM are you running? And version of PHP?

You can safely ignore warnings and notices.

The FATAL errors deserve more attention. You error seems related to AOD_Index which is the indexer for the Global Search function. It has nothing to do with email…

Thanks for your help. I have php 7.1.9 and sugar is: Version 7.9.4 Sugar Version 6.5.24 (Build 509)

If this is a new installation and you have many different problems, normally that is caused by permissions problems. Did you set permissions? Which commands did you use?

Please post here the results of this command, given from your SuiteCRM root directory:

ls -al

This let’s me get a quick overview of what you have in terms of ownerships and permissions.

I THINK i set up permissions right. Here is what I did

find -type d -print0 | xargs -0 chmod 0755
find -type f -print0 | xargs -0 chmod 0644

and this is the result of ls -al: (i changed the account user to “username” for display purposes here.

total 2232
drwxr-xr-x 19 username username 4096 Sep 15 14:13 .
drwxr-xr-x 12 username username 4096 Sep 20 04:30 …
-rw-r–r-- 1 username username 2645 Sep 15 14:13 .htaccess
-rw-r–r-- 1 username username 533 Sep 15 14:13 .user.ini
drwxr-xr-x 3 username username 4096 Jul 26 15:38 .well-known
-rw-r–r-- 1 username username 3094 Jul 20 05:42 CODE_OF_CONDUCT.md
-rw-r–r-- 1 username username 2811 Jul 20 05:42 HandleAjaxCall.php
-rw-r–r-- 1 username username 34539 Jul 20 05:42 LICENSE.txt
drwxr-xr-x 3 username username 4096 Jul 20 05:42 ModuleInstall
-rw-r–r-- 1 username username 3737 Jul 20 08:13 README.md
-rw-r–r-- 1 username username 5327 Jul 20 05:42 SugarSecurity.php
-rw-r–r-- 1 username username 5843 Jul 20 05:42 TreeData.php
drwxr-xr-x 2 username username 4096 Jul 20 05:42 XTemplate
drwxr-xr-x 8 username username 4096 Jul 20 05:42 Zend
drwxr-xr-x 15 username username 4096 Sep 15 13:28 cache
-rw-r–r-- 1 username username 3590 Jul 20 05:42 campaign_tracker.php
drwxr-xr-x 2 username username 4096 Jul 26 15:37 cgi-bin
-rw-r–r-- 1 username username 462 Jul 20 05:42 composer.json
-rw-r–r-- 1 username username 17908 Jul 20 05:42 composer.lock
-rw-r–r-- 1 username username 10125 Jul 26 19:29 config.php
-rw-r–r-- 1 username username 573 Sep 15 13:36 config_override.php
-rw-r–r-- 1 username username 58 Jul 26 15:38 cred
-rw-r–r-- 1 username username 5052 Jul 20 05:42 cron.php
-rw-r–r-- 1 username username 2446 Jul 20 05:42 crossdomain.xml
drwxr-xr-x 8 username username 4096 Jul 26 19:29 custom
drwxr-xr-x 3 username username 4096 Jul 20 05:42 data
-rw-r–r-- 1 username username 2388 Jul 20 05:42 dictionary.php
-rw-r–r-- 1 username username 12541 Jul 20 05:42 download.php
-rw-r–r-- 1 username username 2392 Jul 20 05:42 emailmandelivery.php
-rw-r–r-- 1 username username 922956 Sep 20 10:49 error_log
-rw-r–r-- 1 username username 4912 Jul 20 05:42 export.php
-rw-r–r-- 1 username username 967627 Jul 20 05:42 files.md5
-rw-r–r-- 1 username username 2371 Jul 20 05:42 ical_server.php
drwxr-xr-x 58 username username 4096 Jul 20 05:42 include
-rw-r–r-- 1 username username 2374 Jul 20 05:42 index.php
drwxr-xr-x 6 username username 4096 Jul 26 19:29 install
-rw-r–r-- 1 username username 19275 Jul 26 19:29 install.log
-rw-r–r-- 1 username username 30844 Jul 20 05:42 install.php
-rw-r–r-- 1 username username 13373 Jul 20 05:42 json_server.php
drwxr-xr-x 3 username username 4096 Jul 20 05:42 jssource
-rw-r–r-- 1 username username 2313 Jul 20 05:42 log_file_restricted.html
-rw-r–r-- 1 username username 2376 Jul 20 05:42 maintenance.php
drwxr-xr-x 2 username username 4096 Jul 20 05:42 metadata
drwxr-xr-x 112 username username 4096 Jul 20 05:42 modules
-rw-r–r-- 1 username username 2890 Jul 20 05:42 pdf.php
-rw-r–r-- 1 username username 625 Sep 15 14:13 php.ini
-rw-r–r-- 1 username username 304 Jul 20 05:42 php_version.php
-rw-r–r-- 1 username username 73 Jul 20 05:42 robots.txt
-rw-r–r-- 1 username username 3588 Jul 20 05:42 run_job.php
drwxr-xr-x 11 username username 4096 Jul 20 05:42 service
drwxr-xr-x 2 username username 4096 Jul 20 05:42 soap
-rw-r–r-- 1 username username 4091 Jul 20 05:42 soap.php
-rw-r–r-- 1 username username 154 Jul 20 05:42 sugar_version.json
-rw-r–r-- 1 username username 2263 Jul 20 05:42 sugar_version.php
-rw-r–r-- 1 username username 0 Sep 15 13:53 sugarcrm.log
-rw-r–r-- 1 username username 6550 Sep 20 09:47 suitecrm.log
-rw-r–r-- 1 username username 169 Jul 20 08:13 suitecrm_version.php
drwxr-xr-x 6 username username 4096 Jul 20 05:42 themes
drwxr-xr-x 4 username username 4096 Sep 15 13:30 upload
-rw-r–r-- 1 username username 2980 Jul 20 05:42 vCard.php
-rw-r–r-- 1 username username 2707 Jul 20 05:42 vcal_server.php

Just use the recommended settings from the Installation Guide:


    sudo chown -R www-data:www-data .
    sudo chmod -R 755 .
    sudo chmod -R 775 cache custom modules themes data upload config_override.php 

Run that from the root directory of SuiteCRM. Note that a couple of those commands end with a space followed by a dot (" .")

Of course, replace www-data:www-data with your username:username

Thanks again for your help with this. when I try to run the first command, I get an error :

user@server.com [sales]# chown -R www-data:www-data .
chown: invalid user: `www-data:www-data’

the other two changed fine.

when i try to change my outgoing settnigs within sugar after that i get this error:

Warning: Declaration of SugarWidgetFieldBool::displayInput(&$layout_def) should be compatible with SugarWidgetField::displayInput($layout_def) in /home/xxxxxx/public_html/sales/include/generic/SugarWidgets/SugarWidgetFieldbool.php on line 42

@rudtek just read my previous post with attention, the answer is there in the last sentence :slight_smile:

oops :oops:
Man, sorry i missed that. I changed it with my username. Ran all the commands again, but am still getting the same errors.

her is my ls -al

drwxr-xr-x 19 username username 4096 Sep 29 16:45 .
drwxr-xr-x 12 username username 4096 Sep 30 00:31 …
-rwxr-xr-x 1 username username 2645 Sep 29 16:45 .htaccess
-rwxr-xr-x 1 username username 574 Sep 29 15:51 .user.ini
drwxr-xr-x 3 username username 4096 Jul 26 15:38 .well-known
-rwxr-xr-x 1 username username 3094 Jul 20 05:42 CODE_OF_CONDUCT.md
-rwxr-xr-x 1 username username 2811 Jul 20 05:42 HandleAjaxCall.php
-rwxr-xr-x 1 username username 34539 Jul 20 05:42 LICENSE.txt
drwxr-xr-x 3 username username 4096 Jul 20 05:42 ModuleInstall
-rwxr-xr-x 1 username username 3737 Jul 20 08:13 README.md
-rwxr-xr-x 1 username username 5327 Jul 20 05:42 SugarSecurity.php
-rwxr-xr-x 1 username username 5843 Jul 20 05:42 TreeData.php
drwxr-xr-x 2 username username 4096 Jul 20 05:42 XTemplate
drwxr-xr-x 8 username username 4096 Jul 20 05:42 Zend
drwxrwxr-x 15 username username 4096 Sep 15 13:28 cache
-rwxr-xr-x 1 username username 3590 Jul 20 05:42 campaign_tracker.php
drwxr-xr-x 2 username username 4096 Jul 26 15:37 cgi-bin
-rwxr-xr-x 1 username username 462 Jul 20 05:42 composer.json
-rwxr-xr-x 1 username username 17908 Jul 20 05:42 composer.lock
-rwxr-xr-x 1 username username 10125 Jul 26 19:29 config.php
-rwxrwxr-x 1 username username 573 Sep 15 13:36 config_override.php
-rwxr-xr-x 1 username username 58 Jul 26 15:38 cred
-rwxr-xr-x 1 username username 5052 Jul 20 05:42 cron.php
-rwxr-xr-x 1 username username 2446 Jul 20 05:42 crossdomain.xml
drwxrwxr-x 8 username username 4096 Jul 26 19:29 custom
drwxrwxr-x 3 username username 4096 Jul 20 05:42 data
-rwxr-xr-x 1 username username 2388 Jul 20 05:42 dictionary.php
-rwxr-xr-x 1 username username 12541 Jul 20 05:42 download.php
-rwxr-xr-x 1 username username 2392 Jul 20 05:42 emailmandelivery.php
-rwxr-xr-x 1 username username 666931 Sep 30 11:37 error_log
-rwxr-xr-x 1 username username 4912 Jul 20 05:42 export.php
-rwxr-xr-x 1 username username 967627 Jul 20 05:42 files.md5
-rwxr-xr-x 1 username username 2371 Jul 20 05:42 ical_server.php
drwxr-xr-x 58 username username 4096 Jul 20 05:42 include
-rwxr-xr-x 1 username username 2374 Jul 20 05:42 index.php
drwxr-xr-x 6 username username 4096 Jul 26 19:29 install
-rwxr-xr-x 1 username username 19275 Jul 26 19:29 install.log
-rwxr-xr-x 1 username username 30844 Jul 20 05:42 install.php
-rwxr-xr-x 1 username username 13373 Jul 20 05:42 json_server.php
drwxr-xr-x 3 username username 4096 Jul 20 05:42 jssource
-rwxr-xr-x 1 username username 2313 Jul 20 05:42 log_file_restricted.html
-rwxr-xr-x 1 username username 2376 Jul 20 05:42 maintenance.php
drwxr-xr-x 2 username username 4096 Jul 20 05:42 metadata
drwxrwxr-x 112 username username 4096 Jul 20 05:42 modules
-rwxr-xr-x 1 username username 2890 Jul 20 05:42 pdf.php
-rwxr-xr-x 1 username username 643 Sep 29 15:50 php.ini
-rwxr-xr-x 1 username username 304 Jul 20 05:42 php_version.php
-rwxr-xr-x 1 username username 73 Jul 20 05:42 robots.txt
-rwxr-xr-x 1 username username 3588 Jul 20 05:42 run_job.php
drwxr-xr-x 11 username username 4096 Jul 20 05:42 service
drwxr-xr-x 2 username username 4096 Jul 20 05:42 soap
-rwxr-xr-x 1 username username 4091 Jul 20 05:42 soap.php
-rwxr-xr-x 1 username username 154 Jul 20 05:42 sugar_version.json
-rwxr-xr-x 1 username username 2263 Jul 20 05:42 sugar_version.php
-rwxr-xr-x 1 username username 0 Sep 15 13:53 sugarcrm.log
-rwxr-xr-x 1 username username 6550 Sep 20 09:47 suitecrm.log
-rwxr-xr-x 1 username username 169 Jul 20 08:13 suitecrm_version.php
drwxrwxr-x 6 username username 4096 Jul 20 05:42 themes
drwxrwxr-x 4 username username 4096 Sep 15 13:30 upload
-rwxr-xr-x 1 username username 2980 Jul 20 05:42 vCard.php
-rwxr-xr-x 1 username username 2707 Jul 20 05:42 vcal_server.php

It seems iconv is a PHP module that you need to enable (either apt install it in Linux, or activate it in your CPanel if you’re on shared hosting).