I have a weird behavior which seems to track back to FoF Terms. This already happened before Version 1.4.1
but i didn't look into it in more detail until today.
I can reproduce this with my two Administrator accounts, but Moderators and Users are not affected by this.
I have a lot of errors in my NGINX error log of the following kind. The Flarum Logs (storage/logs
) themselves don't show any error.
2024/11/30 18:02:32 [error] 1466#1466: *851 FastCGI sent in stderr: "PHP message: PHP Warning: Attempt to read property "pivot" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "is_accepted" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "pivot" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "is_accepted" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "pivot" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "is_accepted" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "pivot" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "is_accepted" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "pivot" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "is_accepted" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "pivot" on null in /var/www/example.com/forum/vendor/fof/terms/src/Repositories/PolicyRepository.php on line 98; PHP message: PHP Warning: Attempt to read property "is_accepted" on null in /var/www/example.com/forum/vendor/fof/terms/src/Reposito
While the error above happens more often, it is sometimes - always on the same (secondary) Tags or Discussions - followed by the next error.
2024/11/30 18:02:32 [error] 1466#1466: *851 upstream sent too big header while reading response header from upstream, client: 2003:ea:cccc:bbbb:aaaa:zzzz:yyyy:xxxx, server: forum.example.com, request: "GET /api/discussions?include=user%2ClastPostedUser%2Ctags%2Ctags.parent%2CrecipientUsers%2CrecipientGroups%2CfirstPost&filter%5Btag%5D=marktplatz&sort&page%5Boffset%5D=0 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.3-fpm.sock:", host: "forum.example.com", referrer: "https://forum.example.com/t/marktplatz"
While the first error seemingly has no visible issues while browsing the forum, the second error leads to a 502 error and subsequently not loading the requested page. Affected (secondary) Tags won't even load with Ctrl+R
, while affected Discussions can be reloaded with Ctrl+R
without a 502 error.
As mentioned this only affects my Administrator accounts and is a nuissance to me, while other users are not affected by this. Does anybody have a clue, what is causing this problem?
Edit: Deactivating FoF Terms and the problem is gone.
Edit: Flarum info
Flarum core: 1.8.9
PHP version: 8.3.6
MySQL version: 8.0.40-0ubuntu0.24.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imagick, intl, 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-bbcode | v1.8.0 | |
| flarum-suspend | v1.8.4 | |
| flarum-approval | v1.8.2 | |
| flarum-tags | v1.8.3 | |
| fof-formatting | 1.0.3 | |
| wolfgang-demeter-bbcode-5star-rating | v0.1.8 | |
| wolfgang-demeter-amazon-product-api | v0.1.7 | |
| fof-user-bio | 1.4.2 | |
| fof-upload | 1.6.1 | |
| fof-terms | 1.4.1 | |
| fof-split | 1.1.1 | |
| fof-socialprofile | 1.1.6 | |
| fof-recaptcha | 1.3.4 | |
| fof-polls | 2.2.9 | |
| fof-pages | 1.0.8 | |
| fof-merge-discussions | 1.4.1 | |
| fof-links | 1.3.0 | |
| fof-byobu | 1.3.8 | |
| fof-amazon-affiliation | 1.1.0 | |
| flarum-subscriptions | v1.8.1 | |
| flarum-sticky | v1.8.2 | |
| flarum-statistics | v1.8.1 | |
| flarum-nicknames | v1.8.2 | |
| flarum-mentions | v1.8.5 | |
| flarum-markdown | v1.8.1 | |
| flarum-lock | v1.8.2 | |
| flarum-likes | v1.8.1 | |
| flarum-lang-german | dev-master | |
| flarum-lang-english | v1.8.0 | |
| datlechin-birthdays | v2.1.2 | |
| askvortsov-auto-moderator | v0.1.3 | |
| antoinefr-bbcode-fa | v1.0.0 | |
+--------------------------------------+------------+--------+
Base URL: https://forum.example.com
Installation path: /var/www/example.com/forum
Queue driver: sync
Session driver: file
Mail driver: mail
Debug mode: off