askvortsov
composer remove minishlink/web-push
composer remove askvortsov/flarum-pwa
composer require askvortsov/flarum-pwa:*
composer require minishlink/web-push:*
After the most recent update, PUSH notifications are sending "Opss something went wrong ..." error.
[2021-04-01 06:49:19] flarum.ERROR: Error: Call to undefined method Flarum\Locale\Translator::transChoice() in /var/www/rc1/vendor/askvortsov/flarum-pwa/src/PushNotificationDriver.php:214
Stack trace:
#0 /var/www/rc1/vendor/askvortsov/flarum-pwa/src/PushNotificationDriver.php(179): Askvortsov\FlarumPWA\PushNotificationDriver->getTitle()
#1 /var/www/rc1/vendor/askvortsov/flarum-pwa/src/PushNotificationDriver.php(94): Askvortsov\FlarumPWA\PushNotificationDriver->getPayload()
#2 /var/www/rc1/vendor/flarum/core/src/Notification/NotificationSyncer.php(110): Askvortsov\FlarumPWA\PushNotificationDriver->send()
#3 /var/www/rc1/vendor/flarum/likes/src/Listener/SendNotificationWhenPostIsLiked.php(36): Flarum\Notification\NotificationSyncer->sync()
#4 /var/www/rc1/vendor/illuminate/events/Dispatcher.php(412): Flarum\Likes\Listener\SendNotificationWhenPostIsLiked->handle()
#5 /var/www/rc1/vendor/illuminate/events/Dispatcher.php(237): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
#6 /var/www/rc1/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\Events\Dispatcher->dispatch()
#7 /var/www/rc1/vendor/flarum/core/src/Post/Command/EditPostHandler.php(86): Flarum\Post\Command\EditPostHandler->dispatchEventsFor()
#8 /var/www/rc1/vendor/illuminate/bus/Dispatcher.php(122): Flarum\Post\Command\EditPostHandler->handle()
#9 /var/www/rc1/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#10 /var/www/rc1/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#11 /var/www/rc1/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#12 /var/www/rc1/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#13 /var/www/rc1/vendor/flarum/core/src/Api/Controller/UpdatePostController.php(57): Illuminate\Bus\Dispatcher->dispatch()
#14 /var/www/rc1/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(102): Flarum\Api\Controller\UpdatePostController->data()
#15 /var/www/rc1/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Api\Controller\AbstractSerializeController->handle()
#16 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#17 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process()
#18 /var/www/rc1/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#19 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process()
#20 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#21 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
#22 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#23 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process()
#24 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
#25 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
#26 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility\Next->handle()
#27 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#28 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
#29 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
#30 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#31 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
#32 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#33 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
#34 /var/www/rc1/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#35 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods->process()
#36 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#37 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
#38 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#39 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
#40 /var/www/rc1/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#41 /var/www/rc1/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#42 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
#43 /var/www/rc1/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#44 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
#45 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
#46 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
#47 /var/www/rc1/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle()
#48 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
#49 /var/www/rc1/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#50 /var/www/rc1/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ProcessIp->process()
#51 /var/www/rc1/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#52 /var/www/rc1/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
#53 /var/www/rc1/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#54 /var/www/rc1/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#55 /var/www/rc1/public/index.php(26): Flarum\Http\Server->listen()
#56 {main}
[2021-04-01 06:49:45] flarum.INFO: [PWA PUSH] Notification Type: postLiked
[2021-04-01 06:49:45] flarum.INFO: [PWA PUSH] Sending for users with ids: []
[2021-04-01 06:49:45] flarum.ERROR: Error: Call to undefined method Flarum\Locale\Translator::transChoice() in /var/www/rc1/vendor/askvortsov/flarum-pwa/src/PushNotificationDriver.php:214
Stack trace:
# php flarum info
Flarum core 0.1.0-beta.16
PHP version: 7.4.14
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
+-------------------------------+------------------+--------+
| Flarum Extensions | | |
+-------------------------------+------------------+--------+
| ID | Version | Commit |
+-------------------------------+------------------+--------+
| flarum-tags | v0.1.0-beta.16 | |
| flarum-lock | v0.1.0-beta.16 | |
| flarum-flags | v0.1.0-beta.16 | |
| fof-analytics | 0.12.0 | |
| flarum-pusher | v0.1.0-beta.16 | |
| itnt-uitab | v0.3.2 | |
| fof-sitemap | 0.7.0 | |
| fof-spamblock | 0.5.0 | |
| askvortsov-moderator-warnings | v0.5.0 | |
| fof-username-request | 0.5.0 | |
| fof-user-bio | 0.5.0 | |
| fof-split | 0.7.0 | |
| fof-oauth | 0.3.0 | |
| fof-formatting | 0.4.0 | |
| phenomlab-fancybox-wrapper | 0.7 | |
| v17development-blog | v0.3.0 | |
| tolgaaaltas-lang-turkish | 0.16.1 | |
| flarum-emoji | v0.1.0-beta.16 | |
| flarum-lang-english | v0.1.0-beta.16 | |
| flarum-bbcode | v0.1.0-beta.16 | |
| flarum-approval | v0.1.0-beta.16 | |
| flarum-markdown | v0.1.0-beta.16.1 | |
| flarum-mentions | v0.1.0-beta.16 | |
| flarum-sticky | v0.1.0-beta.16 | |
| flarum-subscriptions | v0.1.0-beta.16 | |
| flarum-suspend | v0.1.0-beta.16 | |
| flarum-likes | v0.1.0-beta.16 | |
| flarum-statistics | v0.1.0-beta.16 | |
| tolgaaaltas-turkish | 0.16.1 | |
| v17development-seo | v1.7.2 | |
| fof-best-answer | 0.4.0 | |
| fof-nightmode | 0.8.0 | |
| fof-profile-image-crop | 0.3.0 | |
| fof-user-directory | 0.6.0 | |
| ianm-html-head | 0.2.0 | |
| flarumtr-mobile-search | v1.1 | |
| fof-subscribed | 0.5.0 | |
| fof-upload | 0.14.0-beta | |
+-------------------------------+------------------+--------+