westyler
flarum.ERROR: Error: Call to a member function refreshDiscussionCount() on null in /data/host/skeleton/vendor/flarum/approval/src/Listener/UpdateDiscussionAfterPostApproval.php:29
Stack trace:
#0 /data/host/skeleton/vendor/flarum/core/src/Database/AbstractModel.php(83): Flarum\Approval\Listener\UpdateDiscussionAfterPostApproval->Flarum\Approval\Listener\{closure}()
#1 /data/host/skeleton/vendor/illuminate/events/Dispatcher.php(404): Flarum\Database\AbstractModel::Flarum\Database\{closure}()
#2 /data/host/skeleton/vendor/illuminate/events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
#3 /data/host/skeleton/vendor/illuminate/database/Eloquent/Concerns/HasEvents.php(188): Illuminate\Events\Dispatcher->dispatch()
#4 /data/host/skeleton/vendor/illuminate/database/Eloquent/Model.php(1035): Illuminate\Database\Eloquent\Model->fireModelEvent()
#5 /data/host/skeleton/vendor/illuminate/database/Eloquent/Model.php(1006): Illuminate\Database\Eloquent\Model->finishSave()
#6 /data/host/skeleton/vendor/flarum/approval/src/Listener/UpdateDiscussionAfterPostApproval.php(33): Illuminate\Database\Eloquent\Model->save()
#7 /data/host/skeleton/vendor/illuminate/events/Dispatcher.php(424): Flarum\Approval\Listener\UpdateDiscussionAfterPostApproval->handle()
#8 /data/host/skeleton/vendor/illuminate/events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
#9 /data/host/skeleton/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\Events\Dispatcher->dispatch()
#10 /data/host/skeleton/vendor/flarum/core/src/Post/Command/EditPostHandler.php(86): Flarum\Post\Command\EditPostHandler->dispatchEventsFor()
#11 /data/host/skeleton/vendor/illuminate/bus/Dispatcher.php(122): Flarum\Post\Command\EditPostHandler->handle()
#12 /data/host/skeleton/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#13 /data/host/skeleton/vendor/clarkwinkelmann/flarum-ext-anonymous-posting/src/FakeUserRelation/FakeUserHydratorPipe.php(17): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#14 /data/host/skeleton/vendor/illuminate/pipeline/Pipeline.php(167): ClarkWinkelmann\AnonymousPosting\FakeUserRelation\FakeUserHydratorPipe->handle()
#15 /data/host/skeleton/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#16 /data/host/skeleton/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#17 /data/host/skeleton/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#18 /data/host/skeleton/vendor/flarum/core/src/Api/Controller/UpdatePostController.php(57): Illuminate\Bus\Dispatcher->dispatch()
#19 /data/host/skeleton/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(116): Flarum\Api\Controller\UpdatePostController->data()
#20 /data/host/skeleton/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
It appears that there is also an incompatibility with the Approval extension?
Just to confirm that it is indeed clarkwinkelmann-anonymous-posting
that is faulty, I’ve disabled the anonymous posting extension for you. Could you please check whether the error happens now, please? If no, I will report the issue to that extension’s thread.