Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count(): Parameter must be an array or an object that implements Countable on ... rcube_imap_generic.php on lin 1766 #7392

Closed
topoldo opened this issue May 18, 2020 · 2 comments

Comments

@topoldo
Copy link

topoldo commented May 18, 2020

Hi all.
I have my roundcube "errors.log" file which is filled in almost every second/minute with a copy of the string reported in the subject of this message.
Similar situations were also already reported (and solved) for other pieces of code inside roundcube where php 7.2 is used.

In my case the problem refers to program/lib/Roundcube/rcube_imap_generic.php file at line 1766.
I am currently running Roundcube stable 1.4.4 version, downloaded from its site in its "complete" distribution on a Ubuntu 18.04 LTS server. My PHP is 7.2.

Any help/temporary patch waiting for a full resolution of the problem at code level is highly appreciated.

TIA
Topoldo

@alecpl
Copy link
Member

alecpl commented May 19, 2020

Looks like your IMAP server might be sending empty response to ID command. Could you enable imap_debug and provide that part of the log?

Workaround: $config['imap_disabled_caps'] = array('ID');

@alecpl alecpl added this to the 1.4.5 milestone May 19, 2020
alecpl added a commit that referenced this issue May 19, 2020
alecpl added a commit that referenced this issue May 19, 2020
@alecpl
Copy link
Member

alecpl commented May 19, 2020

Fixed.

@alecpl alecpl closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants