The following error appears on a FreeFlarum forum:
flarum.ERROR: Exception: Failed to parse time string (-) at position 0 (-): Unexpected character in /mnt/data-new/host/skeleton/vendor/xelson/flarum-ext-chat/src/Api/Throttler/ChatMessage.php:50
Stack trace:
#0 /mnt/data-new/host/skeleton/vendor/xelson/flarum-ext-chat/src/Api/Throttler/ChatMessage.php(50): DateTime->__construct()
#1 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Foundation/ContainerUtil.php(30): Xelson\Chat\Api\Throttler\ChatMessage->__invoke()
#2 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(43): Flarum\Foundation\ContainerUtil::Flarum\Foundation\{closure}()
#3 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(29): Flarum\Api\Middleware\ThrottleApi->throttle()
#4 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
#5 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#6 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
#7 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
#8 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
#9 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#10 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
#11 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#12 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#13 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#14 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
#15 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#16 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
#17 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#18 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
#19 /mnt/data-new/host/skeleton/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#20 /mnt/data-new/host/skeleton/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()
[...]
I don't know in what exact context this issue appeared. php flarum info
(the chat extension is disabled in the output, but we are using v1.1.5
):
Flarum core: 1.8.1
PHP version: 8.2.4
MySQL version: 10.11.2-MariaDB-1:10.11.2+maria~ubu2204-log
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, gmp, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, intl, exif, mysqlnd, mysqli, PDO, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+--------------------------------------+---------+--------+
| Flarum Extensions | | |
+--------------------------------------+---------+--------+
| ID | Version | Commit |
+--------------------------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-tags | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| fof-formatting | 1.0.3 | |
| flarum-approval | v1.8.0 | |
| afrux-forum-widgets-core | v0.1.7 | |
| fof-user-directory | 1.2.3 | |
| fof-follow-tags | 1.1.7 | |
| fof-oauth | 1.4.4 | |
| fof-gamification | 1.6.2 | |
| flarum-markdown | v1.8.0 | |
| askvortsov-auto-moderator | v0.1.2 | |
| zerosonesfun-member | 1.2 | |
| zerosonesfun-inline-audio | 3.0 | |
| zerosonesfun-direct-links | 3.1 | |
| yannisme-oxotheme | 2.1.5 | |
| v17development-seo | v1.8.0 | |
| the-turk-stickiest | 3.0.1 | |
| the-turk-diff | 1.1.2 | |
| sycho-profile-cover | v1.3.5 | |
| sycho-lite-youtube | v0.1.1 | |
| ramesh-dada-download-button | v8.1.4 | |
| nearata-twofactor | v2.2.1 | |
| nearata-signup-confirm-password | v3.1.0 | |
| nearata-minecraft-avatars | v2.1.1 | |
| migratetoflarum-canonical | 1.0.0 | |
| mickmelon-coloured-usernames | 0.1.1 | |
| kilowhat-audit-free | 1.6.0 | |
| justoverclock-welcomebox | 2.0.2 | |
| justoverclock-username-blacklist | 0.1.0 | |
| justoverclock-last-post-useravatar | 0.1.8 | |
| justoverclock-hot-discussions | 0.1.2 | |
| justoverclock-header-slideshow | 0.1.1 | |
| justoverclock-hashtag | 1.0.1 | |
| isaced-email-verification-switch | 1.0.1 | |
| ianm-follow-users | 1.3.1 | |
| fof-username-request | 1.1.2 | |
| fof-user-bio | 1.1.1 | |
| fof-upload | 1.2.3 | |
| fof-terms | 1.2.1 | |
| fof-stopforumspam | 1.2.3 | |
| fof-socialprofile | 1.1.5 | |
| fof-sitemap | 2.2.0 | |
| fof-share-social | 1.1.2 | |
| fof-recaptcha | 1.1.1 | |
| fof-profile-image-crop | 1.1.1 | |
| fof-nightmode | 1.5.2 | |
| fof-links | 1.1.4 | |
| fof-linguist | 1.1.1 | |
| fof-impersonate | 1.1.1 | |
| fof-forum-statistics-widget | 1.1.0 | |
| fof-drafts | 1.2.2 | |
| fof-discussion-thumbnail | 1.1.2 | |
| fof-default-user-preferences | 1.2.0 | |
| fof-best-answer | 1.2.5 | |
| fof-analytics | 1.1.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-pusher | v1.8.0 | |
| flarum-mentions | v1.8.0 | |
| flarum-lang-vietnamese | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-akismet | v1.8.0 | |
| dem13n-discussion-cards | 0.3.8 | |
| datlechin-more-discussions | v0.2.0 | |
| datlechin-link-preview | v1.4.0 | |
| datlechin-birthdays | v2.0.0 | |
| clarkwinkelmann-post-permissions | 1.0.0 | |
| clarkwinkelmann-first-post-approval | 1.0.1 | |
| clarkwinkelmann-discussion-bookmarks | 2.0.0 | |
| clarkwinkelmann-circle-groups | 1.0.1 | |
| clarkwinkelmann-author-change | 1.0.3 | |
| blomstra-spam-prevention | 1.3.1 | |
| blomstra-fontawesome | 0.1.5 | |
| askvortsov-rich-text | v2.1.7 | |
| askvortsov-checklist | v1.3.1 | |
| askvortsov-categories | v3.0.9 | |
| antoinefr-money | v1.3.1 | |
| afrux-top-posters-widget | v0.1.4 | |
| afrux-online-users-widget | v0.1.6 | |
| afrux-news-widget | v0.1.1 | |
| acpl-mobile-tab | 1.1.1 | |
+--------------------------------------+---------+--------+
Base URL: https://www.[xyz].com
Installation path: /mnt/data-new/host/[xyz]
Queue driver: sync
Session driver: file
Scheduler status: [Never ran]
Mail driver: mail
Debug mode: off