By Sylvain ROGER on Wednesday, 30 January 2019
Posted in Technical Issues
Replies 5
Likes 0
Views 727
Votes 0
Hi,

Just saw that in logs. Please fix!
PHP Warning: array_slice() expects parameter 1 to be array, boolean given in .../administrator/components/com_easydiscuss/includes/mailqueue/mailqueue.php on line 160
Hi Sylvain,

I'm unable to replicate this issue,
Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?

You can add the information needed by edit your first post in the Details section or you can just include your site's access once at http://stackideas.com/dashboard/site rather than needing to keep adding them in your replies
·
Wednesday, 30 January 2019 18:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Just added admin info in secret area of post
·
Tuesday, 05 February 2019 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sylvain,

I am really sorry for the delay of this reply as it is holiday for us here. It is quite difficult to troubleshoot issue without having FTP
By the way, can you attach me file from:
[gist type="php"]
.../administrator/components/com_easydiscuss/includes/mailqueue/mailqueue.php
.../administrator/components/com_easydiscuss/includes/mailbox/mailbox.php
[/gist]

Thanks for your cooperation and understanding.
·
Thursday, 07 February 2019 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for the update.
I added some logging to your code to help you narrow down the issue.

What happens:
In mailbox.php, $stream is false (or empty) when doing imap_open()...

Here is additionnal debug:
[Sun Feb 10 07:15:26 2019] [error] [client 51.254.41.140] mailbox_params={ssl0.ovh.net:993/imap/ssl/novalidate-cert}INBOX
[Sun Feb 10 07:15:26 2019] [error] [client 51.254.41.140] main_email_parser_username=hidden from public
[Sun Feb 10 07:15:26 2019] [error] [client 51.254.41.140] main_email_parser_password=hidden from public
[Sun Feb 10 07:15:26 2019] [error] [client 51.254.41.140] state=1
[Sun Feb 10 07:15:26 2019] [error] [client 51.254.41.140] stream=

I performed test with certificate validation ON and OFF
Connection Test is ok when checking imap settings from backend

=> When no mail is found, the error occurs.
Process should be stopped when no mail has been found.

Can you please fix this, It really pollutes my server logs every 5 minutes.

Regards,
Sylvain
·
Sunday, 10 February 2019 15:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sylvain,

Thanks for the explanation, I'm able to replicate this issue now when there is no unread email in my mailbox.
I've logged this issue into our issue tracker. I will update you once our developer fix the issue in our repository

Thanks for your cooperation and understanding.
·
Monday, 11 February 2019 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post