afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
335 stars 71 forks source link

Error when search something in folders #36

Closed KnuConsultora closed 5 years ago

KnuConsultora commented 5 years ago

When a try to search something in folders I get this error message

Unknown error. (TAG6 BAD UID invalid arguments)

(in a red banner at the screen top)

If you search with from to text etc. it works ok If the folders has a lot of mails also fails (with or without "from" "to" "text" etc)

afterlogic-support commented 5 years ago

Please post WebMail logs reflecting IMAP session when the issue occurs. Thanks.

KnuConsultora commented 5 years ago

Hi, here is the log of the error

[14:32:39.99][b1daf95e] TAG6 BAD UID invalid arguments [14:32:39.99][b1daf95e] PHP[NOTICE]: *****\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:32:40.01][b1daf95e] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:32:40.01][b1daf95e] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:32:40.01][b1daf95e] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, float given [14:32:40.01][b1daf95e] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:32:40.01][b1daf95e] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:32:40.01][b1daf95e] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:32:40.01][b1daf95e] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:32:40.01][b1daf95e] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:32:40.01][b1daf95e] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:32:40.01][b1daf95e] INFO[MEMORY]: Memory peak usage: 2MB [14:32:40.01][b1daf95e] INFO[TIME]: Time delta: 1544711560.0151 [14:32:40.01][b1daf95e] IMAP[DATA]: > TAG7 LOGOUT\r\n [14:32:40.01][b1daf95e] IMAP[DATA]: < * BYE IMAP4rev1 Server logging out\r\n [14:32:40.01][b1daf95e] IMAP[DATA]: < TAG7 OK LOGOUT completed\r\n [14:32:40.01][b1daf95e] IMAP[NOTE]: Disconnected from "tcp://localhost:143" (success)

afterlogic-support commented 5 years ago

[14:32:39.99][b1daf95e] TAG6 BAD UID invalid arguments

It's not clear what precedes that, complete log of IMAP session is required. Thanks.

KnuConsultora commented 5 years ago

here is the complete log. If it not here, maybe I have to change some settings in config.json or elsewhere. Please let me know and thanks for reply!

[14:28:16.48][d60e1fb9] [POST(4)][ip:190.195.154.87] /webmail/?/Api/ [14:28:16.48][d60e1fb9] POST > [Module, Method, TenantName, Parameters] [14:28:16.48][d60e1fb9] [14:28:16.48][d60e1fb9] API: Mail::GetRelevantFoldersInformation [14:28:16.51][d60e1fb9] IMAP[NOTE]: Start connection to "tcp://localhost:143" [14:28:16.54][d60e1fb9] IMAP[DATA]: < OK IMAP4rev1 SmarterMail\r\n [14:28:16.54][d60e1fb9] IMAP[DATA]: > TAG1 CAPABILITY\r\n [14:28:16.54][d60e1fb9] IMAP[DATA]: < CAPABILITY IMAP4 IMAP4rev1\r\n [14:28:16.54][d60e1fb9] IMAP[DATA]: < TAG1 OK CAPABILITY completed\r\n [14:28:16.56][d60e1fb9] IMAP[SECURE]: > TAG2 LOGIN "##deleted_for_privacy@domain.com###" "****"\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: < TAG2 OK LOGIN completed\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: > TAG3 STATUS "INBOX" (MESSAGES UNSEEN UIDNEXT)\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: < STATUS INBOX (MESSAGES 135 UNSEEN 1 UIDNEXT 9630)\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: < TAG3 OK STATUS completed\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: > TAG4 STATUS "Correo no deseado" (MESSAGES UNSEEN UIDNEXT)\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: < STATUS "Correo no deseado" (MESSAGES 46 UNSEEN 0 UIDNEXT 49)\r\n [14:28:16.56][d60e1fb9] IMAP[DATA]: < TAG4 OK STATUS completed\r\n [14:28:16.56][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.56][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:28:16.56][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.56][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, float given [14:28:16.56][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.56][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:28:16.56][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.56][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:28:16.56][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.56][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:28:16.56][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.56][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:28:16.57][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.57][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:28:16.57][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.57][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:28:16.57][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.57][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:28:16.57][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.57][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:28:16.57][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.57][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:28:16.57][d60e1fb9] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:28:16.57][d60e1fb9] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:28:16.57][d60e1fb9] INFO[MEMORY]: Memory peak usage: 2MB [14:28:16.57][d60e1fb9] INFO[TIME]: Time delta: 1544711296.5776 [14:28:16.57][d60e1fb9] IMAP[DATA]: > TAG5 LOGOUT\r\n [14:28:16.57][d60e1fb9] IMAP[DATA]: < * BYE IMAP4rev1 Server logging out\r\n [14:28:16.57][d60e1fb9] IMAP[DATA]: < TAG5 OK LOGOUT completed\r\n [14:28:16.57][d60e1fb9] IMAP[NOTE]: Disconnected from "tcp://localhost:143" (success)

[14:29:17.51][63c9ad0f] [POST(4)][ip:190.195.154.87] /webmail/?/Api/ [14:29:17.51][63c9ad0f] POST > [Module, Method, TenantName, Parameters] [14:29:17.51][63c9ad0f] [14:29:17.51][63c9ad0f] API: Mail::GetRelevantFoldersInformation [14:29:17.54][63c9ad0f] IMAP[NOTE]: Start connection to "tcp://localhost:143" [14:29:17.56][63c9ad0f] IMAP[DATA]: < OK IMAP4rev1 SmarterMail\r\n [14:29:17.56][63c9ad0f] IMAP[DATA]: > TAG1 CAPABILITY\r\n [14:29:17.56][63c9ad0f] IMAP[DATA]: < CAPABILITY IMAP4 IMAP4rev1\r\n [14:29:17.56][63c9ad0f] IMAP[DATA]: < TAG1 OK CAPABILITY completed\r\n [14:29:17.56][63c9ad0f] IMAP[SECURE]: > TAG2 LOGIN "##deleted_for_privacy@domain.com###" "****"\r\n [14:29:17.56][63c9ad0f] IMAP[DATA]: < TAG2 OK LOGIN completed\r\n [14:29:17.56][63c9ad0f] IMAP[DATA]: > TAG3 STATUS "INBOX" (MESSAGES UNSEEN UIDNEXT)\r\n [14:29:17.57][63c9ad0f] IMAP[DATA]: < STATUS INBOX (MESSAGES 135 UNSEEN 1 UIDNEXT 9630)\r\n [14:29:17.57][63c9ad0f] IMAP[DATA]: < TAG3 OK STATUS completed\r\n [14:29:17.57][63c9ad0f] IMAP[DATA]: > TAG4 STATUS "Correo no deseado" (MESSAGES UNSEEN UIDNEXT)\r\n [14:29:17.57][63c9ad0f] IMAP[DATA]: < STATUS "Correo no deseado" (MESSAGES 46 UNSEEN 0 UIDNEXT 49)\r\n [14:29:17.57][63c9ad0f] IMAP[DATA]: < TAG4 OK STATUS completed\r\n [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, float given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.57][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, integer given [14:29:17.57][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.59][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:29:17.59][63c9ad0f] PHP[NOTICE]: **\httpdocs\webmail\vendor\afterlogic\mailso\lib\MailSo\Base\Utils.php [line:1227, code:2] [14:29:17.59][63c9ad0f] PHP[NOTICE]: Error: get_resource_type() expects parameter 1 to be resource, string given [14:29:17.59][63c9ad0f] INFO[MEMORY]: Memory peak usage: 2MB [14:29:17.59][63c9ad0f] INFO[TIME]: Time delta: 1544711357.5933 [14:29:17.59][63c9ad0f] IMAP[DATA]: > TAG5 LOGOUT\r\n [14:29:17.59][63c9ad0f] IMAP[DATA]: < * BYE IMAP4rev1 Server logging out\r\n [14:29:17.59][63c9ad0f] IMAP[DATA]: < TAG5 OK LOGOUT completed\r\n [14:29:17.59][63c9ad0f] IMAP[NOTE]: Disconnected from "tcp://localhost:143" (success)

afterlogic-support commented 5 years ago

Not sure, sorry, this new log doesn't have that error (and PHP notices can be safely disregarded in this case)

KnuConsultora commented 5 years ago

Ok... the imap server is smartermail Thanks!

afterlogic-support commented 5 years ago

Okay, but we still need the complete log reflecting the error you've encountered.