| ( ! ) Fatal error: Uncaught ErrorException: Undefined offset: 2 in /usr/share/nginx/html/app/Handlers/PhpError.php on line 48 |
| ( ! ) ErrorException: Undefined offset: 2 in /usr/share/nginx/html/app/Handlers/PhpError.php on line 48 |
| Call Stack |
| # | Time | Memory | Function | Location |
| 1 | 0.0072 | 399096 | {main}( ) | .../index.php:0 |
| 2 | 0.0072 | 399592 | require_once( '/usr/share/nginx/html/bootstrap.php ) | .../index.php:2 |
| 3 | 0.0229 | 953360 | Lib\Framework\App->run( ) | .../bootstrap.php:59 |
| 4 | 0.0229 | 953360 | Lib\Framework\App->__call( $fn = 'run', $args = [] ) | .../bootstrap.php:59 |
| 5 | 0.0229 | 953736 | call_user_func_array:{/usr/share/nginx/html/lib/Framework/App.php:265}( $function_name = [0 => class Slim\App { private $container = class Slim\Container { ... }; protected $tip = class Closure { ... }; protected $middlewareLock = TRUE }, 1 => 'run'], $parameters = [] ) | .../App.php:265 |
| 6 | 0.0229 | 953824 | Slim\App->run( $silent = ??? ) | .../App.php:265 |
| 7 | 0.0229 | 970336 | Slim\App->process( $request = class Slim\Http\Request { protected $method = 'GET'; protected $originalMethod = 'GET'; protected $uri = class Slim\Http\Uri { protected $scheme = 'http'; protected $user = ''; protected $password = ''; protected $host = 'lc.betterprice.com.br'; protected $port = NULL; protected $basePath = ''; protected $path = '/sitemap.xml'; protected $query = ''; protected $fragment = '' }; protected $requestTarget = NULL; protected $queryParams = NULL; protected $cookies = ['app' => 'jplfidmm05ao71oct98h7mncoh']; protected $serverParams = ['USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate', 'HTTP_COOKIE' => 'app=jplfidmm05ao71oct98h7mncoh', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_ACCEPT' => '*/*', 'HTTP_CONNECTION' => 'close', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '216.73.216.175', 'HTTP_X_REAL_IP' => '216.73.216.175', 'HTTP_HOST' => 'lc.betterprice.com.br', 'HTTP_X_FRANCHISE' => 'lc', 'APP_ENV' => 'production', 'SCRIPT_FILENAME' => '/usr/share/nginx/html/public/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'lc.betterprice.com.br', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.21.0.3', 'REMOTE_PORT' => '36304', 'REMOTE_ADDR' => '172.21.0.1', 'SERVER_SOFTWARE' => 'nginx/1.18.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'DOCUMENT_ROOT' => '/usr/share/nginx/html/public', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/sitemap.xml', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1765034540.1539, 'REQUEST_TIME' => 1765034540]; protected $attributes = class Slim\Collection { protected $data = [...] }; protected $bodyParsed = FALSE; protected $bodyParsers = ['application/json' => class Closure { ... }, 'application/xml' => class Closure { ... }, 'text/xml' => class Closure { ... }, 'application/x-www-form-urlencoded' => class Closure { ... }]; protected $uploadedFiles = []; protected $validMethods = ['CONNECT' => 1, 'DELETE' => 1, 'GET' => 1, 'HEAD' => 1, 'OPTIONS' => 1, 'PATCH' => 1, 'POST' => 1, 'PUT' => 1, 'TRACE' => 1]; protected $protocolVersion = '1.0'; protected $headers = class Slim\Http\Headers { protected $data = [...] }; protected $body = class Slim\Http\RequestBody { protected $stream = resource(2) of type (stream); protected $meta = NULL; protected $readable = NULL; protected $writable = NULL; protected $seekable = NULL; protected $size = NULL; protected $isPipe = NULL } }, $response = class Slim\Http\Response { protected $status = 200; protected $reasonPhrase = ''; protected $protocolVersion = '1.1'; protected $headers = class Slim\Http\Headers { protected $data = [...] }; protected $body = class Slim\Http\Body { protected $stream = resource(7) of type (stream); protected $meta = NULL; protected $readable = NULL; protected $writable = NULL; protected $seekable = NULL; protected $size = NULL; protected $isPipe = NULL } } ) | .../App.php:297 |
| 8 | 0.0354 | 1166824 | Slim\App->handlePhpError( $e = class Error { protected $message = 'Call to a member function getPattern() on null'; private $string = 'Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php:60\nStack trace:\n#0 [internal function]: App\\Middleware\\OAuthAuthenticationToken->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))\n#1 /usr/share/nginx/html/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(App\\Middleware\\OAuthAuthenticationToken), Array)\n#2 [internal function]: Slim\\DeferredCallable->__invoke(Object(S'; protected $code = 0; protected $file = '/usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php'; protected $line = 60; private $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private $previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php on line <i>60</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgcolor=\'#eeeee' }, $request = class Slim\Http\Request { protected $method = 'GET'; protected $originalMethod = 'GET'; protected $uri = class Slim\Http\Uri { protected $scheme = 'http'; protected $user = ''; protected $password = ''; protected $host = 'lc.betterprice.com.br'; protected $port = NULL; protected $basePath = ''; protected $path = '/sitemap.xml'; protected $query = ''; protected $fragment = '' }; protected $requestTarget = NULL; protected $queryParams = NULL; protected $cookies = ['app' => 'jplfidmm05ao71oct98h7mncoh']; protected $serverParams = ['USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate', 'HTTP_COOKIE' => 'app=jplfidmm05ao71oct98h7mncoh', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_ACCEPT' => '*/*', 'HTTP_CONNECTION' => 'close', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '216.73.216.175', 'HTTP_X_REAL_IP' => '216.73.216.175', 'HTTP_HOST' => 'lc.betterprice.com.br', 'HTTP_X_FRANCHISE' => 'lc', 'APP_ENV' => 'production', 'SCRIPT_FILENAME' => '/usr/share/nginx/html/public/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'lc.betterprice.com.br', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.21.0.3', 'REMOTE_PORT' => '36304', 'REMOTE_ADDR' => '172.21.0.1', 'SERVER_SOFTWARE' => 'nginx/1.18.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'DOCUMENT_ROOT' => '/usr/share/nginx/html/public', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/sitemap.xml', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1765034540.1539, 'REQUEST_TIME' => 1765034540]; protected $attributes = class Slim\Collection { protected $data = [...] }; protected $bodyParsed = FALSE; protected $bodyParsers = ['application/json' => class Closure { ... }, 'application/xml' => class Closure { ... }, 'text/xml' => class Closure { ... }, 'application/x-www-form-urlencoded' => class Closure { ... }]; protected $uploadedFiles = []; protected $validMethods = ['CONNECT' => 1, 'DELETE' => 1, 'GET' => 1, 'HEAD' => 1, 'OPTIONS' => 1, 'PATCH' => 1, 'POST' => 1, 'PUT' => 1, 'TRACE' => 1]; protected $protocolVersion = '1.0'; protected $headers = class Slim\Http\Headers { protected $data = [...] }; protected $body = class Slim\Http\RequestBody { protected $stream = resource(2) of type (stream); protected $meta = NULL; protected $readable = NULL; protected $writable = NULL; protected $seekable = NULL; protected $size = NULL; protected $isPipe = NULL } }, $response = class Slim\Http\Response { protected $status = 200; protected $reasonPhrase = ''; protected $protocolVersion = '1.1'; protected $headers = class Slim\Http\Headers { protected $data = [...] }; protected $body = class Slim\Http\Body { protected $stream = resource(7) of type (stream); protected $meta = NULL; protected $readable = NULL; protected $writable = NULL; protected $seekable = NULL; protected $size = NULL; protected $isPipe = NULL } } ) | .../App.php:396 |
| 9 | 0.0355 | 1170592 | call_user_func_array:{/usr/share/nginx/html/vendor/slim/slim/Slim/App.php:728}( $function_name = class App\Handlers\PhpError { protected $displayErrorDetails = FALSE; protected $knownContentTypes = [0 => 'application/json', 1 => 'application/xml', 2 => 'text/xml', 3 => 'text/html'] }, $parameters = [0 => class Slim\Http\Request { protected $method = 'GET'; protected $originalMethod = 'GET'; protected $uri = class Slim\Http\Uri { ... }; protected $requestTarget = NULL; protected $queryParams = NULL; protected $cookies = [...]; protected $serverParams = [...]; protected $attributes = class Slim\Collection { ... }; protected $bodyParsed = FALSE; protected $bodyParsers = [...]; protected $uploadedFiles = [...]; protected $validMethods = [...]; protected $protocolVersion = '1.0'; protected $headers = class Slim\Http\Headers { ... }; protected $body = class Slim\Http\RequestBody { ... } }, 1 => class Slim\Http\Response { protected $status = 200; protected $reasonPhrase = ''; protected $protocolVersion = '1.1'; protected $headers = class Slim\Http\Headers { ... }; protected $body = class Slim\Http\Body { ... } }, 2 => class Error { protected $message = 'Call to a member function getPattern() on null'; private $string = 'Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php:60\nStack trace:\n#0 [internal function]: App\\Middleware\\OAuthAuthenticationToken->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))\n#1 /usr/share/nginx/html/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(App\\Middleware\\OAuthAuthenticationToken), Array)\n#2 [internal function]: Slim\\DeferredCallable->__invoke(Object(S'; protected $code = 0; protected $file = '/usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php'; protected $line = 60; private $trace = [...]; private $previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php on line <i>60</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgcolor=\'#eeeee' }] ) | .../App.php:728 |
| 10 | 0.0355 | 1170720 | App\Handlers\PhpError->__invoke( $request = class Slim\Http\Request { protected $method = 'GET'; protected $originalMethod = 'GET'; protected $uri = class Slim\Http\Uri { protected $scheme = 'http'; protected $user = ''; protected $password = ''; protected $host = 'lc.betterprice.com.br'; protected $port = NULL; protected $basePath = ''; protected $path = '/sitemap.xml'; protected $query = ''; protected $fragment = '' }; protected $requestTarget = NULL; protected $queryParams = NULL; protected $cookies = ['app' => 'jplfidmm05ao71oct98h7mncoh']; protected $serverParams = ['USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate', 'HTTP_COOKIE' => 'app=jplfidmm05ao71oct98h7mncoh', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_ACCEPT' => '*/*', 'HTTP_CONNECTION' => 'close', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '216.73.216.175', 'HTTP_X_REAL_IP' => '216.73.216.175', 'HTTP_HOST' => 'lc.betterprice.com.br', 'HTTP_X_FRANCHISE' => 'lc', 'APP_ENV' => 'production', 'SCRIPT_FILENAME' => '/usr/share/nginx/html/public/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'lc.betterprice.com.br', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.21.0.3', 'REMOTE_PORT' => '36304', 'REMOTE_ADDR' => '172.21.0.1', 'SERVER_SOFTWARE' => 'nginx/1.18.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'DOCUMENT_ROOT' => '/usr/share/nginx/html/public', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/sitemap.xml', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1765034540.1539, 'REQUEST_TIME' => 1765034540]; protected $attributes = class Slim\Collection { protected $data = [...] }; protected $bodyParsed = FALSE; protected $bodyParsers = ['application/json' => class Closure { ... }, 'application/xml' => class Closure { ... }, 'text/xml' => class Closure { ... }, 'application/x-www-form-urlencoded' => class Closure { ... }]; protected $uploadedFiles = []; protected $validMethods = ['CONNECT' => 1, 'DELETE' => 1, 'GET' => 1, 'HEAD' => 1, 'OPTIONS' => 1, 'PATCH' => 1, 'POST' => 1, 'PUT' => 1, 'TRACE' => 1]; protected $protocolVersion = '1.0'; protected $headers = class Slim\Http\Headers { protected $data = [...] }; protected $body = class Slim\Http\RequestBody { protected $stream = resource(2) of type (stream); protected $meta = NULL; protected $readable = NULL; protected $writable = NULL; protected $seekable = NULL; protected $size = NULL; protected $isPipe = NULL } }, $response = class Slim\Http\Response { protected $status = 200; protected $reasonPhrase = ''; protected $protocolVersion = '1.1'; protected $headers = class Slim\Http\Headers { protected $data = [...] }; protected $body = class Slim\Http\Body { protected $stream = resource(7) of type (stream); protected $meta = NULL; protected $readable = NULL; protected $writable = NULL; protected $seekable = NULL; protected $size = NULL; protected $isPipe = NULL } }, $error = class Error { protected $message = 'Call to a member function getPattern() on null'; private $string = 'Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php:60\nStack trace:\n#0 [internal function]: App\\Middleware\\OAuthAuthenticationToken->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))\n#1 /usr/share/nginx/html/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(App\\Middleware\\OAuthAuthenticationToken), Array)\n#2 [internal function]: Slim\\DeferredCallable->__invoke(Object(S'; protected $code = 0; protected $file = '/usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php'; protected $line = 60; private $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private $previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php on line <i>60</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgcolor=\'#eeeee' } ) | .../App.php:728 |
| 11 | 0.0382 | 1271056 | Lib\Framework\App->Lib\Framework\{closure:/usr/share/nginx/html/lib/Framework/App.php:42-47}( $errno = 8, $errstr = 'Undefined offset: 2', $errfile = '/usr/share/nginx/html/app/Handlers/PhpError.php', $errline = 48, ['request' => class Slim\Http\Request { protected $method = 'GET'; protected $originalMethod = 'GET'; protected $uri = class Slim\Http\Uri { ... }; protected $requestTarget = NULL; protected $queryParams = NULL; protected $cookies = [...]; protected $serverParams = [...]; protected $attributes = class Slim\Collection { ... }; protected $bodyParsed = FALSE; protected $bodyParsers = [...]; protected $uploadedFiles = [...]; protected $validMethods = [...]; protected $protocolVersion = '1.0'; protected $headers = class Slim\Http\Headers { ... }; protected $body = class Slim\Http\RequestBody { ... } }, 'response' => class Slim\Http\Response { protected $status = 200; protected $reasonPhrase = ''; protected $protocolVersion = '1.1'; protected $headers = class Slim\Http\Headers { ... }; protected $body = class Slim\Http\Body { ... } }, 'error' => class Error { protected $message = 'Call to a member function getPattern() on null'; private $string = 'Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php:60\nStack trace:\n#0 [internal function]: App\\Middleware\\OAuthAuthenticationToken->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))\n#1 /usr/share/nginx/html/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(App\\Middleware\\OAuthAuthenticationToken), Array)\n#2 [internal function]: Slim\\DeferredCallable->__invoke(Object(S'; protected $code = 0; protected $file = '/usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php'; protected $line = 60; private $trace = [...]; private $previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Error: Call to a member function getPattern() on null in /usr/share/nginx/html/app/Middleware/OAuthAuthenticationToken.php on line <i>60</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgcolor=\'#eeeee' }, 'app' => class Lib\Framework\App { public $appName = 'http'; public $env = 'production'; private $slim = class Slim\App { ... }; private $settings = [...] }, 'container' => class Slim\Container { private $defaultSettings = [...]; private ${Pimple\Container}values = [...]; private ${Pimple\Container}factories = class SplObjectStorage { ... }; private ${Pimple\Container}protected = class SplObjectStorage { ... }; private ${Pimple\Container}frozen = [...]; private ${Pimple\Container}raw = [...]; private ${Pimple\Container}keys = [...] }, 'view' => class Slim\Views\Twig { protected $loader = class Twig\Loader\FilesystemLoader { ... }; protected $environment = class Twig\Environment { ... }; protected $defaultVariables = [...] }, 'message' => '', 'refererHeader' => class Slim\Http\Uri { protected $scheme = 'http'; protected $user = ''; protected $password = ''; protected $host = 'lc.betterprice.com.br'; protected $port = NULL; protected $basePath = ''; protected $path = '/sitemap.xml'; protected $query = ''; protected $fragment = '' }, 'parts' => [0 => '', 1 => 'sitemap.xml']] ) | .../PhpError.php:48 |