Page 1 of 1

email fetching error

Posted: Sun Jul 12, 2020 3:44 am
by confignsk
Script URL: /inc/mail/hesk_pop3.php
Version of script: 311
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

php 7.2

Warning: count(): Parameter must be an array or an object that implements Countable in /home/***********/inc/mail/mime_parser.php on line 2186

Re: email fetching error

Posted: Sun Jul 12, 2020 4:27 am
by confignsk
rolled back php to 7.1, the error is gone, but clones tickets still produce from mail

Re: email fetching error

Posted: Sun Jul 12, 2020 7:29 am
by Klemen
The PHP warning shows up in a third-party library but can be ignored and should be gone when you turn Debug mode off in Hesk settings > Help desk tab.

As for duplicates - Hesk will process mail that your server sends. There's no way to mark emails as "read" in POP3 protocol so if your server keeps sending the same emails, Hesk will keep processing them.

The solution would be to:

1. switch to IMAP fetching instead (recommended; Hesk will only fetch unread messages from the mailbox), or
2. turn "Keep a copy" setting OFF in your Hesk POP3 fetching settings to make sure Hesk deletes emails from the mailbox after processing them