Notice (1024)
: Undefined property: ErrorController::$Authentication in /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/src/Controller/AppController.php on line 71 [in
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Controller/Controller.php, line
342]
Code
$parts = explode('\\', static::class);
trigger_error(
sprintf(
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Controller/Controller.php /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Controller/Controller.php, line 342
Cake\Controller\Controller->__get() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/src/Controller/AppController.php, line 71
App\Controller\AppController->beforeRender() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/src/Controller/ErrorController.php, line 57
App\Controller\ErrorController->beforeRender() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Event/EventManager.php, line 309
Cake\Event\EventManager->_callListener() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Event/EventManager.php, line 286
Cake\Event\EventManager->dispatch() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php, line 92
Cake\Controller\Controller->dispatchEvent() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Controller/Controller.php, line 776
Cake\Controller\Controller->render() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 432
Cake\Error\Renderer\WebExceptionRenderer->_outputMessage() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 303
Cake\Error\Renderer\WebExceptionRenderer->render() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 250
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (512)
: Unable to emit headers. Headers sent in file=/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
71]
Code
$message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71
Cake\Http\ResponseEmitter->emit() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 321
Cake\Error\Renderer\WebExceptionRenderer->write() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 250
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
164]
Code
$reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164
Cake\Http\ResponseEmitter->emitStatusLine() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74
Cake\Http\ResponseEmitter->emit() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 321
Cake\Error\Renderer\WebExceptionRenderer->write() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 250
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
197]
Code
foreach ($values as $value) {
header(sprintf(
'%s: %s',
/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197
Cake\Http\ResponseEmitter->emitHeaders() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75
Cake\Http\ResponseEmitter->emit() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 321
Cake\Error\Renderer\WebExceptionRenderer->write() /home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 250
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
CORE/src/Database/Driver.php at line 144
(edit)
|
$retry = new CommandRetry(new ErrorCodeWaitStrategy(static::RETRY_ERROR_CODES, 5), 4); |
|
try { |
|
$retry->run($action); |
|
} catch (PDOException $e) { |
|
throw new MissingConnectionException( |
|
[ |
|
'driver' => App::shortName(static::class, 'Database/Driver'), |
|
'reason' => $e->getMessage(), |
|
], |
-
|
if (!empty($config['encoding'])) { |
|
$dsn .= ";charset={$config['encoding']}"; |
|
} |
|
|
|
$this->_connect($dsn, $config); |
|
|
|
if (!empty($config['init'])) { |
|
$connection = $this->getConnection(); |
|
foreach ((array)$config['init'] as $command) { |
Toggle Arguments
'mysql:host=mysql.cjid.app;port=3306;dbname=dbsgpf_car_cast;charset=utf8mb4'
[
'_role' => 'write',
'persistent' => false,
'timezone' => '+0:00',
'flags' => [
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
],
'cacheMetadata' => true,
'quoteIdentifiers' => false,
'host' => 'mysql.cjid.app',
'username' => 'dbsgpf_car_cast',
'password' => '8W£X{2p~BX1y',
'database' => 'dbsgpf_car_cast',
'collation' => 'utf8mb4_unicode_ci',
'port' => '3306',
'encoding' => 'utf8mb4',
'init' => [
(int) 0 => 'SET time_zone = '+0:00'',
],
]
-
|
* @param \Cake\Database\DriverInterface $driver The driver to use. |
|
*/ |
|
public function __construct(DriverInterface $driver) |
|
{ |
|
$driver->connect(); |
|
$this->_driver = $driver; |
|
} |
|
|
|
/** |
Toggle Arguments
-
|
*/ |
|
public function schemaDialect(): SchemaDialect |
|
{ |
|
if ($this->_schemaDialect === null) { |
|
$this->_schemaDialect = new MysqlSchemaDialect($this); |
|
} |
|
|
|
return $this->_schemaDialect; |
|
} |
Toggle Arguments
object(Cake\Database\Driver\Mysql) id:0 {
'connected' => false
'role' => 'write'
}
-
|
*/ |
|
public function __construct(Connection $connection) |
|
{ |
|
$this->_connection = $connection; |
|
$this->_dialect = $connection->getDriver()->schemaDialect(); |
|
} |
|
|
|
/** |
|
* Get the list of tables, excluding any views, available in the current connection. |
Toggle Arguments
-
|
} |
|
|
|
if (!empty($this->_config['cacheMetadata'])) { |
|
return $this->_schemaCollection = new CachedCollection( |
|
new SchemaCollection($this), |
|
empty($this->_config['cacheKeyPrefix']) ? $this->configName() : $this->_config['cacheKeyPrefix'], |
|
$this->getCacher() |
|
); |
|
} |
Toggle Arguments
object(Cake\Database\Connection) id:0 {
'config' => [
'password' => '*****',
'username' => '*****',
'host' => '*****',
'database' => '*****',
'driver' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'timezone' => 'UTC',
'flags' => [
],
'cacheMetadata' => true,
'log' => false,
'quoteIdentifiers' => false,
'collation' => 'utf8mb4_unicode_ci',
'name' => 'default',
]
'readDriver' => object(Cake\Database\Driver\Mysql) id:1 {
'connected' => false
'role' => 'write'
}
'writeDriver' => object(Cake\Database\Driver\Mysql) id: 1 {}
'transactionLevel' => (int) 0
'transactionStarted' => false
'useSavePoints' => false
'logQueries' => false
'logger' => null
}
-
|
public function getSchema(): TableSchemaInterface |
|
{ |
|
if ($this->_schema === null) { |
|
$this->_schema = $this->getConnection() |
|
->getSchemaCollection() |
|
->describe($this->getTable()); |
|
|
|
$method = new ReflectionMethod($this, '_initializeSchema'); |
|
if ($method->getDeclaringClass()->getName() != Table::class) { |
Toggle Arguments
-
|
*/ |
|
public function addDefaultTypes(Table $table) |
|
{ |
|
$alias = $table->getAlias(); |
|
$map = $table->getSchema()->typeMap(); |
|
$fields = []; |
|
foreach ($map as $f => $type) { |
|
$fields[$f] = $fields[$alias . '.' . $f] = $fields[$alias . '__' . $f] = $type; |
|
} |
Toggle Arguments
-
|
parent::__construct($connection); |
|
$this->setRepository($table); |
|
|
|
if ($this->_repository !== null) { |
|
$this->addDefaultTypes($this->_repository); |
|
} |
|
} |
|
|
|
/** |
Toggle Arguments
object(App\Model\Table\ConfigurationsTable) id:0 {
'registryAlias' => 'Configurations'
'table' => 'configurations'
'alias' => 'Configurations'
'entityClass' => 'App\Model\Entity\Configuration'
'associations' => [
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
-
|
* @return \Cake\ORM\Query\SelectQuery |
|
*/ |
|
public function selectQuery(): SelectQuery |
|
{ |
|
return new SelectQuery($this->getConnection(), $this); |
|
} |
|
|
|
/** |
|
* Creates a new UpdateQuery instance for a table. |
Toggle Arguments
object(Cake\Database\Connection) id:0 {
'config' => [
'password' => '*****',
'username' => '*****',
'host' => '*****',
'database' => '*****',
'driver' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'timezone' => 'UTC',
'flags' => [
],
'cacheMetadata' => true,
'log' => false,
'quoteIdentifiers' => false,
'collation' => 'utf8mb4_unicode_ci',
'name' => 'default',
]
'readDriver' => object(Cake\Database\Driver\Mysql) id:1 {
'connected' => false
'role' => 'write'
}
'writeDriver' => object(Cake\Database\Driver\Mysql) id: 1 {}
'transactionLevel' => (int) 0
'transactionStarted' => false
'useSavePoints' => false
'logQueries' => false
'logger' => null
}
object(App\Model\Table\ConfigurationsTable) id:0 {
'registryAlias' => 'Configurations'
'table' => 'configurations'
'alias' => 'Configurations'
'entityClass' => 'App\Model\Entity\Configuration'
'associations' => [
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
-
|
* @return \Cake\ORM\Query The query builder |
|
*/ |
|
public function find(string $type = 'all', array $options = []): Query |
|
{ |
|
return $this->callFinder($type, $this->selectQuery()->select(), $options); |
|
} |
|
|
|
/** |
|
* Returns the query as passed. |
Toggle Arguments
-
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
// Obter configurações |
|
$configurationsTable = TableRegistry::getTableLocator()->get('Configurations'); |
|
$configuration = $configurationsTable->find()->first(); |
|
|
|
// Verificar se a configuração foi encontrada e se o modo de manutenção está ativo |
|
if ($configuration !== null && $configuration->maintenance_mode) { |
|
$clientIp = $request->clientIp(); |
Toggle Arguments
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'LSPHP_ProcessGroup' => 'on',
'PATH' => '/usr/local/bin:/bin:/usr/bin',
'HTTP_ACCEPT' => '*/*',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_HOST' => 'careiro-castanho.sgcalmunicipal.com.br',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'DOCUMENT_ROOT' => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br',
'REMOTE_ADDR' => '216.73.216.38',
'REMOTE_PORT' => '11194',
'SERVER_ADDR' => '82.29.194.245',
'SERVER_NAME' => 'careiro-castanho.sgcalmunicipal.com.br',
'SERVER_ADMIN' => '',
'SERVER_PORT' => '443',
'REQUEST_SCHEME' => 'https',
'REQUEST_URI' => '/',
'HTTPS' => 'on',
'CRAWLER_USLEEP' => '1000',
'CRAWLER_LOAD_LIMIT_ENFORCE' => '25',
'H_PLATFORM' => 'Hostinger',
'H_TYPE' => 'business',
'H_CANARY' => 'false',
'H_STAGING' => 'false',
'UNIQUE_ID' => 'QVhQaaHpDHVtcqB0BQwpVnKv',
'X_SPDY' => 'HTTP2',
'SSL_PROTOCOL' => 'TLSv1.3',
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384',
'SSL_CIPHER_USEKEYSIZE' => '256',
'SSL_CIPHER_ALGKEYSIZE' => '256',
'SCRIPT_FILENAME' => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/index.php',
'QUERY_STRING' => '',
'SCRIPT_URI' => 'https://careiro-castanho.sgcalmunicipal.com.br/',
'SCRIPT_URL' => '/',
'SCRIPT_NAME' => '/index.php',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SOFTWARE' => 'LiteSpeed',
'REQUEST_METHOD' => 'GET',
'X-LSCACHE' => 'on,crawler,esi,combine',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1766989140.1657,
'REQUEST_TIME' => (int) 1766989140,
'APP_NAME' => 'SGCALMunicipal',
'APP_ENV' => 'production',
'DEBUG' => 'true',
'APP_ENCODING' => 'UTF-8',
'APP_DEFAULT_LOCALE' => 'pt_BR',
'APP_DEFAULT_TIMEZONE' => 'America/Manaus',
'SECURITY_SALT' => '01e62e39c0b0c6c09cb5e1bc286b1c14feea17915e20d4ddbadfa4b93b7586a2',
'APP_SUBDOMAIN' => 'careiro-castanho',
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #167
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 1
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => null
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:5 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'LSPHP_ProcessGroup' => 'on',
'PATH' => '/usr/local/bin:/bin:/usr/bin',
'HTTP_ACCEPT' => '*/*',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_HOST' => 'careiro-castanho.sgcalmunicipal.com.br',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'DOCUMENT_ROOT' => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br',
'REMOTE_ADDR' => '216.73.216.38',
'REMOTE_PORT' => '11194',
'SERVER_ADDR' => '82.29.194.245',
'SERVER_NAME' => 'careiro-castanho.sgcalmunicipal.com.br',
'SERVER_ADMIN' => '',
'SERVER_PORT' => '443',
'REQUEST_SCHEME' => 'https',
'REQUEST_URI' => '/',
'HTTPS' => 'on',
'CRAWLER_USLEEP' => '1000',
'CRAWLER_LOAD_LIMIT_ENFORCE' => '25',
'H_PLATFORM' => 'Hostinger',
'H_TYPE' => 'business',
'H_CANARY' => 'false',
'H_STAGING' => 'false',
'UNIQUE_ID' => 'QVhQaaHpDHVtcqB0BQwpVnKv',
'X_SPDY' => 'HTTP2',
'SSL_PROTOCOL' => 'TLSv1.3',
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384',
'SSL_CIPHER_USEKEYSIZE' => '256',
'SSL_CIPHER_ALGKEYSIZE' => '256',
'SCRIPT_FILENAME' => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/index.php',
'QUERY_STRING' => '',
'SCRIPT_URI' => 'https://careiro-castanho.sgcalmunicipal.com.br/',
'SCRIPT_URL' => '/',
'SCRIPT_NAME' => '/index.php',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SOFTWARE' => 'LiteSpeed',
'REQUEST_METHOD' => 'GET',
'X-LSCACHE' => 'on,crawler,esi,combine',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1766989140.1657,
'REQUEST_TIME' => (int) 1766989140,
'APP_NAME' => 'SGCALMunicipal',
'APP_ENV' => 'production',
'DEBUG' => 'true',
'APP_ENCODING' => 'UTF-8',
'APP_DEFAULT_LOCALE' => 'pt_BR',
'APP_DEFAULT_TIMEZONE' => 'America/Manaus',
'SECURITY_SALT' => '01e62e39c0b0c6c09cb5e1bc286b1c14feea17915e20d4ddbadfa4b93b7586a2',
'APP_SUBDOMAIN' => 'careiro-castanho',
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #167
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
Toggle Arguments
object(Cake\Http\MiddlewareQueue) id:0 {
protected position => (int) 1
protected queue => [
(int) 0 => object(App\Middleware\MaintenanceMiddleware) id:1 {
},
(int) 1 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) id:2 {
},
(int) 2 => object(Cake\Routing\Middleware\AssetMiddleware) id:3 {
},
(int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) id:4 {
},
(int) 4 => object(Cake\Http\Middleware\BodyParserMiddleware) id:5 {
},
(int) 5 => object(Authentication\Middleware\AuthenticationMiddleware) id:6 {
},
]
protected container => object(Cake\Core\Container) id:7 {
protected defaultToShared => false
protected definitions => object(League\Container\Definition\DefinitionAggregate) id:8 {
}
protected providers => object(League\Container\ServiceProvider\ServiceProviderAggregate) id:9 {
}
protected inflectors => object(League\Container\Inflector\InflectorAggregate) id:10 {
}
protected delegates => [
'' => [maximum depth reached],
]
}
}
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'LSPHP_ProcessGroup' => 'on',
'PATH' => '/usr/local/bin:/bin:/usr/bin',
'HTTP_ACCEPT' => '*/*',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_HOST' => 'careiro-castanho.sgcalmunicipal.com.br',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'DOCUMENT_ROOT' => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br',
'REMOTE_ADDR' => '216.73.216.38',
'REMOTE_PORT' => '11194',
'SERVER_ADDR' => '82.29.194.245',
'SERVER_NAME' => 'careiro-castanho.sgcalmunicipal.com.br',
'SERVER_ADMIN' => '',
'SERVER_PORT' => '443',
'REQUEST_SCHEME' => 'https',
'REQUEST_URI' => '/',
'HTTPS' => 'on',
'CRAWLER_USLEEP' => '1000',
'CRAWLER_LOAD_LIMIT_ENFORCE' => '25',
'H_PLATFORM' => 'Hostinger',
'H_TYPE' => 'business',
'H_CANARY' => 'false',
'H_STAGING' => 'false',
'UNIQUE_ID' => 'QVhQaaHpDHVtcqB0BQwpVnKv',
'X_SPDY' => 'HTTP2',
'SSL_PROTOCOL' => 'TLSv1.3',
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384',
'SSL_CIPHER_USEKEYSIZE' => '256',
'SSL_CIPHER_ALGKEYSIZE' => '256',
'SCRIPT_FILENAME' => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/index.php',
'QUERY_STRING' => '',
'SCRIPT_URI' => 'https://careiro-castanho.sgcalmunicipal.com.br/',
'SCRIPT_URL' => '/',
'SCRIPT_NAME' => '/index.php',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SOFTWARE' => 'LiteSpeed',
'REQUEST_METHOD' => 'GET',
'X-LSCACHE' => 'on,crawler,esi,combine',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1766989140.1657,
'REQUEST_TIME' => (int) 1766989140,
'APP_NAME' => 'SGCALMunicipal',
'APP_ENV' => 'production',
'DEBUG' => 'true',
'APP_ENCODING' => 'UTF-8',
'APP_DEFAULT_LOCALE' => 'pt_BR',
'APP_DEFAULT_TIMEZONE' => 'America/Manaus',
'SECURITY_SALT' => '01e62e39c0b0c6c09cb5e1bc286b1c14feea17915e20d4ddbadfa4b93b7586a2',
'APP_SUBDOMAIN' => 'careiro-castanho',
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #167
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(App\Application) id:0 {
protected configDir => '/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/config/'
protected plugins => object(Cake\Core\PluginCollection) id:1 {
protected plugins => [
'' => [maximum depth reached],
]
protected names => [
'' => [maximum depth reached],
]
protected positions => [
'' => [maximum depth reached],
]
protected loopDepth => (int) -1
}
protected controllerFactory => null
protected container => object(Cake\Core\Container) id:2 {
protected defaultToShared => false
protected definitions => object(League\Container\Definition\DefinitionAggregate) id:3 {
}
protected providers => object(League\Container\ServiceProvider\ServiceProviderAggregate) id:4 {
}
protected inflectors => object(League\Container\Inflector\InflectorAggregate) id:5 {
}
protected delegates => [
'' => [maximum depth reached],
]
}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
'_listeners' => [
]
'_isGlobal' => true
'_trackEvents' => false
'_generalManager' => '(object) EventManager'
'_dispatchedEvents' => null
}
protected _eventClass => 'Cake\Event\Event'
}
-
|
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
Toggle Arguments
-
|
* @since 0.10.0 |
|
* @license https://opensource.org/licenses/mit-license.php MIT License |
|
*/ |
|
|
|
require 'webroot' . DIRECTORY_SEPARATOR . 'index.php'; |
|
|
Toggle Arguments
'/home/u729860359/domains/sgcalmunicipal.com.br/public_html/careiro-castanho.sgcalmunicipal.com.br/webroot/index.php'
-
CORE/src/Database/Driver.php at line 132
(edit)
|
*/ |
|
protected function _connect(string $dsn, array $config): bool |
|
{ |
|
$action = function () use ($dsn, $config) { |
|
$this->setConnection(new PDO( |
|
$dsn, |
|
$config['username'] ?: null, |
|
$config['password'] ?: null, |
|
$config['flags'] |
-
|
*/ |
|
protected function _connect(string $dsn, array $config): bool |
|
{ |
|
$action = function () use ($dsn, $config) { |
|
$this->setConnection(new PDO( |
|
$dsn, |
|
$config['username'] ?: null, |
|
$config['password'] ?: null, |
|
$config['flags'] |
Toggle Arguments
'mysql:host=mysql.cjid.app;port=3306;dbname=dbsgpf_car_cast;charset=utf8mb4'
object(SensitiveParameterValue) id:0 {
}
[
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
]
-
|
{ |
|
$this->numRetries = 0; |
|
while (true) { |
|
try { |
|
return $action(); |
|
} catch (Exception $e) { |
|
if ( |
|
$this->numRetries < $this->maxRetries && |
|
$this->strategy->shouldRetry($e, $this->numRetries) |
Toggle Arguments
-
|
}; |
|
|
|
$retry = new CommandRetry(new ErrorCodeWaitStrategy(static::RETRY_ERROR_CODES, 5), 4); |
|
try { |
|
$retry->run($action); |
|
} catch (PDOException $e) { |
|
throw new MissingConnectionException( |
|
[ |
|
'driver' => App::shortName(static::class, 'Database/Driver'), |
Toggle Arguments
-
CORE/src/Database/Driver.php at line 132
(edit)
|
*/ |
|
protected function _connect(string $dsn, array $config): bool |
|
{ |
|
$action = function () use ($dsn, $config) { |
|
$this->setConnection(new PDO( |
|
$dsn, |
|
$config['username'] ?: null, |
|
$config['password'] ?: null, |
|
$config['flags'] |
If you want to customize this error message, create
templates/Error/error500.php