This is now happening on a more than frequent basis, and quite irritating 🙂
Clearing the cache - doesn't matter if it's by the website itself, or from CLI. I always seem to land up with this
Argument 1 passed to Flarum\Formatter\Event\Rendering::__construct() must be an instance of s9e\TextFormatter\Renderer, instance of __PHP_Incomplete_Class given, called in /var/www/vhosts/metabullet.com/httpdocs/vendor/flarum/core/src/Formatter/Formatter.php on line 105
Checking the file manager, I see that the permissions for some of the cache entries are set to root - how, I do not know as I'm not even logged in as root !!
The only way I can rectify this is to login as root, and issue
sudo chown -R metabullet /var/www/vhosts/metabullet.com/httpdocs/storage/cache
If I then exit sudo and clear the cache from CLI, it works :-(
metabullet@vps:~/httpdocs$ php flarum info
Flarum core 0.1.0-beta.15
PHP version: 7.4.3
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, gettext, gmp, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, 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-subscriptions | v0.1.0-beta.15 | |
| flarum-suspend | v0.1.0-beta.15 | |
| flarum-tags | v0.1.0-beta.15 | |
| fof-follow-tags | 0.6.5 | |
| fof-oauth | 0.2.1 | |
| fof-linguist | 0.5.0 | |
| fof-sitemap | 0.6.0 | |
| fof-split | 0.6.0 | |
| fof-moderator-notes | 0.4.3 | |
| fof-merge-discussions | 0.5.1 | |
| v17development-seo | v1.6.2 | |
| fof-subscribed | 0.4.1 | |
| fof-spamblock | 0.4.0 | |
| fof-gamification | 0.4.2 | |
| fof-realtimedate | 0.2.1 | |
| flarumite-simple-discussion-views | 0.2.3 | |
| fof-filter | 0.3.2 | |
| fof-impersonate | 0.7.0 | |
| fof-share-social | 0.3.0 | |
| fof-upload | 0.12.10 | |
| fof-user-directory | 0.5.0 | |
| phenomlab-scrolltotop | 0.1.3 | |
| kyrne-websocket | 2.3.0 | |
| fof-formatting | 0.3.1 | |
| therealsujitk-hljs | v2.0.0 | |
| nearata-copy-code-to-clipboard | v1.2.0 | |
| fof-best-answer | 0.3.6 | |
| fof-terms | 0.6.1 | |
| fof-pretty-mail | 0.3.0 | |
| fof-user-bio | 0.4.2 | |
| fof-links | 0.5.4 | |
| fof-pages | 0.6.0 | |
| fof-username-request | 0.4.2 | |
| fof-ignore-users | 0.3.1 | |
| ianm-synopsis | 0.1.2 | |
| v17development-blog | v0.2.3 | |
| fof-drafts | 0.3.2 | |
| fof-reactions | 0.5.0 | |
| clarkwinkelmann-popular-discussion-badge | 0.2.2 | |
| clarkwinkelmann-who-read | 1.2.2 | |
| phenomlab-fancybox-wrapper | 0.4 | |
| fof-polls | 0.3.2 | |
| reflar-recache | 2.2.4 | |
+------------------------------------------+------------------+--------+
Base URL: https://metabullet.com
Installation path: /var/www/vhosts/metabullet.com/httpdocs
Debug mode: off
Any thoughts on this ?