Cannot send email after upgrading to 1.8.5
Hi everyone,
I ugraded Flarum to 1.8.5 and it updated without an issue, but I noticed when I'm posting a new message or reply, the sending of an email get stuck with this error (Full log of the day below) :
[2024-01-14 14:14:02] flarum.ERROR: Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [Flarum\Post\CommentPost]. in /var/www/html/flarum/vendor/illuminate/database/Eloquent/Builder.php:527
I don't have any migration in waiting so I'm kinda lost to where the issue can be or what to do to resolve it.
If anything, when I'm using the Database Queue plugin, I get this log but when I disable it, the error is silent, but still happens.
Flarum information
Flarum core: 1.8.5
PHP version: 8.1.23
MySQL version: 10.5.21-MariaDB-0+deb11u1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+--------------------------------------+----------+--------+
| Flarum Extensions | | |
+--------------------------------------+----------+--------+
| ID | Version | Commit |
+--------------------------------------+----------+--------+
| flarum-flags | v1.8.0 | |
| flarum-approval | v1.8.1 | |
| flarum-suspend | v1.8.1 | |
| flarum-subscriptions | v1.8.0 | |
| flarum-tags | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| fof-user-directory | 1.3.3 | |
| fof-follow-tags | 1.2.2 | |
| flarum-markdown | v1.8.0 | |
| zerosonesfun-composer-preview | 1.3 | |
| v17development-seo | v1.8.0 | |
| tohsakarat-tags-filter | v1.0.5 | |
| the-turk-stickiest | 3.0.1 | |
| ramesh-dada-download-button | v8.1.4 | |
| ianm-log-viewer | 0.1.1 | |
| ianm-follow-users | 1.4.3 | |
| fof-upload | 1.5.4 | |
| fof-terms | 1.3.0 | |
| fof-subscribed | 1.1.4 | |
| fof-sitemap | 2.2.1 | |
| fof-nightmode | 1.5.3 | |
| fof-masquerade | 2.1.4 | |
| fof-linguist | 1.1.2 | |
| fof-impersonate | 1.1.1 | |
| fof-disposable-emails | 1.0.0 | |
| fof-default-user-preferences | 1.2.1 | |
| fof-bbcode-details | 1.1.2 | |
| fof-ban-ips | 1.1.1 | |
| fof-analytics | 1.1.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-lang-italian | 1.11.0 | |
| flarum-lang-german | 1.8.3 | |
| flarum-lang-french | v4.20.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
| flamarkt-signup-page | dev-main | |
| datlechin-landing-page | 0.1.0 | |
| clarkwinkelmann-discussion-bookmarks | 2.0.1 | |
| blomstra-database-queue | 1.1.0 | |
| askvortsov-rich-text | v2.1.7 | |
+--------------------------------------+----------+--------+
Base URL: https://www.swisslib.org
Installation path: /var/www/html/flarum
Queue driver: database
Session driver: file
Scheduler status: core.admin.dashboard.status.scheduler.active
Mail driver: smtp
Debug mode: off
Full Log of today
[2024-01-14 14:14:02] flarum.ERROR: Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [Flarum\Post\CommentPost]. in /var/www/html/flarum/vendor/illuminate/database/Eloquent/Builder.php:527
Stack trace:
#0 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(102): Illuminate\Database\Eloquent\Builder->firstOrFail()
#1 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(57): Flarum\Subscriptions\Job\SendReplyNotification->restoreModel()
#2 /var/www/html/flarum/vendor/illuminate/queue/SerializesModels.php(122): Flarum\Subscriptions\Job\SendReplyNotification->getRestoredPropertyValue()
#3 [internal function]: Flarum\Subscriptions\Job\SendReplyNotification->__unserialize()
#4 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(97): unserialize()
#5 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(253): Illuminate\Queue\CallQueuedHandler->getCommand()
#6 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(213): Illuminate\Queue\CallQueuedHandler->failed()
#7 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(192): Illuminate\Queue\Jobs\Job->failed()
#8 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(238): Illuminate\Queue\Jobs\Job->fail()
#9 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(63): Illuminate\Queue\CallQueuedHandler->handleModelNotFound()
#10 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call()
#11 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(428): Illuminate\Queue\Jobs\Job->fire()
#12 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(378): Illuminate\Queue\Worker->process()
#13 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(172): Illuminate\Queue\Worker->runJob()
#14 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(117): Illuminate\Queue\Worker->daemon()
#15 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(101): Illuminate\Queue\Console\WorkCommand->runWorker()
#16 /var/www/html/flarum/vendor/blomstra/database-queue/src/Console/DatabaseWorkCommand.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#17 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(36): Blomstra\DatabaseQueue\Console\DatabaseWorkCommand->handle()
#18 /var/www/html/flarum/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#19 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#20 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#21 /var/www/html/flarum/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call()
#22 /var/www/html/flarum/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call()
#23 /var/www/html/flarum/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute()
#24 /var/www/html/flarum/vendor/illuminate/console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#25 /var/www/html/flarum/vendor/symfony/console/Application.php(1058): Illuminate\Console\Command->run()
#26 /var/www/html/flarum/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#27 /var/www/html/flarum/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#28 /var/www/html/flarum/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#29 /var/www/html/flarum/flarum(24): Flarum\Console\Server->listen()
#30 {main}
[2024-01-14 14:14:02] flarum.ERROR: Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [Flarum\Post\CommentPost]. in /var/www/html/flarum/vendor/illuminate/database/Eloquent/Builder.php:527
Stack trace:
#0 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(102): Illuminate\Database\Eloquent\Builder->firstOrFail()
#1 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(57): FoF\Subscribed\Jobs\SendNotificationWhenPostIsUnapproved->restoreModel()
#2 /var/www/html/flarum/vendor/illuminate/queue/SerializesModels.php(122): FoF\Subscribed\Jobs\SendNotificationWhenPostIsUnapproved->getRestoredPropertyValue()
#3 [internal function]: FoF\Subscribed\Jobs\SendNotificationWhenPostIsUnapproved->__unserialize()
#4 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(97): unserialize()
#5 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(253): Illuminate\Queue\CallQueuedHandler->getCommand()
#6 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(213): Illuminate\Queue\CallQueuedHandler->failed()
#7 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(192): Illuminate\Queue\Jobs\Job->failed()
#8 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(238): Illuminate\Queue\Jobs\Job->fail()
#9 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(63): Illuminate\Queue\CallQueuedHandler->handleModelNotFound()
#10 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call()
#11 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(428): Illuminate\Queue\Jobs\Job->fire()
#12 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(378): Illuminate\Queue\Worker->process()
#13 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(172): Illuminate\Queue\Worker->runJob()
#14 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(117): Illuminate\Queue\Worker->daemon()
#15 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(101): Illuminate\Queue\Console\WorkCommand->runWorker()
#16 /var/www/html/flarum/vendor/blomstra/database-queue/src/Console/DatabaseWorkCommand.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#17 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(36): Blomstra\DatabaseQueue\Console\DatabaseWorkCommand->handle()
#18 /var/www/html/flarum/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#19 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#20 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#21 /var/www/html/flarum/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call()
#22 /var/www/html/flarum/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call()
#23 /var/www/html/flarum/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute()
#24 /var/www/html/flarum/vendor/illuminate/console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#25 /var/www/html/flarum/vendor/symfony/console/Application.php(1058): Illuminate\Console\Command->run()
#26 /var/www/html/flarum/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#27 /var/www/html/flarum/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#28 /var/www/html/flarum/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#29 /var/www/html/flarum/flarum(24): Flarum\Console\Server->listen()
#30 {main}
[2024-01-14 14:14:02] flarum.ERROR: Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [Flarum\Discussion\Discussion]. in /var/www/html/flarum/vendor/illuminate/database/Eloquent/Builder.php:527
Stack trace:
#0 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(102): Illuminate\Database\Eloquent\Builder->firstOrFail()
#1 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(57): Flarum\Queue\AbstractJob->restoreModel()
#2 /var/www/html/flarum/vendor/illuminate/queue/SerializesModels.php(122): Flarum\Queue\AbstractJob->getRestoredPropertyValue()
#3 [internal function]: Flarum\Queue\AbstractJob->__unserialize()
#4 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(97): unserialize()
#5 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(253): Illuminate\Queue\CallQueuedHandler->getCommand()
#6 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(213): Illuminate\Queue\CallQueuedHandler->failed()
#7 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(192): Illuminate\Queue\Jobs\Job->failed()
#8 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(238): Illuminate\Queue\Jobs\Job->fail()
#9 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(63): Illuminate\Queue\CallQueuedHandler->handleModelNotFound()
#10 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call()
#11 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(428): Illuminate\Queue\Jobs\Job->fire()
#12 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(378): Illuminate\Queue\Worker->process()
#13 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(172): Illuminate\Queue\Worker->runJob()
#14 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(117): Illuminate\Queue\Worker->daemon()
#15 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(101): Illuminate\Queue\Console\WorkCommand->runWorker()
#16 /var/www/html/flarum/vendor/blomstra/database-queue/src/Console/DatabaseWorkCommand.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#17 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(36): Blomstra\DatabaseQueue\Console\DatabaseWorkCommand->handle()
#18 /var/www/html/flarum/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#19 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#20 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#21 /var/www/html/flarum/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call()
#22 /var/www/html/flarum/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call()
#23 /var/www/html/flarum/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute()
#24 /var/www/html/flarum/vendor/illuminate/console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#25 /var/www/html/flarum/vendor/symfony/console/Application.php(1058): Illuminate\Console\Command->run()
#26 /var/www/html/flarum/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#27 /var/www/html/flarum/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#28 /var/www/html/flarum/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#29 /var/www/html/flarum/flarum(24): Flarum\Console\Server->listen()
#30 {main}
[2024-01-14 14:14:02] flarum.ERROR: Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [Flarum\Discussion\Discussion]. in /var/www/html/flarum/vendor/illuminate/database/Eloquent/Builder.php:527
Stack trace:
#0 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(102): Illuminate\Database\Eloquent\Builder->firstOrFail()
#1 /var/www/html/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(57): IanM\FollowUsers\Jobs\SendNotificationWhenDiscussionIsStarted->restoreModel()
#2 /var/www/html/flarum/vendor/illuminate/queue/SerializesModels.php(122): IanM\FollowUsers\Jobs\SendNotificationWhenDiscussionIsStarted->getRestoredPropertyValue()
#3 [internal function]: IanM\FollowUsers\Jobs\SendNotificationWhenDiscussionIsStarted->__unserialize()
#4 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(97): unserialize()
#5 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(253): Illuminate\Queue\CallQueuedHandler->getCommand()
#6 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(213): Illuminate\Queue\CallQueuedHandler->failed()
#7 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(192): Illuminate\Queue\Jobs\Job->failed()
#8 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(238): Illuminate\Queue\Jobs\Job->fail()
#9 /var/www/html/flarum/vendor/illuminate/queue/CallQueuedHandler.php(63): Illuminate\Queue\CallQueuedHandler->handleModelNotFound()
#10 /var/www/html/flarum/vendor/illuminate/queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call()
#11 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(428): Illuminate\Queue\Jobs\Job->fire()
#12 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(378): Illuminate\Queue\Worker->process()
#13 /var/www/html/flarum/vendor/illuminate/queue/Worker.php(172): Illuminate\Queue\Worker->runJob()
#14 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(117): Illuminate\Queue\Worker->daemon()
#15 /var/www/html/flarum/vendor/illuminate/queue/Console/WorkCommand.php(101): Illuminate\Queue\Console\WorkCommand->runWorker()
#16 /var/www/html/flarum/vendor/blomstra/database-queue/src/Console/DatabaseWorkCommand.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#17 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(36): Blomstra\DatabaseQueue\Console\DatabaseWorkCommand->handle()
#18 /var/www/html/flarum/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#19 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#20 /var/www/html/flarum/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#21 /var/www/html/flarum/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call()
#22 /var/www/html/flarum/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call()
#23 /var/www/html/flarum/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute()
#24 /var/www/html/flarum/vendor/illuminate/console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#25 /var/www/html/flarum/vendor/symfony/console/Application.php(1058): Illuminate\Console\Command->run()
#26 /var/www/html/flarum/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#27 /var/www/html/flarum/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#28 /var/www/html/flarum/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#29 /var/www/html/flarum/flarum(24): Flarum\Console\Server->listen()
#30 {main}