The issue
A newly created discussion can't be shown to the end user. In the Apache log I can see the following exceptions:
[Fri Jul 01 15:21:25.912030 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "title" on null in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 99
[Fri Jul 01 15:21:25.912060 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Undefined property: stdClass::$data in ./storage/views/5f49c10d95fdf97bfebd303ffcd78543c27e17ac.php on line 2
[Fri Jul 01 15:21:25.912067 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "attributes" on null in ./storage/views/5f49c10d95fdf97bfebd303ffcd78543c27e17ac.php on line 2
[Fri Jul 01 15:21:25.911999 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "attributes" on null in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 97
[Fri Jul 01 15:21:25.912074 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "title" on null in ./storage/views/5f49c10d95fdf97bfebd303ffcd78543c27e17ac.php on line 2
[Fri Jul 01 15:21:25.912052 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "slug" on null in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 84
[Fri Jul 01 15:21:25.912007 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "commentCount" on null in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 97
[Fri Jul 01 15:21:25.911982 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: foreach() argument must be of type array|object, null given in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 90
[Fri Jul 01 15:21:25.911991 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Undefined property: stdClass::$data in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 97
[Fri Jul 01 15:21:25.911933 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Undefined property: stdClass::$included in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 90
[Fri Jul 01 15:21:25.912015 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Undefined property: stdClass::$data in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 99
[Fri Jul 01 15:21:25.912023 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "attributes" on null in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 99
[Fri Jul 01 15:21:25.912037 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Undefined property: stdClass::$data in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 84
[Fri Jul 01 15:21:25.912045 2022] [-:error] [pid 65087:tid 34413317888] [client 85.5.70.190:41770] FastCGI: server "/var/run/hcgi/8545" stderr: PHP Warning: Attempt to read property "attributes" on null in ./vendor/flarum/core/src/Forum/Content/Discussion.php on line 84
Flarum information
Flarum core 1.3.1
PHP version: 7.4.30
MySQL version: 5.5.5-10.3.35-MariaDB-log
Loaded extensions: Core, date, libxml, pcre, hash, Reflection, SPL, session, standard, mysqlnd, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, fileinfo, filter, ftp, gd, gettext, gmp, gnupg, iconv, imagick, intl, jsmin, json, ldap, exif, mcrypt, mysqli, odbc, openssl, pcntl, PDO, pgsql, zlib, posix, pspell, readline, SimpleXML, snmp, soap, sockets, sodium, sqlite3, ssh2, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, yaml, zip, Phar, imap, mailparse, mongodb, PDFlib, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, scrypt, xmlreader, xmlrpc, xsl, Zend OPcache
+---------------------------------+---------+--------+
| Flarum Extensions | | |
+---------------------------------+---------+--------+
| ID | Version | Commit |
+---------------------------------+---------+--------+
| flarum-subscriptions | v1.3.1 | |
| flarum-tags | v1.3.0 | |
| fof-oauth | 1.2.2 | |
| fof-follow-tags | 1.1.5 | |
| flarum-flags | v1.3.0 | |
| michaelbelgium-discussion-views | v7.1.3 | |
| fof-upload | 1.2.3 | |
| fof-recaptcha | 1.1.0 | |
| fof-polls | 1.1.0 | |
| fof-geoip | 1.0.1 | |
| fof-formatting | 1.0.2 | |
| fof-drafts | 1.1.2 | |
| fof-best-answer | 1.2.2 | |
| flarum-suspend | v1.3.1 | |
| flarum-sticky | v1.3.0 | |
| flarum-statistics | v1.3.0 | |
| flarum-nicknames | v1.3.1 | |
| flarum-mentions | v1.3.1 | |
| flarum-markdown | v1.3.0 | |
| flarum-lock | v1.3.0 | |
| flarum-likes | v1.3.0 | |
| flarum-lang-english | v1.3.0 | |
| flarum-emoji | v1.3.0 | |
| flarum-bbcode | v1.3.0 | |
| flarum-approval | v1.3.0 | |
| clarkwinkelmann-emojionearea | 1.0.0 | |
+---------------------------------+---------+--------+
Base URL: https://community.axonivy.com
Installation path: /home/axonivya/www/community.axonivy.com
Queue driver: sync
Mail driver: smtp
Debug mode: off