When I tried to post replies to a discussion, there is a tooltip in the bottom-left corner saying The requested resource was not found
. And the replies I posted were appended to the first post in the discussion. (There were no other posts in the discussion)
This is my Flarum info:
Flarum core 0.1.0-beta.13
PHP version: 7.3.15
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, json, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader
+----------------------------------+----------------+--------+
| Flarum Extensions | | |
+----------------------------------+----------------+--------+
| ID | Version | Commit |
+----------------------------------+----------------+--------+
| flarum-approval | v0.1.0-beta.13 | |
| flarum-lang-english | v0.1.0-beta.13 | |
| flarum-flags | v0.1.0-beta.13 | |
| flarum-lock | v0.1.0-beta.13 | |
| flarum-mentions | v0.1.0-beta.13 | |
| flarum-statistics | v0.1.0-beta.13 | |
| flarum-sticky | v0.1.0-beta.13 | |
| flarum-subscriptions | v0.1.0-beta.13 | |
| flarum-suspend | v0.1.0-beta.13 | |
| flarum-tags | v0.1.0-beta.13 | |
| flarum-markdown | v0.1.0-beta.13 | |
| flarum-bbcode | v0.1.0-beta.12 | |
| flarum-auth-github | v0.1.0-beta.13 | |
| fof-user-bio | 0.1.3 | |
| kevid-pipetables | v2.0 | |
| fof-terms | 0.4.2 | |
| flagrow-ads | 0.2.4 | |
| fof-disposable-emails | 0.1.0 | |
| fof-byobu | 0.5.6 | |
| fof-drafts | 0.1.12 | |
| the-turk-edit-notifications | 0.1.5 | |
| csineneo-lang-simplified-chinese | 1.13.1 | |
| flarum-emoji | v0.1.0-beta.13 | |
| fof-sitemap | 0.5.1 | |
| flarum-likes | v0.1.0-beta.13 | |
| fof-pages | 0.4.0 | |
| fof-links | 0.3.0 | |
| fof-nightmode | 0.4.0 | |
| fof-stopforumspam | 0.2.2 | |
| fof-spamblock | 0.2.2 | |
| fof-best-answer | 0.1.11 | |
| fof-polls | 0.1.2 | |
| fof-moderator-notes | 0.2.5 | |
| fof-impersonate | 0.5.0 | |
| fof-linguist | 0.4.2 | |
| askvortsov-copy-links | v0.1.1 | |
| fof-profile-image-crop | 0.1.2 | |
| fof-formatting | 0.1.5 | |
| fof-filter | 0.1.0-beta.2 | |
| fof-socialprofile | 0.1.2 | |
| fof-follow-tags | 0.4.1 | |
| askvortsov-discussion-templates | v0.1.3 | |
| simonxeko-follow-users | 0.3.5 | |
| studosi-mail-filter | 0.2.0 | |
| reflar-level-ranks | 1.2.3 | |
+----------------------------------+----------------+--------+
Then I turned the debug mode on, and reproduced the error, and got these debug infos:
Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [Flarum\Post\CommentPost]. in /path/to/flarum/vendor/illuminate/database/Eloquent/Builder.php:452
Stack trace:
#0 /path/to/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(85): Illuminate\Database\Eloquent\Builder-\u003EfirstOrFail()
#1 /path/to/flarum/vendor/illuminate/queue/SerializesAndRestoresModelIdentifiers.php(55): FoF\FollowTags\Jobs\SendNotificationWhenReplyIsPosted-\u003ErestoreModel(Object(Illuminate\Contracts\Database\ModelIdentifier))
#2 /path/to/flarum/vendor/illuminate/queue/SerializesModels.php(45): FoF\FollowTags\Jobs\SendNotificationWhenReplyIsPosted-\u003EgetRestoredPropertyValue(Object(Illuminate\Contracts\Database\ModelIdentifier))
#3 [internal function]: FoF\FollowTags\Jobs\SendNotificationWhenReplyIsPosted-\u003E__wakeup()
#4 /path/to/flarum/vendor/illuminate/queue/CallQueuedHandler.php(146): unserialize(\u0027O:53:\u0022FoF\\Follo...\u0027)
#5 /path/to/flarum/vendor/illuminate/queue/Jobs/Job.php(172): Illuminate\Queue\CallQueuedHandler-\u003Efailed(Array, Object(Illuminate\Database\Eloquent\ModelNotFoundException))
#6 /path/to/flarum/vendor/illuminate/queue/FailingJob.php(33): Illuminate\Queue\Jobs\Job-\u003Efailed(Object(Illuminate\Database\Eloquent\ModelNotFoundException))
#7 /path/to/flarum/vendor/illuminate/queue/CallQueuedHandler.php(131): Illuminate\Queue\FailingJob::handle(NULL, Object(Illuminate\Queue\Jobs\SyncJob), Object(Illuminate\Database\Eloquent\ModelNotFoundException))
#8 /path/to/flarum/vendor/illuminate/queue/CallQueuedHandler.php(45): Illuminate\Queue\CallQueuedHandler-\u003EhandleModelNotFound(Object(Illuminate\Queue\Jobs\SyncJob), Object(Illuminate\Database\Eloquent\ModelNotFoundException))
#9 /path/to/flarum/vendor/illuminate/queue/Jobs/Job.php(83): Illuminate\Queue\CallQueuedHandler-\u003Ecall(Object(Illuminate\Queue\Jobs\SyncJob), Array)
#10 /path/to/flarum/vendor/illuminate/queue/SyncQueue.php(42): Illuminate\Queue\Jobs\Job-\u003Efire()
#11 /path/to/flarum/vendor/fof/follow-tags/src/Listeners/QueueNotificationJobs.php(45): Illuminate\Queue\SyncQueue-\u003Epush(Object(FoF\FollowTags\Jobs\SendNotificationWhenReplyIsPosted))
#12 /path/to/flarum/vendor/illuminate/events/Dispatcher.php(360): FoF\FollowTags\Listeners\QueueNotificationJobs-\u003EwhenPostCreated(Object(Flarum\Post\Event\Posted))
#13 /path/to/flarum/vendor/illuminate/events/Dispatcher.php(209): Illuminate\Events\Dispatcher-\u003EIlluminate\Events\{closure}(\u0027Flarum\\Post\\Eve...\u0027, Array)
#14 /path/to/flarum/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\Events\Dispatcher-\u003Edispatch(\u0027Flarum\\Post\\Eve...\u0027)
#15 /path/to/flarum/vendor/flarum/core/src/Post/Command/PostReplyHandler.php(106): Flarum\Post\Command\PostReplyHandler-\u003EdispatchEventsFor(Object(Flarum\Post\CommentPost), Object(Flarum\User\User))
#16 /path/to/flarum/vendor/flarum/core/src/Notification/NotificationSyncer.php(148): Flarum\Post\Command\PostReplyHandler-\u003EFlarum\Post\Command\{closure}()
#17 /path/to/flarum/vendor/flarum/core/src/Post/Command/PostReplyHandler.php(107): Flarum
otification
otificationSyncer-\u003EonePerUser(Object(Closure))
#18 /path/to/flarum/vendor/illuminate/bus/Dispatcher.php(90): Flarum\Post\Command\PostReplyHandler-\u003Ehandle(Object(Flarum\Post\Command\PostReply))
#19 /path/to/flarum/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher-\u003EIlluminate\Bus\{closure}(Object(Flarum\Post\Command\PostReply))
#20 /path/to/flarum/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline-\u003EIlluminate\Pipeline\{closure}(Object(Flarum\Post\Command\PostReply))
#21 /path/to/flarum/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline-\u003Ethen(Object(Closure))
#22 /path/to/flarum/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\Bus\Dispatcher-\u003EdispatchNow(Object(Flarum\Post\Command\PostReply))
#23 /path/to/flarum/vendor/flarum/core/src/Api/Controller/CreatePostController.php(73): Illuminate\Bus\Dispatcher-\u003Edispatch(Object(Flarum\Post\Command\PostReply))
#24 /path/to/flarum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\Api\Controller\CreatePostController-\u003Edata(Object(Laminas\Diactoros\ServerRequest), Object(Tobscure\JsonApi\Document))
#25 /path/to/flarum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\Api\Controller\AbstractSerializeController-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#26 /path/to/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Api\Controller\AbstractCreateController-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#27 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\Http\RouteHandlerFactory-\u003EFlarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#28 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\DispatchRoute-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#29 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#30 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#31 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#32 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#33 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#34 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#35 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#36 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#37 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#38 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#39 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#40 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#41 /path/to/flarum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#42 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#43 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#44 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#45 /path/to/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#46 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#47 /path/to/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#48 /path/to/flarum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#49 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#50 /path/to/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#51 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#52 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#53 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#54 /path/to/flarum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#55 /path/to/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility
ext))
#56 /path/to/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility
ext-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#57 /path/to/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe-\u003Eprocess(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#58 /path/to/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe-\u003Ehandle(Object(Laminas\Diactoros\ServerRequest))
#59 /path/to/flarum/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner-\u003Erun()
#60 /path/to/flarum/public/index.php(22): Flarum\Http\Server-\u003Elisten()
#61 {main}