Weirdly, at 05:03am this morning, we started getting a lot of exceptions on our forum. (in conf_global.php we use `set_exception_handler()` to email exceptions to us).
PHP was upgraded from 7.4 to 8.1 yesterday morning, but it was 20 hours until we saw any exceptions come through and we have notice over 10k of these coming through so it's happening a lot. A dump of the exception reveals, for example:
$e] => Exception Object
(
[message:protected] => Failed to parse time string (Wed, 01 Aug 4426001 20:55:36 GMT) at position 16 (0): Unexpected character
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /var/www/vhosts/forum/public/applications/core/modules/front/search/search.php
[line:protected] => 49
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/vhosts/forum/public/applications/core/modules/front/search/search.php
[line] => 49
[function] => __construct
[class] => DateTime
[type] => ->
)
[1] => Array
(
[file] => /var/www/vhosts/forum/public/applications/core/modules/front/search/search.php
[line] => 64
[function] => _checkCached
[class] => IPS\core\modules\front\search\_search
[type] => ->
)
[2] => Array
(
[file] => /var/www/vhosts/forum/public/system/Dispatcher/Controller.php
[line] => 118
[function] => manage
[class] => IPS\core\modules\front\search\_search
[type] => ->
)
[3] => Array
(
[file] => /var/www/vhosts/forum/public/system/Dispatcher/Dispatcher.php
[line] => 153
[function] => execute
[class] => IPS\Dispatcher\_Controller
[type] => ->
)
[4] => Array
(
[file] => /var/www/vhosts/forum/public/index.php
[line] => 13
[function] => run
[class] => IPS\_Dispatcher
[type] => ->
)
)
[previous:Exception:private] =>
Obviously,
Wed, 01 Aug 4426001 20:55:36 GMT
looks off - as if the wrong format has been specified for year or something?
I looked for date time formats in the settings but couldn't find any. The software is up to date and there aren't issues in the "Get Support" panel, after upgrading PHP.
Any thoughts?
Regards