ctml
I've got an issue with email notifications, new discussions posted throw an error "Oops! Something went wrong. Please reload the page and try again." because email notifications for new discussions are not working. At first I thought it was Pretty Mail and the breaking changes for custom templates in an update for beta 14. After fixing the templates, notifications of certain types began working (new users, posts, mentions) but not new discussions - these don't even work with PrettyMail disabled so I've now ruled that extension out.
The error Call to undefined method Illuminate\Container\Container::url()
resembles that of an outdated extension I've heard but my extensions are all up to date (php flarum info
below). There is reference to a file in there in the error logs but I am not sure what those files are generated from or meant for. Are these files supposed to be affected by clearing cache via php flarum cache:clear
? Is it possible that something under storage/views is stale, perhaps my cache isn't entirely clearing correctly?
Thanks in advance for taking a look 🙂
Next Illuminate\View\ViewException: Call to undefined method Illuminate\Container\Container::url() (View: /usr/share/nginx/flarum/vendor/fof/follow-tags/resources/views/emails/newDiscussion.blade.php) in /usr/share/nginx/flarum/storage/views/4bdea7e04c28f191f4dba43e89f72ea10ac2eafa.php:7
Stack trace:
#0 /usr/share/nginx/flarum/vendor/illuminate/view/Engines/PhpEngine.php(47): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(Symfony\Component\Debug\Exception\FatalThrowableError), 1)
#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/illuminate/mail/Mailer.php(355): Illuminate\View\View->render()
#6 /usr/share/nginx/flarum/vendor/illuminate/mail/Mailer.php(334): Illuminate\Mail\Mailer->renderView('fof-follow-tags...', Array)
#7 /usr/share/nginx/flarum/vendor/illuminate/mail/Mailer.php(246): Illuminate\Mail\Mailer->addContent(Object(Illuminate\Mail\Message), NULL, 'fof-follow-tags...', NULL, Array)
#8 /usr/share/nginx/flarum/vendor/flarum/core/src/Notification/NotificationMailer.php(51): Illuminate\Mail\Mailer->send(NULL, Array, Object(Closure))
#9 /usr/share/nginx/flarum/vendor/flarum/core/src/Notification/Job/SendEmailNotificationJob.php(37): Flarum\Notification\NotificationMailer->send(Object(FoF\FollowTags\Notifications\NewDiscussionBlueprint), Object(Flarum\Use
r\User))
#10 /usr/share/nginx/flarum/vendor/illuminate/container/BoundMethod.php(36): Flarum\Notification\Job\SendEmailNotificationJob->handle(Object(Flarum\Notification\NotificationMailer))
#11 /usr/share/nginx/flarum/vendor/illuminate/container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 /usr/share/nginx/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#13 /usr/share/nginx/flarum/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Array, Object(Closure))
#14 /usr/share/nginx/flarum/vendor/illuminate/container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Array, Array, NULL)
#15 /usr/share/nginx/flarum/vendor/illuminate/bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array)
#16 /usr/share/nginx/flarum/vendor/illuminate/pipeline/Pipeline.php(130): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(Flarum\Notification\Job\SendEmailNotificationJob))
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, sqlsrv, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, 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, 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.7 | |
| 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.3 | |
| flarum-subscriptions | v0.1.0-beta.15 | |
| fof-forum-statistics-widget | 0.4.0 | |
| fof-subscribed | 0.4.1 | |
| glowingblue-composer-preview | 0.2.0 | |
| nearata-embed-video | v1.1.1 | |
+------------------------------------+------------------+--------+