Jump to content

Featured Replies

Posted

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

Solved by Safelincs

Go to solution

I suspect if you aren't seeing anything anywhere other than your own custom exception handler, that error is probably caught and handled somewhere. I can tag a dev to see if there is any further advise we can give

  • 3 weeks later...

HI @Safelincs

Can you send me a PM with the URL associated with these error logs. i.e. the page that the error occurred on.

Thanks!

  • 1 month later...
  • Author
  • Solution

This seemed to resolve itself so this can be marked as resolved

Hi @Safelincs,

Noted. Thanks for coming back and letting us know. If this, or another issue, comes up do not hesitate to create a new topic.

Recently Browsing 0

  • No registered users viewing this page.