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

Inbox and other folder do not show with NC 13 & PHP 7.1 #765

Closed
Kugeleis opened this issue Feb 7, 2018 · 19 comments
Closed

Inbox and other folder do not show with NC 13 & PHP 7.1 #765

Kugeleis opened this issue Feb 7, 2018 · 19 comments
Assignees
Milestone

Comments

@Kugeleis
Copy link

Kugeleis commented Feb 7, 2018

Steps to reproduce

  1. open mail app
  2. inbox does not show

Patch

switch back to PHP 7.0
mail app works as expected

Expected behaviour

mail in inbox show up

Actual behaviour

mail in inbox do not show up

Server configuration detail

Operating system: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u1 x86_64

Webserver: Apache (apache2handler)

Database: mysql 5.5.57

PHP version: 7.1.2
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, standard, PDO, mysqlnd, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, shmop, SimpleXML, snmp, soap, sockets, pdo_mysql, exif, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, mysqli, apache2handler, imagick, ionCube Loader, Zend OPcache

Nextcloud version: 13.0.0 - 13.0.0.14

Updated from an older Nextcloud/ownCloud or fresh install:

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3315.3 Safari/537.36 OPR/52.0.2857.0 (Edition developer)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ChristophWurst
Copy link
Member

Hi!

Thank you for your report. It looks like your report is missing some important sections of your issue template. Please complete it so that we get a better understanding of your setup and the problem to be able to fix the issue.

Thank you.

@Kugeleis
Copy link
Author

Kugeleis commented Feb 7, 2018

Hello Christoph,

the rest of the report contained private or empty data. So I removed it. What section do you need? The only section with reasonable Content was the app list. Is this relevant?

Best regards,
kugeleis

@ChristophWurst
Copy link
Member

Error logs, mostly.

@Kugeleis
Copy link
Author

Kugeleis commented Feb 8, 2018

The nextcloud.log is 172MB.

@Kugeleis
Copy link
Author

Kugeleis commented Feb 8, 2018

In #562 I found a hint and disabled the opcache, too. Then mail is working. My opcach settings are those recommended by nextcloud.
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

@ChristophWurst
Copy link
Member

We just need the those entries that are logged when the error occurs. So run tail -f data/nextcloud.log, reproduce the issue and post those new entries.

And please also enable debug log and post your data/horde_imap.log. This shows us the IMAP communication and whether an IMAP error occurred.

@Kugeleis
Copy link
Author

Kugeleis commented Feb 9, 2018

In set the debug level to 0 but no horde_imap.log appears. I guess this goes beyond my linux/server abilities. I didn't find any info on a "horde_imap.log" on the help pages. The "tail" command gives a mess on the terminal I can't handle. Sorry, I'm not a linux pro. I tried to select some part which might help:
nextcloud.log

@ChristophWurst
Copy link
Member

You have enable debug mode.

@ChristophWurst
Copy link
Member

I tried to select some part which might help:
nextcloud.log

Looks good. No errors seemed to have occurred.

@Kugeleis
Copy link
Author

Kugeleis commented Feb 9, 2018

here is the horde_log stripped from private data
horde_imap.log

@ChristophWurst
Copy link
Member

IMAP log looks good to. Could you please be more precise on what's happening when you load the app? Does it show any error message? Is there any error in the browser's js console? Does any of the requests not return with status 200 (see network tab)?

@lepool
Copy link

lepool commented Feb 19, 2018

I have a similar problem. I can't view Mails in Inbox but in subfolder of Inbox the problem aren't present.
The error in apache are :

Call to a member function getEmail() on null in /var/www/https/cloud/apps/mail/lib/Model/IMAPMessage.php on line 433

@lepool
Copy link

lepool commented Feb 20, 2018

Here the entry in nextcloud.log:

{"reqId":"4IlTLwqGsEYFTDN3nuVv","level":3,"time":"2018-02-20T19:05:12+00:00","remoteAddr":"10.3.1.2","user":"lepool","app":"PHP","method":"GET","url":"/cloud/index.php/apps/mail/api/accounts/12/folders/SU5CT1g%3D/messages?filter=","message":"Call to a member function getEmail() on null at /var/www/https/cloud/apps/mail/lib/Model/IMAPMessage.php#433","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0","version":"13.0.0.14"}

@ChristophWurst
Copy link
Member

So for some reason one of the messages has no sender set, hence it fails to load the sender email address:

'fromEmail' => $this->getFrom()->first()->getEmail(),

@lepool
Copy link

lepool commented Feb 20, 2018

I checked if one mail in inbox doesn't have sender , but with thunderbird all mails have a sender

@lepool
Copy link

lepool commented Feb 20, 2018

The strange thing is, that in 2 accounts only the inbox folder can't be view. Subfolders views correct.

@Kugeleis
Copy link
Author

I just checked the web responses. syncToken returns with error 502.

@Kugeleis
Copy link
Author

...and messages?filter returns
Request URL:https://myserver.de/index.php/apps/mail/api/accounts/3/folders/SU5CT1g%3D/messages?filter=
Request Method:GET
Status Code:502 Bad Gateway
Remote Address:31.17.121.77:443
Referrer Policy:no-referrer

@ChristophWurst ChristophWurst self-assigned this Mar 27, 2018
@ChristophWurst ChristophWurst added this to the 0.7.11 milestone Mar 27, 2018
ChristophWurst added a commit that referenced this issue Mar 27, 2018
Fixes #765

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@lock
Copy link

lock bot commented Nov 20, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and questions.

@lock lock bot locked and limited conversation to collaborators Nov 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants