-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Doesn't show mailbox, throws PHP error: __construct() must be of the type string, array given #1
Comments
__construct() must be of the type string, array given
This is indeed a strange bug which i couldn't reproduce. Would also be nice to know which PHP version and which IMAP server is used. |
2 similar comments
This is indeed a strange bug which i couldn't reproduce. Would also be nice to know which PHP version and which IMAP server is used. |
This is indeed a strange bug which i couldn't reproduce. Would also be nice to know which PHP version and which IMAP server is used. |
Thank you for the reply! The server running Rainloop-djmaze is configured with PHP 7.4. Dovecot is being used for IMAP access. Before the switch (to this fork), the webmail server ran Rainloop (upstream) with PHP 7.2, which didn't throw this error. So, it might be either something in the fork or PHP 7.4 that causes this error. I will throw in the commit tomorrow and get back with the resulting info :) |
Problem was caused by square brackets because the IMAP response has no quotes around it. `sendRaw: TAG2 LSUB "" "*" ResponseCollection::getFoldersResult: invalid string array ( |
The RainLoop skipSquareBracketParse wasn't perfect either
RainLoop version, browser, OS:
1.14.0-djmaze
Expected behavior
User logs in, messages in inbox get loaded and shown to user.
Actual behavior:
User enters credentials, Rainloop drops back to login screen, error gets added to the
error_log
.Steps to reproduce the problem:
I tried to reproduce it myself, it seems to happen sometimes and not bound to an individual user or mailbox - making this incredibly hard to reproduce. I've had this behaviour occur to once of my personal accounts yesterday; when I retried after X time it worked normally.
Logs or screenshots:
Argument 1 passed to MailSo\Imap\Folder::__construct() must be of the type string, array given, called in /var/www/webmail/rainloop/v/1.14.0-djmaze/app/libraries/MailSo/Imap/ResponseCollection.php on line 108
The text was updated successfully, but these errors were encountered: