7.11.18 Email module throws error when InBox is empty

PHP 7.3.25, Win10 Pro 19041.685, Firefox 84.0.1 64, MySQL Server 5.7, phpMyAdmin 5.0.4.

When there is at least one email message in InBox it displays clean, but when box is empty throws these errors:

Warning : count(): Parameter must be an array or an object that implements Countable in C:\Apache24\htdocs\SuiteCRM\cache\smarty\templates_c%%7E^7E2^7E2EB4A5%%ListViewGeneric.tpl.php on line 45

 and

Notice Unknown: Sequence out of range (errflg=2) in Unknown on line **0”

Contents of suitecrm.log at that moment:

"Mon Dec 28 09:20:13 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][DEPRECATED] Array
(
)

Mon Dec 28 09:20:13 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] CSS File Day/yui.css not found
Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][ERROR] Unable to find relationship emails_email_templates
Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] emails_email_templates_idb for emails_email_templates failed to load

Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Smarty: sugar_check_access: missing ‘record’ parameter
Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Smarty: sugar_check_access: missing ‘record’ parameter
Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][ERROR] Unable to find relationship emails_email_templates
Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] emails_email_templates_idb for emails_email_templates failed to load

Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][ERROR] Unable to find relationship emails_email_templates
Mon Dec 28 09:20:14 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] emails_email_templates_idb for emails_email_templates failed to load

Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Smarty: sugar_check_access: missing ‘record’ parameter
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Smarty: sugar_check_access: missing ‘record’ parameter
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Email ID is Empty
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Trying to get property of non-object: list view data “order by” is not defined
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Trying to get property of non-object: list view data “sort order” is not defined
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][DEPRECATED] Using row number in fetchByAssoc is not portable and no longer supported. Please fix your code.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Empty or undefined Email Folder ID
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] unknown or undefined folder type (we will use ‘imap’ instead): inbound
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Request ssl value not found.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Requested folder is not defined
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] An Imap error detected: “IMAP getNumberOfMessages error”
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Data for recieving email UIDs is not set.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] ListViewDataEmailsSearchOnIMap::search: query string is not set
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Invalid search results data.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] Row data must be an array, NULL given and converting to an array.
Mon Dec 28 09:20:15 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][WARN] List view smarty data must be an array, undefined data given and converting to an empty array.
Mon Dec 28 09:20:16 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][DEPRECATED] Array
(
)

Mon Dec 28 09:20:18 2020 [3344][1e48ace2-faf1-738e-45b3-5575b14f1ad4][DEPRECATED] Array"

Thank-you.

Hey there,

Are you still having issues with this?

It looks like Warnings/Notices are set to Display on your instance

However, I believe that Warning/Notice messages can be suppressed and the CRM will function normally
(But it can sometimes cause minor issues like this, when displaying)

You could try temporarily disabling “display_errors” in your php.ini file
(or updating the “error_reporting” value to suppress notices/warnings)
To see if this error resolves

If you do so, do you still see this issue?

Hello John.
Largely due to some other instabilities I restarted an upgrade from 7.8.20 through multiple packages to 7.11.18 again and the error is gone. I appreciate that you responded. Maybe we’ll meet again.
Thanks,
Steve

1 Like