Deprecated: Return type of Whoops\Exception\FrameCollection::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 101

Deprecated: Return type of Whoops\Exception\FrameCollection::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 110

Deprecated: Return type of Whoops\Exception\FrameCollection::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 119

Deprecated: Return type of Whoops\Exception\FrameCollection::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 128

Deprecated: Return type of Whoops\Exception\FrameCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 92

Deprecated: Whoops\Exception\FrameCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 20

Deprecated: Return type of Whoops\Exception\FrameCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 137

Deprecated: Whoops\Exception\Frame implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Exception/Frame.php on line 12

Fatal error: Uncaught Whoops\Exception\ErrorException: Undefined variable $severity in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38 Stack trace: #0 /home/u4344427/public_html/app/application/core/My_Exceptions.php(38): Whoops\Run->handleError() #1 [internal function]: My_Exceptions->{closure}() #2 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(333): call_user_func() #3 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(239): Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #4 [internal function]: Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(238): array_map() #6 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #7 [internal function]: Whoops\Run->handleException() #8 {main} Next TypeError: get_class(): Argument #1 ($object) must be of type object, null given in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38 Stack trace: #0 [internal function]: My_Exceptions->{closure}() #1 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(333): call_user_func() #2 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(239): Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #3 [internal function]: Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #4 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(238): array_map() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #6 [internal function]: Whoops\Run->handleException() #7 {main} thrown in /home/u4344427/public_html/app/application/core/My_Exceptions.php on line 38
Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_ERROR)
Uncaught Whoops\Exception\ErrorException: Undefined variable $severity in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38 Stack trace: #0 /home/u4344427/public_html/app/application/core/My_Exceptions.php(38): Whoops\Run->handleError() #1 [internal function]: My_Exceptions->{closure}() #2 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(333): call_user_func() #3 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(239): Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #4 [internal function]: Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(238): array_map() #6 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #7 [internal function]: Whoops\Run->handleException() #8 {main} Next TypeError: get_class(): Argument #1 ($object) must be of type object, null given in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38 Stack trace: #0 [internal function]: My_Exceptions->{closure}() #1 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(333): call_user_func() #2 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(239): Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #3 [internal function]: Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #4 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(238): array_map() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #6 [internal function]: Whoops\Run->handleException() #7 {main} thrown Whoops\Exception\ErrorException thrown with message "Uncaught Whoops\Exception\ErrorException: Undefined variable $severity in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38 Stack trace: #0 /home/u4344427/public_html/app/application/core/My_Exceptions.php(38): Whoops\Run->handleError() #1 [internal function]: My_Exceptions->{closure}() #2 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(333): call_user_func() #3 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(239): Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #4 [internal function]: Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(238): array_map() #6 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #7 [internal function]: Whoops\Run->handleException() #8 {main} Next TypeError: get_class(): Argument #1 ($object) must be of type object, null given in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38 Stack trace: #0 [internal function]: My_Exceptions->{closure}() #1 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(333): call_user_func() #2 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(239): Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #3 [internal function]: Whoops\Handler\PrettyPageHandler->Whoops\Handler\{closure}() #4 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(238): array_map() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #6 [internal function]: Whoops\Run->handleException() #7 {main} thrown" Stacktrace: #0 Whoops\Exception\ErrorException in /home/u4344427/public_html/app/application/core/My_Exceptions.php:38
Stack frames (1)
0
Whoops
\
Exception
\
ErrorException
/
application
/
core
/
My_Exceptions.php
38
/
home
/
u4344427
/
public_html
/
app
/
application
/
core
/
My_Exceptions.php
    }

    public function show_php_error($severity, $message, $filepath, $line) 
    {
        $run     = new Run();
        $handler = new PrettyPageHandler();
        $handler->setApplicationPaths([$filepath]);
        $handler->addDataTable($message, [
            'file' => $filepath,
            'line' => $line,
        ]);

        $handler->setApplicationPaths([$filepath]);
        $handler->addDataTableCallback('Details', function(\Whoops\Exception\Inspector $inspector) {
            $data = array();
            $exception = $inspector->getException();
            if ($exception instanceof SomeSpecificException) {
                $data['Important exception data'] = $exception->getSomeSpecificData();
            }
            $data['Exception class'] = get_class($severity);
            $data['Exception code'] = $exception->getCode();
            return $data;
        });
        $run->pushHandler($handler);
        // Example: tag all frames inside a function with their function name
        $run->pushHandler(function ($exception, $inspector, $run) {
            $inspector->getFrames()->map(function ($frame) {
                if ($function = $frame->getFunction()) {
                    $frame->addComment("This frame is within function '$function'", 'cpt-obvious');
                }
                return $frame;
            });
        });
        
        if (\Whoops\Util\Misc::isAjaxRequest()) {
            $jsonHandler = new JsonResponseHandler();
            $jsonHandler->setJsonApi(true);
            $whoops->pushHandler($jsonHandler);
        }


Fatal error: During inheritance of ArrayAccess: Uncaught ArgumentCountError: Too few arguments to function Symfony\Component\VarDumper\Cloner\AbstractCloner::Symfony\Component\VarDumper\Cloner\{closure}(), 4 passed in /home/u4344427/public_html/app/vendor/symfony/var-dumper/Cloner/Data.php on line 19 and exactly 5 expected in /home/u4344427/public_html/app/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:215 Stack trace: #0 /home/u4344427/public_html/app/vendor/symfony/var-dumper/Cloner/Data.php(19): Symfony\Component\VarDumper\Cloner\AbstractCloner->Symfony\Component\VarDumper\Cloner\{closure}() #1 /home/u4344427/public_html/app/vendor/composer/ClassLoader.php(412): include('/home/u4344427/...') #2 /home/u4344427/public_html/app/vendor/composer/ClassLoader.php(301): Composer\Autoload\includeFile() #3 /home/u4344427/public_html/app/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(233): Composer\Autoload\ClassLoader->loadClass() #4 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(169): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar() #5 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(208): Whoops\Util\TemplateHelper->dump() #6 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(37): Whoops\Util\TemplateHelper->dumpArgs() #7 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/u4344427/...') #8 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}() #9 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func() #10 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php(1): Whoops\Util\TemplateHelper->render() #11 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/u4344427/...') #12 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}() #13 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func() #14 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php(2): Whoops\Util\TemplateHelper->render() #15 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/u4344427/...') #16 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}() #17 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func() #18 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(22): Whoops\Util\TemplateHelper->render() #19 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/u4344427/...') #20 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}() #21 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func() #22 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(249): Whoops\Util\TemplateHelper->render() #23 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(272): Whoops\Handler\PrettyPageHandler->handle() #24 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(353): Whoops\Run->handleException() #25 /home/u4344427/public_html/app/vendor/filp/whoops/src/Whoops/Run.php(378): Whoops\Run->handleError() #26 [internal function]: Whoops\Run->handleShutdown() #27 {main} in /home/u4344427/public_html/app/vendor/symfony/var-dumper/Cloner/Data.php on line 19