The issue
I'm having some issues with my flarum installation. Till today I was using a flarum 1.8.5 version, and I had also a "staging" version, on a subdomain basically, still 1.8.5, that I used to try new stuff. Today, out of nowhere I started having some issues. I started to see the subdomain version on the main website, in random moments, then I logged out, and I couldn't to log back in, and I get this error while inspecting the page:
"forum.js?v=286a2d39:2 TypeError: Cannot read properties of undefined (reading 'filter')
at e.<anonymous> (forum.js?v=286a2d39:443:16364)
at e.items (forum.js?v=286a2d39:2:390312)
at n.view (forum.js?v=286a2d39:2:216941)
at e.view (forum.js?v=286a2d39:2:390282)
at Function.a (forum.js?v=286a2d39:2:135041)
at forum.js?v=286a2d39:2:136805
at forum.js?v=286a2d39:2:136938
at c (forum.js?v=286a2d39:2:137061)
at l (forum.js?v=286a2d39:2:135205)
at forum.js?v=286a2d39:2:136053"
So I did an upgrade to 1.8.9 version, and I could log back in, even if in some moments I still got the staging version to see on the main website. I cleared all the cache, also cloudflare, as I use that aswell, and after a while, I started to get again the same issue. Now I'm logged out, and getting the same error basically, and in some moments, if I refresh, I get to see the staging version. Any help with this?
Flarum information
Flarum core: 1.8.9
PHP version: 8.2.6
MySQL version: 8.0.40-0ubuntu0.22.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+----------------------------------------+---------+--------+
| Flarum Extensions | | |
+----------------------------------------+---------+--------+
| ID | Version | Commit |
+----------------------------------------+---------+--------+
| flarum-flags | v1.8.2 | |
| flarum-tags | v1.8.3 | |
| flarum-approval | v1.8.2 | |
| flarum-mentions | v1.8.5 | |
| flarum-subscriptions | v1.8.1 | |
| afrux-forum-widgets-core | v0.1.7 | |
| fof-follow-tags | 1.2.8 | |
| flarum-suspend | v1.8.4 | |
| sycho-profile-cover | v1.3.5 | |
| migratetoflarum-canonical | 1.0.0 | |
| justoverclock-welcomebox | 2.0.2 | |
| justoverclock-custom-html-widget | 0.1.4 | |
| ianm-html-head | 1.2.4 | |
| ianm-follow-users | 1.4.11 | |
| fof-user-bio | 1.4.2 | |
| fof-sitemap | 2.2.1 | |
| fof-share-social | 1.2.0 | |
| fof-recaptcha | 1.3.4 | |
| fof-nightmode | 1.6.0 | |
| fof-moderator-notes | 1.3.0 | |
| fof-ignore-users | 1.2.1 | |
| fof-gamification | 1.6.8 | |
| fof-formatting | 1.0.3 | |
| fof-disposable-emails | 1.0.0 | |
| fof-cookie-consent | 1.1.3 | |
| fof-best-answer | 1.6.3 | |
| fof-analytics | 1.1.0 | |
| flarum-sticky | v1.8.2 | |
| flarum-statistics | v1.8.1 | |
| flarum-nicknames | v1.8.2 | |
| flarum-markdown | v1.8.1 | |
| flarum-lock | v1.8.2 | |
| flarum-lang-italian | 1.17.0 | |
| flarum-emoji | v1.8.1 | |
| flarum-bbcode | v1.8.0 | |
| clarkwinkelmann-no-email-notifications | 1.0.0 | |
| clarkwinkelmann-first-post-approval | 1.0.1 | |
+----------------------------------------+---------+--------+