Selecting related account on email import does not work

I’m testing a Univention App from here. While trying to test email integration I run into trouble importing emails and associating them to accounts (simple email integration is a must here). I successfully configured incoming email box and can see emails there. Then I’d like to import them (after filtering) and associate with specific account. When I press “Import” I see extra “Save” button not mentioned in docs. There’s a “Related To” field which I can fill. I choose “Account” and specify some account. Then:

  1. If I press “Save”, I see very strange page, but email is not imported.
  2. If I press “OK”, I’m asked if I want to leave the page:
    2.1) If I decline, again, email does not get imported.
    2.2) If I agree, email gets imported. BUT, it’s not associated with my chosen account.

I’d like all emails to specific domains to be associated with corresponding accounts. I can do some selection using mailbox filtering rules, but without bulk import (preferably automatic) with correct auto-association nothing will work. How can I make it work correctly?

Hi, welcome to the Community.

Please take a minute to review these guidelines:

https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/18836-guidelines-to-post-in-these-forums

For the specific case you’re posting about, I think the most important parts to provide now are SuiteCRM version and any relevant log messages. Thanks.

Thank you for your reply. I presumed you know which version is currently available on your download page, but here you are (according to the person who installed it):

  • Version 7.9.7
  • Sugar Version 6.5.25 (Build 344)

I’ll post logs later this days since I don’t currently have ssh access to the VM. As I said, it is a Univention App – I thought it’s easier to test this way.

Concerning logs. I tried to reproduce the problem today once again so as to create fresh log entries. However:
[ul]
[li]suitecrm.log contains only the following line for every minute of every day:

Thu May 10 10:12:01 2018 [1898][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone Europe/Moscow. Please set date.timezone="Europe/Moscow" in php.ini!

[/li]- sugarcrm.log contains no new log entries for today.
[li]Here are the relevant messages in Apache error.log:

[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: description_html in /var/www/suitecrm/modules/Emails/Save.php on line 76, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: description_html in /var/www/suitecrm/modules/Emails/Save.php on line 77, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 669, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 669, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 669, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 669, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 669, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 669, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: date_start in /var/www/suitecrm/modules/Emails/Save.php on line 161, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: time_start in /var/www/suitecrm/modules/Emails/Save.php on line 162, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: meridiem in /var/www/suitecrm/modules/Emails/Save.php on line 162, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: from_addr in /var/www/suitecrm/modules/Emails/Save.php on line 195, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: date_start in /var/www/suitecrm/modules/Emails/Save.php on line 239, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: time_start in /var/www/suitecrm/modules/Emails/Save.php on line 240, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Notice:  Undefined index: meridiem in /var/www/suitecrm/modules/Emails/Save.php on line 240, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16

It is also flooded with lines like these two:

[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Warning:  Declaration of LDAPAuthenticateUser::authenticateUser($name, $password) should be compatible with SugarAuthenticateUser::authenticateUser($name, $password, $fallback = false) in /var/www/suitecrm/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php on line 52, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16
[Thu May 10 10:09:11 2018] [error] [client 172.17.42.1] PHP Warning:  Declaration of LDAPAuthenticateUser::loadUserOnLogin($name, $password) should be compatible with SugarAuthenticateUser::loadUserOnLogin($name, $password, $fallback = false, $PARAMS = Array) in /var/www/suitecrm/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php on line 52, referer: http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16

[/li]
[li]Here are the corresponding access.log lines:

172.17.42.1 - - [10/May/2018:10:09:11 +0300] "POST /suitecrm/index.php HTTP/1.1" 302 878 "http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
172.17.42.1 - - [10/May/2018:10:09:11 +0300] "GET /suitecrm/index.php?action=DetailView&module=Emails&record=2362fd52-a5d1-dcb3-a4f5-5af3f030f5a4 HTTP/1.1" 200 17922 "http://10.7.9.10/suitecrm/index.php?module=Emails&action=DisplayDetailView&folder=INBOX&folder=inbound&inbound_email_record=ebdbfa03-b61f-bec2-d8ec-5af183e75d13&uid=268&msgno=16" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"

[/li]
[/ul]

Hi, The most recent version on our site is 7.8.18, 7.9.17, and 7.10.4, according to which branch you’re on. So you really need to inform me.

If you are really at 7.9.7, I advise that you upgrade to the latest in your branch. But maybe that’s just a typo.

You can (and should) fix the timezone error by editing your CLI php.ini.

Type this at the command line to find out where it is:

php -i | grep php.ini

Set date.timezone in that file, and restart web server.

The PHP notices are typically safe to ignore.

I’ll investigate your other issues once you confirm the version or upgrade. Thanks

It is indeed 7.9.7. Apparently, the VM (Univention App) on the download page is not good for testing (or anything). We will install latest version manually, but it might take time.

All bugs are still there as described in the original posting.

Version 7.10.4, Sugar Version 6.5.25 (Build 344).
PHP 7.1.17-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: May 5 2018 04:55:21) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.1.17-1+ubuntu16.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologies

Fresh log entries —
[ul]
[li]When trying to edit email:

[Fri May 11 12:26:13.078225 2018] [php7:notice] [pid 23190] [client 10.7.7.3:36746] PHP Notice:  Undefined variable: emailAddress in /var/www/html/suitecrm/modules/Emails/include/displayEmailAddressOptInField.php on line 80, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php?module=Emails&action=index&parentTab=Collaboration
[Fri May 11 12:26:19.055178 2018] [php7:notice] [pid 23190] [client 10.7.7.3:36746] PHP Notice:  Undefined variable: emailAddress in /var/www/html/suitecrm/modules/Emails/include/displayEmailAddressOptInField.php on line 80, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php?module=Emails&action=DetailView&record=1f2f5d25-4b98-7db2-6b3f-5af58b5dd86e

[/li]
[li]When saving email with associated account:

[Fri May 11 12:27:45.259208 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined index: description_html in /var/www/html/suitecrm/modules/Emails/Save.php on line 76, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.259253 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined index: description_html in /var/www/html/suitecrm/modules/Emails/Save.php on line 77, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.262958 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 660, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.262998 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 660, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.265366 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 660, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.265411 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 660, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.267743 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 660, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.267775 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 660, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.270846 2018] [php7:warn] [pid 23190] [client 10.7.7.3:38376] PHP Warning:  array_merge(): Argument #2 is not an array in /var/www/html/suitecrm/modules/Emails/Email.php on line 2238, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.270884 2018] [php7:warn] [pid 23190] [client 10.7.7.3:38376] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/suitecrm/modules/Emails/Email.php on line 2282, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.270901 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined index: from_addr in /var/www/html/suitecrm/modules/Emails/Save.php on line 195, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php
[Fri May 11 12:27:45.987823 2018] [php7:notice] [pid 23190] [client 10.7.7.3:38376] PHP Notice:  Undefined variable: emailAddress in /var/www/html/suitecrm/modules/Emails/include/displayEmailAddressOptInField.php on line 80, referer: http://suitecrm.thinky.servers.rqc.ru/suitecrm/index.php

[/li]
[/ul]