Sorry no luck with this.
I updated the composer file to use "*"
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
},
{
"name": "Daniel Klabbers",
"email": "daniel@klabbers.email",
"homepage": "https://luceos.com"
},
{
"name": "David Sevilla Martin",
"email": "me+flarum@datitisev.me",
"homepage": "https://datitisev.me"
},
{
"name": "Clark Winkelmann",
"email": "clark.winkelmann@gmail.com",
"homepage": "https://clarkwinkelmann.com"
},
{
"name": "Matthew Kilgore",
"email": "matthew@kilgore.dev"
},
{
"name": "Alexander (Sasha) Skvortsov",
"email": "askvortsov@flarum.org"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
},
"require": {
"askvortsov/flarum-trust-levels": "",
"flarum/approval": "",
"flarum/bbcode": "",
"flarum/core": "0.1.0",
"flarum/emoji": "",
"flarum/flags": "",
"flarum/lang-english": "",
"flarum/likes": "",
"flarum/lock": "",
"flarum/markdown": "",
"flarum/mentions": "",
"flarum/nicknames": "",
"flarum/pusher": "",
"flarum/statistics": "",
"flarum/sticky": "",
"flarum/subscriptions": "",
"flarum/suspend": "",
"flarum/tags": "",
"fof/analytics": "",
"fof/byobu": "",
"fof/disposable-emails": "",
"fof/drafts": "",
"fof/filter": "",
"fof/follow-tags": "",
"fof/formatting": "",
"fof/frontpage": "",
"fof/ignore-users": "",
"fof/oauth": "",
"fof/pages": "",
"fof/polls": "",
"fof/profile-image-crop": "",
"fof/reactions": "",
"fof/realtimedate": "",
"fof/recaptcha": "",
"fof/share-social": "",
"fof/spamblock": "",
"fof/stopforumspam": "",
"fof/upload": "",
"fof/user-directory": "",
"fof/username-request": "",
"kyrne/shout": "",
"v17development/flarum-seo": "*"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "beta",
"prefer-stable": true
}
I now get this error when visiting the forum:
Flarum encountered a boot error. Details have been logged to the Flarum log file.
And when I tail this log file
root@ubuntu-s-1vcpu-2gb-intel-sfo3-01:/var/www/forum-staging# tail -f -n2000 storage/logs/flarum-2021-04-01.log
[2021-04-01 02:31:42] flarum.ERROR: Exception: Serialization of 'Closure' is not allowed in /var/www/forum/vendor/illuminate/queue/Queue.php:139
Stack trace:
#0 /var/www/forum/vendor/illuminate/queue/Queue.php(139): serialize()
#1 /var/www/forum/vendor/illuminate/queue/Queue.php(110): Illuminate\Queue\Queue->createObjectPayload()
#2 /var/www/forum/vendor/illuminate/queue/Queue.php(88): Illuminate\Queue\Queue->createPayloadArray()
#3 /var/www/forum/vendor/illuminate/queue/SyncQueue.php(40): Illuminate\Queue\Queue->createPayload()
#4 /var/www/forum/vendor/flarum/core/src/Notification/Driver/AlertNotificationDriver.php(35): Illuminate\Queue\SyncQueue->push()
#5 /var/www/forum/vendor/flarum/core/src/Notification/NotificationSyncer.php(102): Flarum\Notification\Driver\AlertNotificationDriver->send()
#6 /var/www/forum/vendor/flarum/mentions/src/Listener/UpdateMentionsMetadataWhenVisible.php(82): Flarum\Notification\NotificationSyncer->sync()
#7 /var/www/forum/vendor/flarum/mentions/src/Listener/UpdateMentionsMetadataWhenVisible.php(51): Flarum\Mentions\Listener\UpdateMentionsMetadataWhenVisible->syncPostMentions()
#8 /var/www/forum/vendor/illuminate/events/Dispatcher.php(389): Flarum\Mentions\Listener\UpdateMentionsMetadataWhenVisible->handle()
#9 /var/www/forum/vendor/illuminate/events/Dispatcher.php(218): Illuminate\Events\Dispatcher->Illuminate\Events{closure}()
#10 /var/www/forum/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\Events\Dispatcher->dispatch()
#11 /var/www/forum/vendor/flarum/core/src/Post/Command/PostReplyHandler.php(104): Flarum\Post\Command\PostReplyHandler->dispatchEventsFor()
#12 /var/www/forum/vendor/flarum/core/src/Notification/NotificationSyncer.php(145): Flarum\Post\Command\PostReplyHandler->Flarum\Post\Command{closure}()
#13 /var/www/forum/vendor/flarum/core/src/Post/Command/PostReplyHandler.php(105): Flarum\Notification\NotificationSyncer->onePerUser()
#14 /var/www/forum/vendor/illuminate/bus/Dispatcher.php(90): Flarum\Post\Command\PostReplyHandler->handle()
#15 /var/www/forum/vendor/illuminate/pipeline/Pipeline.php(130): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#16 /var/www/forum/vendor/illuminate/pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#17 /var/www/forum/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then()
#18 /var/www/forum/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\Bus\Dispatcher->dispatchNow()
#19 /var/www/forum/vendor/flarum/core/src/Api/Controller/CreatePostController.php(76): Illuminate\Bus\Dispatcher->dispatch()
#20 /var/www/forum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(115): Flarum\Api\Controller\CreatePostController->data()
#21 /var/www/forum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\Api\Controller\AbstractSerializeController->handle()
#22 /var/www/forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Api\Controller\AbstractCreateController->handle()
#23 /var/www/forum/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}()
#24 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process()
#25 /var/www/forum/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#26 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process()
#27 /var/www/forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(48): Laminas\Stratigility\Next->handle()
#28 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
#29 /var/www/forum/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#30 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process()
#31 /var/www/forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
#32 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
#33 /var/www/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility\Next->handle()
#34 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#35 /var/www/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
#36 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
#37 /var/www/forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\Stratigility\Next->handle()
#38 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
#39 /var/www/forum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#40 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
#41 /var/www/forum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#42 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods->process()
#43 /var/www/forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#44 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
#45 /var/www/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#46 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
#47 /var/www/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#48 /var/www/forum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#49 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
#50 /var/www/forum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\Stratigility\Next->handle()
#51 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
#52 /var/www/forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
#53 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
#54 /var/www/forum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle()
#55 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
#56 /var/www/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#57 /var/www/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
#58 /var/www/forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#59 /var/www/forum/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#60 /var/www/forum/public/index.php(26): Flarum\Http\Server->listen()
#61 {main}
[2021-04-01 02:40:41] flarum.ERROR: Error: Class 'Flarum\User\AbstractPolicy' not found in /var/www/forum-staging/vendor/fof/pages/src/Access/PagePolicy.php:19
Stack trace:
#0 /var/www/forum-staging/vendor/composer/ClassLoader.php(478): include()
#1 /var/www/forum-staging/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 [internal function]: spl_autoload_call()
#4 /var/www/forum-staging/vendor/illuminate/container/Container.php(833): ReflectionClass->__construct()
#5 /var/www/forum-staging/vendor/illuminate/container/Container.php(714): Illuminate\Container\Container->build()
#6 /var/www/forum-staging/vendor/illuminate/container/Container.php(652): Illuminate\Container\Container->resolve()
#7 /var/www/forum-staging/vendor/illuminate/events/Dispatcher.php(195): Illuminate\Container\Container->make()
#8 /var/www/forum-staging/vendor/illuminate/events/Dispatcher.php(173): Illuminate\Events\Dispatcher->resolveSubscriber()
#9 /var/www/forum-staging/vendor/fof/pages/extend.php(50): Illuminate\Events\Dispatcher->subscribe()
#10 /var/www/forum-staging/vendor/illuminate/container/BoundMethod.php(36): Flarum\Extension\Extension->FoF\Pages{closure}()
#11 /var/www/forum-staging/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#12 /var/www/forum-staging/vendor/illuminate/container/BoundMethod.php(81): Illuminate\Container\Util::unwrapIfClosure()
#13 /var/www/forum-staging/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#14 /var/www/forum-staging/vendor/illuminate/container/Container.php(611): Illuminate\Container\BoundMethod::call()
#15 /var/www/forum-staging/vendor/flarum/core/src/Extend/Compat.php(35): Illuminate\Container\Container->call()
#16 /var/www/forum-staging/vendor/flarum/core/src/Extension/Extension.php(145): Flarum\Extend\Compat->extend()
#17 /var/www/forum-staging/vendor/flarum/core/src/Extension/ExtensionManager.php(349): Flarum\Extension\Extension->extend()
#18 /var/www/forum-staging/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Flarum\Extension\ExtensionManager->extend()
#19 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}()
#20 /var/www/forum-staging/vendor/flarum/core/src/Foundation/Application.php(328): call_user_func()
#21 /var/www/forum-staging/vendor/flarum/core/src/Foundation/Application.php(269): Flarum\Foundation\Application->fireAppCallbacks()
#22 /var/www/forum-staging/vendor/flarum/core/src/Foundation/InstalledSite.php(150): Flarum\Foundation\Application->boot()
#23 /var/www/forum-staging/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#24 /var/www/forum-staging/vendor/flarum/core/src/Http/Server.php(58): Flarum\Foundation\InstalledSite->bootApp()
#25 /var/www/forum-staging/vendor/flarum/core/src/Http/Server.php(35): Flarum\Http\Server->safelyBootAndGetHandler()
#26 /var/www/forum-staging/public/index.php(26): Flarum\Http\Server->listen()
#27 {main}
It's a good thing I trialed this on a staging install, however the production install is still stuck in an inconsistent state.