FriendsOfFlarum
Hi,
It returned 500 when I was accessing /sitemap.xml
.I set it as disk mode.This is the log:
[2020-07-24 12:28:36] production.ERROR: TypeError: Return value of FoF\Sitemap\Resources\Discussion::lastModifiedAt() must be an instance of Carbon\Carbon, null returned in /data/wwwroot/community.wvbtech.com/vendor/fof/sitemap/src/Resources/Discussion.php:47
Stack trace:
#0 /data/wwwroot/community.wvbtech.com/vendor/fof/sitemap/src/SitemapGenerator.php(57): FoF\Sitemap\Resources\Discussion->lastModifiedAt()
#1 /data/wwwroot/community.wvbtech.com/vendor/illuminate/database/Concerns/BuildsQueries.php(62): FoF\Sitemap\SitemapGenerator->FoF\Sitemap\{closure}()
#2 /data/wwwroot/community.wvbtech.com/vendor/illuminate/database/Concerns/BuildsQueries.php(39): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Concerns\{closure}()
#3 /data/wwwroot/community.wvbtech.com/vendor/illuminate/database/Concerns/BuildsQueries.php(66): Illuminate\Database\Eloquent\Builder->chunk()
#4 /data/wwwroot/community.wvbtech.com/vendor/fof/sitemap/src/SitemapGenerator.php(61): Illuminate\Database\Eloquent\Builder->each()
#5 /data/wwwroot/community.wvbtech.com/vendor/fof/sitemap/src/Commands/CacheSitemapCommand.php(27): FoF\Sitemap\SitemapGenerator->getUrlSet()
#6 [internal function]: FoF\Sitemap\Commands\CacheSitemapCommand->handle()
#7 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array()
#8 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#9 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod()
#10 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/Container.php(572): Illuminate\Container\BoundMethod::call()
#11 /data/wwwroot/community.wvbtech.com/vendor/illuminate/console/Command.php(183): Illuminate\Container\Container->call()
#12 /data/wwwroot/community.wvbtech.com/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute()
#13 /data/wwwroot/community.wvbtech.com/vendor/illuminate/console/Command.php(170): Symfony\Component\Console\Command\Command->run()
#14 /data/wwwroot/community.wvbtech.com/vendor/symfony/console/Application.php(1018): Illuminate\Console\Command->run()
#15 /data/wwwroot/community.wvbtech.com/vendor/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand()
#16 /data/wwwroot/community.wvbtech.com/vendor/symfony/console/Application.php(147): Symfony\Component\Console\Application->doRun()
#17 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Console/Server.php(44): Symfony\Component\Console\Application->run()
#18 /data/wwwroot/community.wvbtech.com/flarum(24): Flarum\Console\Server->listen()
#19 {main}
And this is my flarum info
:
[root@main community.wvbtech.com]# php flarum info
Flarum core 0.1.0-beta.13
PHP version: 7.4.8
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, ctype, curl, dom, hash, filter, ftp, gd, gettext, SPL, iconv, intl, json, mbstring, session, standard, pcntl, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, shmop, SimpleXML, soap, sockets, sodium, exif, sysvsem, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, gmp, imagick, fileinfo, imap, memcached, redis, Zend OPcache
+--------------------------------------+-------------------+--------+
| Flarum Extensions | | |
+--------------------------------------+-------------------+--------+
| ID | Version | Commit |
+--------------------------------------+-------------------+--------+
| flarum-approval | v0.1.0-beta.13 | |
| flarum-emoji | v0.1.0-beta.13 | |
| flarum-lang-english | v0.1.0-beta.13 | |
| flarum-flags | v0.1.0-beta.13 | |
| flarum-lock | v0.1.0-beta.13 | |
| flarum-markdown | v0.1.0-beta.13 | |
| flarum-statistics | v0.1.0-beta.13 | |
| flarum-sticky | v0.1.0-beta.13 | |
| flarum-subscriptions | v0.1.0-beta.13 | |
| flarum-suspend | v0.1.0-beta.13 | |
| flarum-tags | v0.1.0-beta.13 | |
| oe800-bbcode-alerts | 0.2.0 | |
| lcinhk-acgembed | v0.5.2 | |
| flarum-akismet | v0.1.0-beta.13 | |
| flarum-bbcode | v0.1.0-beta.12 | |
| michaelbelgium-discussion-views | v4.0.1 | |
| flarum-embed | v0.1.0-beta.13 | |
| flagrow-ads | 0.2.4 | |
| flagrow-direct-links | 0.2.0 | |
| askvortsov-categories | v1.0.4 | |
| littlegolden-lang-simplified-chinese | v0.1.67 | |
| csineneo-lang-traditional-chinese | 1.13.1 | |
| askvortsov-moderator-warnings | v0.2.4 | |
| fof-ban-ips | 0.2.0 | |
| fof-best-answer | 0.1.11 | |
| fof-byobu | 0.5.6 | |
| fof-disposable-emails | 0.1.0 | |
| saleksin-auth-google | v0.1.0-beta.8.0.3 | |
| flarum-auth-github | v0.1.0-beta.13 | |
| fof-follow-tags | 0.3.6 | |
| fof-formatting | 0.1.5 | |
| fof-geoip | 0.1.7 | |
| fof-html-errors | 0.4.0 | |
| fof-ignore-users | 0.1.6 | |
| fof-linguist | 0.4.2 | |
| fof-links | 0.3.0 | |
| fof-merge-discussions | 0.3.3 | |
| fof-nightmode | 0.4.0 | |
| fof-pages | 0.4.0 | |
| fof-polls | 0.1.2 | |
| fof-pretty-mail | 0.1.6 | |
| fof-prevent-necrobumping | 0.2.1 | |
| fof-profile-image-crop | 0.1.2 | |
| fof-reactions | 0.3.4 | |
| fof-secure-https | v0.1.0 | |
| fof-sitemap | 0.5.1 | |
| fof-socialprofile | 0.1.2 | |
| fof-spamblock | 0.2.2 | |
| fof-split | 0.4.4 | |
| fof-stopforumspam | 0.2.2 | |
| fof-upload | 0.9.2 | |
| fof-user-bio | 0.1.3 | |
| fof-user-directory | 0.3.4 | |
| fof-username-request | 0.2.0 | |
| fof-recaptcha | 0.1.2 | |
| kilowhat-mailing | 0.2.3 | |
| kvothe-pipetables | 1.0.9 | |
| flarum-mentions | v0.1.0-beta.13 | |
| antoinefr-online | 0.4.0 | |
| michaelbelgium-profile-views | v3.1.0 | |
| kvothe-reply-to-see | v0.1.2 | |
| v17development-seo | 1.2.1 | |
| kvothe-signup-button | v0.1.4 | |
| amaurycarrade-syndication | v0.3.1 | |
| wvbforum-tieba-stickers | 0.2.1 | |
| extiverse-bazaar | 0.4.1 | |
| zeokat-seoslugs | v0.1.6 | |
| the-turk-extended-appearance | 0.1.1 | |
| the-turk-edit-notifications | 0.1.5 | |
| the-turk-diff | 1.0.8 | |
| fof-impersonate | 0.5.0 | |
| flarum-pusher | v0.1.0-beta.13 | |
| fof-drafts | 0.1.12 | |
| reflar-doorman | 0.1.6 | |
| tank-polyfills | v0.1.1 | |
| askvortsov-pwa | v1.0.1 | |
| clarkwinkelmann-author-change | 0.1.5 | |
| fof-terms | 0.4.3 | |
| fof-pwned-passwords | 0.4.0 | |
| jjandxa-chinese-search | 0.0.9 | |
| fof-gamification | 0.2.1 | |
| the-turk-welcome-widgets | 0.1.2 | |
| squeevee-fancybox | 0.2-beta | |
+--------------------------------------+-------------------+--------+
Base URL: https://community.wvbtech.com
Installation path: /data/wwwroot/community.wvbtech.com
Debug mode: off
[root@main community.wvbtech.com]#