I am hitting an error which I believe could possibly be related to karaok and breaking changes, but I haven't been able to narrow it down as I've updated my templates using the new supported paramters for urls and such. Can see from my error logs on line 6 FoF\FollowTags\Notifications\NewDiscussionBlueprint
, so I'd have thought the template used for new discussions might be off but from the templates available to configure (seen below) I can only see that coming from Default template, and that template is working for notifications such as new user. Perhaps I am headed down the wrong path, any suggestions where I can look would be appreciated.
- Default Template
- Flarum/subscriptions New Post Email
- Flarum/mentions User Mentioned Email
- Flarum/mentions Post Mentioned Email
Because of this error, new discussions posted throw an error on submission "Oops, an unknown error occurred" and the page is not refreshed and is still on the new discussion modal, even though the discussions was successfully posted. Email notification obviously is failing though. It was also suggested in another thread that the undefined method for illiminate container url could come from incompatible or outdated extension, however I am running the latest for follow-tags and pretty mail which is where the errors seem to originate from. If I disable pretty mail, there is no error thrown on new discussion posts under tags that would trigger these notifications.
[2021-02-16 17:00:52] flarum.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Container\Container::url() in /usr/share/nginx/flarum/storage/views/4bdea7e04c28f191f4dba43e89f72ea10ac2eafa.php:7
Stack trace:
#0 /usr/share/nginx/flarum/vendor/illuminate/view/Engines/PhpEngine.php(43): include()
#1 /usr/share/nginx/flarum/vendor/illuminate/view/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('/usr/share/ngin...', Array)
#2 /usr/share/nginx/flarum/vendor/illuminate/view/View.php(143): Illuminate\View\Engines\CompilerEngine->get('/usr/share/ngin...', Array)
#3 /usr/share/nginx/flarum/vendor/illuminate/view/View.php(126): Illuminate\View\View->getContents()
#4 /usr/share/nginx/flarum/vendor/illuminate/view/View.php(91): Illuminate\View\View->renderContents()
#5 /usr/share/nginx/flarum/vendor/fof/pretty-mail/src/Overrides/NotificationMailer.php(88): Illuminate\View\View->render()
#6 /usr/share/nginx/flarum/vendor/flarum/core/src/Notification/Job/SendEmailNotificationJob.php(37): FoF\PrettyMail\Overrides\NotificationMailer->send(Object(FoF\FollowTags\Notifications\NewDiscussionBlueprint), Object(Flarum\User\User))
#6 /usr/share/nginx/flarum/vendor/flarum/core/src/Notification/Job/SendEmailNotificationJob.php(37): FoF\PrettyMail\Overrides\NotificationMailer-
>send(Object(FoF\FollowTags\Notifications\NewDiscussionBlueprint), Object(Flarum\User\User))
#7 /usr/share/nginx/flarum/vendor/illuminate/container/BoundMethod.php(36): Flarum\Notification\Job\SendEmailNotificationJob->handle(Object(FoF\PrettyMail\Overrides\NotificationMailer))
#8 /usr/share/nginx/flarum/vendor/illuminate/container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#9 /usr/share/nginx/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#10 /usr/share/nginx/flarum/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Array, Object(Closure))
#11 /usr/share/nginx/flarum/vendor/illuminate/container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Array, Array, NULL)
#12 /usr/share/nginx/flarum/vendor/illuminate/bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array)
...
sh-4.4$ php flarum info
Flarum core 0.1.0-beta.15
PHP version: 7.4.6
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, gmp, iconv, intl, json, ldap, exif, mysqlnd, PDO, Phar, SimpleXML, sockets, sqlite3, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, xmlreader, zip, Zend OPcache
+------------------------------------+------------------+--------+
| Flarum Extensions | | |
+------------------------------------+------------------+--------+
| ID | Version | Commit |
+------------------------------------+------------------+--------+
| flarum-approval | v0.1.0-beta.15 | |
| flarum-bbcode | v0.1.0-beta.15 | |
| flarum-emoji | v0.1.0-beta.15 | |
| flarum-lang-english | v0.1.0-beta.15 | |
| flarum-flags | v0.1.0-beta.15 | |
| flarum-lock | v0.1.0-beta.15 | |
| flarum-markdown | v0.1.0-beta.15 | |
| flarum-mentions | v0.1.0-beta.15 | |
| flarum-statistics | v0.1.0-beta.15 | |
| flarum-sticky | v0.1.0-beta.15.1 | |
| flarum-suspend | v0.1.0-beta.15 | |
| flarum-tags | v0.1.0-beta.15 | |
| michaelbelgium-discussion-views | v5.0.0 | |
| clarkwinkelmann-emojionearea | 0.3.0 | |
| askvortsov-discussion-templates | v0.3.0 | |
| askvortsov-moderator-warnings | v0.4.1 | |
| fof-best-answer | 0.3.6 | |
| fof-byobu | 0.6.1 | |
| fof-default-user-preferences | 0.3.1 | |
| fof-follow-tags | 0.6.5 | |
| fof-formatting | 0.3.1 | |
| fof-github-autolink | 0.1.5 | |
| fof-links | 0.5.4 | |
| fof-masquerade | 0.3.6 | |
| fof-merge-discussions | 0.5.1 | |
| fof-moderator-notes | 0.4.3 | |
| fof-polls | 0.3.2 | |
| fof-profile-image-crop | 0.2.1 | |
| fof-realtimedate | 0.2.1 | |
| fof-split | 0.6.0 | |
| fof-upload | 0.12.10 | |
| fof-user-bio | 0.4.2 | |
| fof-user-directory | 0.5.0 | |
| therealsujitk-gifs | v2.0.0 | |
| zerosonesfun-hashtags | 4.0.3 | |
| antoinefr-money | v0.11.0 | |
| clarkwinkelmann-who-read | 1.2.2 | |
| nearata-tags-color-generator | v1.2.0 | |
| fof-socialprofile | 0.2.3 | |
| clarkwinkelmann-author-change | 0.2.2 | |
| flarum-likes | v0.1.0-beta.15 | |
| flarum-nicknames | v0.1.0-beta.15 | |
| clarkwinkelmann-follow-tags-prompt | 0.2.0 | |
| fof-analytics | 0.11.0 | |
| v17development-blog | v0.2.1 | |
| flarum-subscriptions | v0.1.0-beta.15 | |
| fof-pretty-mail | 0.3.0 | |
| fof-forum-statistics-widget | 0.4.0 | |
| fof-subscribed | 0.4.1 | |
| maicol07-sso | 1.8.1 | |
| glowingblue-composer-preview | 0.2.0 | |
| fof-webhooks | 0.5.0 | |
| nearata-embed-video | v1.1.1 | |
+------------------------------------+------------------+--------+