**Mail app version: 0.7.7
Nextcloud version: 12.0.4
Debian Jessie
Apache/2.4.10 (Debian)
PHP Version: 5.6.33
mysql Version: 5.5.58
Useragent : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Do you know which version had been installed before?
Sorry, im think the 0.7.6, but im not sure. It was an automatic update notice from Nextcloudsytem.
How can i downgrade the mail app? If i delete the mail folder and install the older version then the system install every the new 0.7.7 with the issue.
Downgrades are not supported, sorry.
Please enable debug mode and post your nextcloud.log and horde_imap.log here (only the last entries are relevant). This should allow me to identify the issue.
Thanks.
Also please check out the network tab on your browser's console. Would be interesting if there's a HTTP 500 status code on one of the requests. If so, please take a screenshot of that.
Btw, nice avatar! :)
nextcloud.log :
{"reqId":"qLiKSAV1IBOcxPzVwS2L","level":3,"time":"2018-01-09T18:56:10+00:00","remoteAddr":"151.62.106.244","user":"admin","app":"index","method":"GET","url":"\/cloud\/index.php\/apps\/mail\/api\/avatars\/url\/root%40cloud.dtdns.net","message":"Exception: {\"Exception\":\"OCP\\AppFramework\\QueryException\",\"Message\":\"Could not resolve appName! Class appName does not exist\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(117): OC\\AppFramework\\Utility\\SimpleContainer->resolve('appName')\n#1 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('appName')\n#2 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(66): OC\\ServerContainer->query('appName')\n#3 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(96): OC\\AppFramework\\Utility\\SimpleContainer->buildClass(Object(ReflectionClass))\n#4 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(117): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OCA\\\\Mail\\\\Contro...')\n#5 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('OCA\\\\Mail\\\\Contro...')\n#6 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/DependencyInjection\\/DIContainer.php(416): OC\\ServerContainer->query('OCA\\\\Mail\\\\Contro...')\n#7 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/App.php(101): OC\\AppFramework\\DependencyInjection\\DIContainer->query('OCA\\\\Mail\\\\Contro...')\n#8 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Routing\\/RouteActionHandler.php(47): OC\\AppFramework\\App::main('AvatarsControll...', 'url', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#9 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#10 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/Route\\/Router.php(299): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#11 \\/var\\/www\\/https\\/cloud\\/lib\\/base.php(1004): OC\\Route\\Router->match('\\/apps\\/mail\\/api\\/...')\n#12 \\/var\\/www\\/https\\/cloud\\/index.php(48): OC::handleRequest()\n#13 {main}\",\"File\":\"\\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php\",\"Line\":102}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","version":"12.0.4.3"}
{"reqId":"AR555HFxhbLzxj74KJ74","level":3,"time":"2018-01-09T18:56:10+00:00","remoteAddr":"151.62.106.244","user":"admin","app":"PHP","method":"GET","url":"\/cloud\/index.php\/apps\/mail\/api\/accounts\/11\/folders\/SU5CT1g%3D\/messages\/650","message":"Class 'Kwi\UrlLinker' not found at \/var\/www\/https\/cloud\/apps\/mail\/lib\/Service\/Html.php#64","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","version":"12.0.4.3"}
{"reqId":"fkI5PoxC2hEyssUvRj3n","level":3,"time":"2018-01-09T18:56:10+00:00","remoteAddr":"151.62.106.244","user":"admin","app":"index","method":"GET","url":"\/cloud\/index.php\/apps\/mail\/api\/avatars\/url\/nospam%40gmx.at","message":"Exception: {\"Exception\":\"OCP\\AppFramework\\QueryException\",\"Message\":\"Could not resolve appName! Class appName does not exist\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(117): OC\\AppFramework\\Utility\\SimpleContainer->resolve('appName')\n#1 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('appName')\n#2 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(66): OC\\ServerContainer->query('appName')\n#3 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(96): OC\\AppFramework\\Utility\\SimpleContainer->buildClass(Object(ReflectionClass))\n#4 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php(117): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OCA\\\\Mail\\\\Contro...')\n#5 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('OCA\\\\Mail\\\\Contro...')\n#6 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/DependencyInjection\\/DIContainer.php(416): OC\\ServerContainer->query('OCA\\\\Mail\\\\Contro...')\n#7 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/App.php(101): OC\\AppFramework\\DependencyInjection\\DIContainer->query('OCA\\\\Mail\\\\Contro...')\n#8 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Routing\\/RouteActionHandler.php(47): OC\\AppFramework\\App::main('AvatarsControll...', 'url', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#9 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#10 \\/var\\/www\\/https\\/cloud\\/lib\\/private\\/Route\\/Router.php(299): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#11 \\/var\\/www\\/https\\/cloud\\/lib\\/base.php(1004): OC\\Route\\Router->match('\\/apps\\/mail\\/api\\/...')\n#12 \\/var\\/www\\/https\\/cloud\\/index.php(48): OC::handleRequest()\n#13 {main}\",\"File\":\"\\/var\\/www\\/https\\/cloud\\/lib\\/private\\/AppFramework\\/Utility\\/SimpleContainer.php\",\"Line\":102}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","version":"12.0.4.3"}
horde_imap.log :
S: [LITERAL DATA: 21 bytes]
S: BINARY.SIZE[1] 21 BODY[1.MIME] {2311}
S: [LITERAL DATA: 2311 bytes]
S: )
S: 6 OK Fetch completed.
Command 6 took 0.04 seconds.
C: 7 LOGOUT
S: * BYE Logging out
S: 7 OK Logout completed.
Command 7 took 0.0027 seconds.
^[[B^Croot@vps414402:/var/www/https/cloud/data# tail -f horde_imap.log -n 10000
Tue, 09 Jan 2018 18:56:10 +0000
Connection to: imap://nospam.dtdns.net/
Server connection took 0.0022 seconds.
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5 AUTH=DIGEST-MD5] Dovecot ready.
C: 1 STARTTLS
S: 1 OK Begin TLS negotiation now.
Command 1 took 0.0002 seconds.
Successfully completed TLS negotiation.
C: 2 CAPABILITY
S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5 AUTH=DIGEST-MD5
S: 2 OK Pre-login capabilities listed, post-login capabilities have more.
Command 2 took 0.0004 seconds.
C: 3 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: [email protected])]
S: 3 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in
Command 3 took 0.0044 seconds.
C: 4 EXAMINE INBOX
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 283 EXISTS
S: * 0 RECENT
S: * OK [UNSEEN 146] First unseen.
S: * OK [UIDVALIDITY 1501943333] UIDs valid
S: * OK [UIDNEXT 651] Predicted next UID
S: 4 OK [READ-ONLY] Examine completed (0.000 secs).
Command 4 took 0.001 seconds.
C: 5 UID FETCH 650 (ENVELOPE BODYSTRUCTURE FLAGS RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY CONTENT-TYPE)])
S: * 283 FETCH (UID 650 FLAGS (\Seen) RFC822.SIZE 2332 INTERNALDATE "09-Jan-2018 18:43:53 +0100" ENVELOPE ("Tue, 9 Jan 2018 18:41:52 +0100" "testmail from gmx" (("[email protected]" NIL "nospam" "gmx.at")) (("[email protected]" NIL "nospam" "gmx.at")) (("[email protected]" NIL "nospam" "gmx.at")) (("nospam" NIL "nospam" "nospam.dtdns.net")) NIL NIL NIL "dd4bbf45-3b35-32f3-9c05-33a55805bb49@gmx.at") BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 21 2 NIL NIL ("en-US") NIL) BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY CONTENT-TYPE)] {43}
S: [LITERAL DATA: 43 bytes]
S: )
S: 5 OK Fetch completed.
Command 5 took 0.0044 seconds.
C: 6 UID FETCH 650 (BODY.PEEK[1] BINARY.SIZE[1] BODY.PEEK[1.MIME])
S: * 283 FETCH (UID 650 BODY[1] {21}
S: [LITERAL DATA: 21 bytes]
S: BINARY.SIZE[1] 21 BODY[1.MIME] {2311}
S: [LITERAL DATA: 2311 bytes]
S: )
S: 6 OK Fetch completed.
Command 6 took 0.04 seconds.
C: 7 LOGOUT
S: * BYE Logging out
S: 7 OK Logout completed.
Command 7 took 0.0027 seconds.
I have changed the email addresses to preserve spams
Class 'Kwi\UrlLinker' not found at /var/www/https/cloud/apps/mail/lib/Service/Html.php
How did you install the app? Did you use a git clone or a package from apps.nextcloud.com?
"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve appName! Class appName does not exist"
This is a pretty bad one. The dependency injection container cannot resolve a class. Unfortunately, the stack trace does not tell us which class it failed to resolve.
I deleted the contents of the mail folder and then copied the app mail 0.7.6 to the mail directory
here the error in browser-console
Content Security Policy: Die Direktive 'frame-src' sollte nicht mehr verwendet werden. Bitte verwenden Sie stattdessen die Direktive 'child-src'.
JQMIGRATE: Migrate is installed, version 1.4.0
jquery-migrate.min.js:2:542
Source-Map-Fehler: request failed with status 404
Ressourcen-Adresse: https://xxx.dtdns.net/cloud/core/vendor/blueimp-md5/js/md5.min.js
Source-Map-Adresse: md5.min.js.map
[Weitere Informationen]
Source-Map-Fehler: request failed with status 404
Ressourcen-Adresse: https://xxx.dtdns.net/cloud/core/vendor/DOMPurify/dist/purify.min.js
Source-Map-Adresse: purify.min.js.map
[Weitere Informationen]
Starting Mail …
build.js:20:39680
initializing cache…
build.js:12:74177
Logging system initialised at Tue Jan 09 2018 20:15:52 GMT+0100 (CET)
Logger.ts:93:36
content page starting
Logger.ts:81:36
content page ready
Logger.ts:93:36
In browser content page script, received message from background script
Logger.ts:81:36
Logging system config updated at Tue Jan 09 2018 20:15:53 GMT+0100 (CET)
Logger.ts:93:36
error loading message
{…}
abort: function abort()
always: function always()
complete: function add()
done: function add()
error: function add()
fail: function add()
getAllResponseHeaders: function getAllResponseHeaders()
getResponseHeader: function getResponseHeader()
overrideMimeType: function overrideMimeType()
pipe: function a.Deferred/e.pipe()
progress: function add()
promise: function promise()
readyState: 4
responseText: ""
setRequestHeader: function setRequestHeader()
state: function state()
status: 500
statusCode: function statusCode()
statusText: "Internal Server Error"
success: function add()
then: function then()
__proto__: Object { … }
build.js:75:135646
error
https://xxx.dtdns.net/cloud/apps/mail/js/build/build.js:75:135646
j
jquery.js:3099:9
fireWith
jquery.js:3211:6
x
jquery.js:8266:4
b/<
jquery.js:8605:8
and then copied the app mail 0.7.6
Where did you get the app from?
An attempt to login via another user on the nextcloud now permit to preview the mail. But only the other user. The account admin can't preview mails ..
Strange things :-|
On the other account only the HTML mails can be viewed !
I confirm, HTML mails can be viewed on all accounts, text mails not .
PHP Fatal error: Class 'Kwi\UrlLinker' not found in /var/www/https/cloud/apps/mail/lib/Service/Html.php on line 64
I also had the same problem. Text based mail can not be opened. No error log is generated at this time. I was getting an error when updating from 0.7.6 to 0.7.7. It looked like MySQL. I tried deleting the mail account and reinstalling the Mail application but it did not improve. This seems to be a problem specific to 0.7.7.
Error log that occurred during update.
Failed to update database structure (PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104 Stack trace: #0 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO->query('SHOW FULL TABLE...') #1 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(852): Doctrine\DBAL\Driver\PDOConnection->query('SHOW FULL TABLE...') #2 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Connection.php(192): Doctrine\DBAL\Connection->executeQuery('SHOW FULL TABLE...', Array, Array, NULL) #3 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(785): OC\DB\Connection->executeQuery('SHOW FULL TABLE...', Array, Array) #4 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(219): Doctrine\DBAL\Connection->fetchAll('SHOW FULL TABLE...') #5 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(264): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableNames() #6 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(1040): Doctrine\DBAL\Schema\AbstractSchemaManager->listTables() #7 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(222): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema() #8 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/MySQLMigrator.php(42): OC\DB\Migrator->getDiff(Object(Doctrine\DBAL\Schema\Schema), Object(OC\DB\Connection)) #9 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(251): OC\DBMySQLMigrator->getDiff(Object(Doctrine\DBAL\Schema\Schema), Object(OC\DB\Connection)) #10 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(86): OC\DB\Migrator->applySchema(Object(Doctrine\DBAL\Schema\Schema)) #11 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/MDB2SchemaManager.php(122): OC\DB\Migrator->migrate(Object(Doctrine\DBAL\Schema\Schema)) #12 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/legacy/db.php(186): OC\DB\MDB2SchemaManager->updateDbFromStructure('/var/www/vhosts...') #13 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/legacy/app.php(1047): OC_DB::updateDbFromStructure('/var/www/vhosts...') #14 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Installer.php(200): OC_App::updateApp('mail') #15 /var/www/vhosts/MY-NEXTCLOUD-PATH/settings/ajax/updateapp.php(50): OC\Installer->updateAppstoreApp('mail') #16 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Route/Route.php(155) : runtime-created function(1): require_once('/var/www/vhosts...') #17 [internal function]: __lambda_func(NULL) #18 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Route/Router.php(299): call_user_func('\x00lambda_10', Array) #19 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/base.php(1004): OC\Route\Router->match('/settings/ajax/...') #20 /var/www/vhosts/MY-NEXTCLOUD-PATH/index.php(48): OC::handleRequest() #21 {main} Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:106 Stack trace: #0 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(852): Doctrine\DBAL\Driver\PDOConnection->query('SHOW FULL TABLE...') #1 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Connection.php(192): Doctrine\DBAL\Connection->executeQuery('SHOW FULL TABLE...', Array, Array, NULL) #2 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(785): OC\DB\Connection->executeQuery('SHOW FULL TABLE...', Array, Array) #3 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(219): Doctrine\DBAL\Connection->fetchAll('SHOW FULL TABLE...') #4 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(264): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableNames() #5 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(1040): Doctrine\DBAL\Schema\AbstractSchemaManager->listTables() #6 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(222): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema() #7 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/MySQLMigrator.php(42): OC\DB\Migrator->getDiff(Object(Doctrine\DBAL\Schema\Schema), Object(OC\DB\Connection)) #8 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(251): OC\DBMySQLMigrator->getDiff(Object(Doctrine\DBAL\Schema\Schema), Object(OC\DB\Connection)) #9 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(86): OC\DB\Migrator->applySchema(Object(Doctrine\DBAL\Schema\Schema)) #10 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/MDB2SchemaManager.php(122): OC\DB\Migrator->migrate(Object(Doctrine\DBAL\Schema\Schema)) #11 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/legacy/db.php(186): OC\DB\MDB2SchemaManager->updateDbFromStructure('/var/www/vhosts...') #12 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/legacy/app.php(1047): OC_DB::updateDbFromStructure('/var/www/vhosts...') #13 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Installer.php(200): OC_App::updateApp('mail') #14 /var/www/vhosts/MY-NEXTCLOUD-PATH/settings/ajax/updateapp.php(50): OC\Installer->updateAppstoreApp('mail') #15 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Route/Route.php(155) : runtime-created function(1): require_once('/var/www/vhosts...') #16 [internal function]: __lambda_func(NULL) #17 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Route/Router.php(299): call_user_func('\x00lambda_10', Array) #18 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/base.php(1004): OC\Route\Router->match('/settings/ajax/...') #19 /var/www/vhosts/MY-NEXTCLOUD-PATH/index.php(48): OC::handleRequest() #20 {main} Next Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'': SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:116 Stack trace: #0 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(128): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException)) #1 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(855): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SHOW FULL TABLE...', Array) #2 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Connection.php(192): Doctrine\DBAL\Connection->executeQuery('SHOW FULL TABLE...', Array, Array, NULL) #3 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(785): OC\DB\Connection->executeQuery('SHOW FULL TABLE...', Array, Array) #4 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(219): Doctrine\DBAL\Connection->fetchAll('SHOW FULL TABLE...') #5 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(264): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableNames() #6 /var/www/vhosts/MY-NEXTCLOUD-PATH/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(1040): Doctrine\DBAL\Schema\AbstractSchemaManager->listTables() #7 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(222): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema() #8 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/MySQLMigrator.php(42): OC\DB\Migrator->getDiff(Object(Doctrine\DBAL\Schema\Schema), Object(OC\DB\Connection)) #9 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(251): OC\DBMySQLMigrator->getDiff(Object(Doctrine\DBAL\Schema\Schema), Object(OC\DB\Connection)) #10 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/Migrator.php(86): OC\DB\Migrator->applySchema(Object(Doctrine\DBAL\Schema\Schema)) #11 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/DB/MDB2SchemaManager.php(122): OC\DB\Migrator->migrate(Object(Doctrine\DBAL\Schema\Schema)) #12 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/legacy/db.php(186): OC\DB\MDB2SchemaManager->updateDbFromStructure('/var/www/vhosts...') #13 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/legacy/app.php(1047): OC_DB::updateDbFromStructure('/var/www/vhosts...') #14 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Installer.php(200): OC_App::updateApp('mail') #15 /var/www/vhosts/MY-NEXTCLOUD-PATH/settings/ajax/updateapp.php(50): OC\Installer->updateAppstoreApp('mail') #16 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Route/Route.php(155) : runtime-created function(1): require_once('/var/www/vhosts...') #17 [internal function]: __lambda_func(NULL) #18 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/private/Route/Router.php(299): call_user_func('\x00lambda_10', Array) #19 /var/www/vhosts/MY-NEXTCLOUD-PATH/lib/base.php(1004): OC\Route\Router->match('/settings/ajax/...') #20 /var/www/vhosts/MY-NEXTCLOUD-PATH/index.php(48): OC::handleRequest() #21 {main})
There is no error log of mail other than this.
You think to me that it is not recommended. However, I could display text-mail when I returned to 0.7.6.
same here / on my test system I had 7.6 working fine, then had the app-store upgrade to 7.7 and no txt msgs are visible any longer.
If needed I could delete the app and the tables completely and test with a fresh install (just to exclude an upgrade issue).
same here 7.6 worked, 7.7 can't only show html mail. Loading inbox takes ages.
on th nightly build the issue aren't present :+1:
Cool, as this also kicked me.
Sorry for the stray reference. But I also do not see text emails, only HTML encoded ones after updating from 0.7.5 to 0.7.7 but can confirm that the nightly build fixes the issue.
on th nightly build the issue aren't present 👍
Now that is quite a surprise. 0.7.7 and the latest nightly on the app store effectively point to the very same archive: https://apps.nextcloud.com/apps/mail (just compare the URLs, they both point to https://github.com/nextcloud/mail/releases/download/v0.7.7/mail.tar.gz).
I was not using the App store but downloaded and installed the tarball from the host mentioned in the developer docs.
Thanks for that info. I'll compare the nightly build and the one on the app store. Maybe I've made an error during packaging the app.
Sorry for the inconvenience meanwhile. I won't have time to look into this before Monday, but it'll definitely try to fix this ASAP.
Although I know it's not a solution for many of you, but the app seems to work fine with Nextcloud 13, which is in RC right now. So if anybody is eager to try out the upcoming Nextcloud 13, you could upgrade to it meanwhile.
Not true. Same problem here, cannot find Class 'Kwi\UrlLinker' while trying to open text-only mails. On Nextcloud 13b3. Installed via app store.
Directory contents in (nextcloud)/apps/mail match those of https://github.com/nextcloud/mail/releases/download/v0.7.7/mail.tar.gz , save one .htaccess file.
Path issue?
Nightly build makes no difference: in both cases I get the same error message:
Error: Class 'Kwi\UrlLinker' not found
/var/www/nextcloud/apps/mail/lib/Model/IMAPMessage.php - line 412: OCA\Mail\Service\Html->convertLinks('Test !!!\n\n')
/var/www/nextcloud/apps/mail/lib/Controller/MessagesController.php - line 495: OCA\Mail\Model\IMAPMessage->getFullMessage('inbox')
/var/www/nextcloud/apps/mail/lib/Controller/MessagesController.php - line 171: OCA\Mail\Controller\MessagesController->enhanceMessage(-2, 'SU5CT1g=', '1023', Object(OCA\Mail\Model\IMAPMessage), Object(OCA\Mail\Mailbox))
/var/www/nextcloud/apps/mail/lib/Controller/MessagesController.php - line 200: OCA\Mail\Controller\MessagesController->loadMessage(-2, 'SU5CT1g=', '1023')
[internal function] OCA\Mail\Controller\MessagesController->show(-2, 'SU5CT1g=', '1023')
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Mail\Controller\MessagesController), 'show')
/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Mail\Controller\MessagesController), 'show')
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OCA\Mail\Contro...', 'show', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 1004: OC\Route\Router->match('/apps/mail/api/...')
/var/www/nextcloud/index.php - line 48: OC handleRequest()
@nickvergessen @rullzer I've made a suspicious observation. If I install composer deps with composer install, the Kwi/Urllinker class is not a member of composer's class map. However, if I install with composer install -o, it's there.
Have you ever seen anything like that?
As a hotfix I'll change the packaging script and re-publish a release. But it would be great to know why it's failing without the -o flag. This feels like a composer bug. The lib has been used for three years and now it's apparently the first time this causes problems.
If someone could help me verify this new package works: mail.tar.gz - that would be great 😀
Will publish a release as soon as someone approves the hotfix.
Works for me! :D Nextcloud 12.0.4.
Matching your expectations, the mail.tar.gz you provided works in my test environment AS OPPOSED to the 7.7 version from the store. ED: NC 12.0.4
Also works for me.
@ChristophWurst Thank you! It works for me too.
Works here!
You're awesome! Thanks to the quick feedback ❤️
Most helpful comment
I confirm, HTML mails can be viewed on all accounts, text mails not .