Warning (512)
: /var/www/staging/recruiter-repo/tmp/cache/locks/ is not writable [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line
427]
Code
$this->_config['path'],
), E_USER_WARNING);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 427
Cake\Cache\Engine\FileEngine->_active() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 101
Cake\Cache\Engine\FileEngine->init() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/CacheRegistry.php, line 84
Cake\Cache\CacheRegistry->_create() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php, line 115
Cake\Core\ObjectRegistry->load() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 153
Cake\Cache\Cache::_buildEngine() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 216
Cake\Cache\Cache::pool() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Panel/CachePanel.php, line 59
DebugKit\Panel\CachePanel->initialize() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/ToolbarService.php, line 232
DebugKit\ToolbarService->initializePanels() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 58
DebugKit\Middleware\DebugKitMiddleware->process() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /var/www/staging/recruiter-repo/webroot/index.php, line 37
[main]
Warning (512)
: Cache engine `Cake\Cache\Engine\FileEngine` is not properly configured. Check error log for additional information. [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line
157]
Code
$registry->set($name, new NullEngine());
trigger_error($e->getMessage(), E_USER_WARNING);
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 157
Cake\Cache\Cache::_buildEngine() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 216
Cake\Cache\Cache::pool() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Panel/CachePanel.php, line 59
DebugKit\Panel\CachePanel->initialize() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/ToolbarService.php, line 232
DebugKit\ToolbarService->initializePanels() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 58
DebugKit\Middleware\DebugKitMiddleware->process() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /var/www/staging/recruiter-repo/webroot/index.php, line 37
[main]
Warning (512)
: /var/www/staging/recruiter-repo/tmp/cache/views/ is not writable [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line
427]
Code
$this->_config['path'],
), E_USER_WARNING);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 427
Cake\Cache\Engine\FileEngine->_active() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 101
Cake\Cache\Engine\FileEngine->init() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/CacheRegistry.php, line 84
Cake\Cache\CacheRegistry->_create() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php, line 115
Cake\Core\ObjectRegistry->load() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 153
Cake\Cache\Cache::_buildEngine() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 216
Cake\Cache\Cache::pool() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Panel/CachePanel.php, line 59
DebugKit\Panel\CachePanel->initialize() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/ToolbarService.php, line 232
DebugKit\ToolbarService->initializePanels() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 58
DebugKit\Middleware\DebugKitMiddleware->process() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /var/www/staging/recruiter-repo/webroot/index.php, line 37
[main]
Warning (512)
: Cache engine `Cake\Cache\Engine\FileEngine` is not properly configured. Check error log for additional information. [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line
157]
Code
$registry->set($name, new NullEngine());
trigger_error($e->getMessage(), E_USER_WARNING);
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 157
Cake\Cache\Cache::_buildEngine() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 216
Cake\Cache\Cache::pool() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Panel/CachePanel.php, line 59
DebugKit\Panel\CachePanel->initialize() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/ToolbarService.php, line 232
DebugKit\ToolbarService->initializePanels() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 58
DebugKit\Middleware\DebugKitMiddleware->process() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /var/www/staging/recruiter-repo/webroot/index.php, line 37
[main]
Warning (512)
: /var/www/staging/recruiter-repo/tmp/cache/ is not writable [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line
427]
Code
$this->_config['path'],
), E_USER_WARNING);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 427
Cake\Cache\Engine\FileEngine->_active() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 101
Cake\Cache\Engine\FileEngine->init() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/CacheRegistry.php, line 84
Cake\Cache\CacheRegistry->_create() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php, line 115
Cake\Core\ObjectRegistry->load() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 153
Cake\Cache\Cache::_buildEngine() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Cache/Cache.php, line 216
Cake\Cache\Cache::pool() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Panel/CachePanel.php, line 59
DebugKit\Panel\CachePanel->initialize() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/ToolbarService.php, line 232
DebugKit\ToolbarService->initializePanels() /var/www/staging/recruiter-repo/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 58
DebugKit\Middleware\DebugKitMiddleware->process() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /var/www/staging/recruiter-repo/webroot/index.php, line 37
[main]
Warning (2)
: file_put_contents(/var/www/staging/recruiter-repo/logs/error.log): Failed to open stream: Permission denied [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line
137]
Code
if (!$mask) {
file_put_contents($pathname, $message . "\n", FILE_APPEND);
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 137
Cake\Log\Engine\FileLog->log() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Log/Log.php, line 382
Cake\Log\Log::write() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ErrorLogger.php, line 63
Cake\Error\ErrorLogger->log() /var/www/staging/recruiter-repo/vendor/psr/log/src/LoggerTrait.php, line 50
Cake\Error\ErrorLogger->error() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ErrorLogger.php, line 101
Cake\Error\ErrorLogger->logException() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 355
Cake\Error\ExceptionTrap->logException() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 229
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (512)
: Unable to emit headers. Headers sent in file=/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
65]
Code
$message = "Unable to emit headers. Headers sent in file={$file} line={$line}";
trigger_error($message, E_USER_WARNING);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65
Cake\Http\ResponseEmitter->emit() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 308
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 240
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
163]
Code
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : ''),
));
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 163
Cake\Http\ResponseEmitter->emitStatusLine() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 68
Cake\Http\ResponseEmitter->emit() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 308
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 240
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
192]
Code
foreach ($values as $value) {
header(sprintf(
'%s: %s',
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192
Cake\Http\ResponseEmitter->emitHeaders() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 69
Cake\Http\ResponseEmitter->emit() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 308
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/staging/recruiter-repo/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 240
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
CORE/src/Database/Driver.php at line 382
(edit)
|
'driver' => $this, |
|
'params' => $params ?? $statement->getBoundParams(), |
|
]); |
|
|
|
return new QueryException($loggedQuery, $exception); |
|
} |
|
|
|
/** |
|
* Prepares a sql statement to be executed. |
-
|
if ($this->logger === null) { |
|
try { |
|
$statement->execute($params); |
|
} catch (PDOException $e) { |
|
throw $this->createQueryException($e, $statement, $params); |
|
} |
|
|
|
return; |
|
} |
Toggle Arguments
-
|
public function run(Query $query): StatementInterface |
|
{ |
|
$statement = $this->prepare($query); |
|
$query->getValueBinder()->attachTo($statement); |
|
$this->executeStatement($statement); |
|
|
|
return $statement; |
|
} |
|
|
Toggle Arguments
-
|
* @return \Cake\Database\StatementInterface executed statement |
|
*/ |
|
public function run(Query $query): StatementInterface |
|
{ |
|
return $this->getDisconnectRetry()->run(fn () => $this->getDriver($query->getConnectionRole())->run($query)); |
|
} |
|
|
|
/** |
|
* Get query factory instance. |
Toggle Arguments
-
|
{ |
|
$this->numRetries = 0; |
|
while (true) { |
|
try { |
|
return $action(); |
|
} catch (Exception $e) { |
|
if ( |
|
$this->numRetries < $this->maxRetries && |
|
$this->strategy->shouldRetry($e, $this->numRetries) |
Toggle Arguments
-
|
* @return \Cake\Database\StatementInterface executed statement |
|
*/ |
|
public function run(Query $query): StatementInterface |
|
{ |
|
return $this->getDisconnectRetry()->run(fn () => $this->getDriver($query->getConnectionRole())->run($query)); |
|
} |
|
|
|
/** |
|
* Get query factory instance. |
Toggle Arguments
-
|
*/ |
|
public function execute(): StatementInterface |
|
{ |
|
$this->_statement = null; |
|
$this->_statement = $this->_connection->run($this); |
|
$this->_dirty = false; |
|
|
|
return $this->_statement; |
|
} |
Toggle Arguments
-
|
} |
|
|
|
$statement = $this->insertQuery()->insert(array_keys($data)) |
|
->values($data) |
|
->execute(); |
|
|
|
$success = false; |
|
if ($statement->rowCount() !== 0) { |
|
$success = $entity; |
Toggle Arguments
-
|
$data = $entity->extract($this->getSchema()->columns(), true); |
|
$isNew = $entity->isNew(); |
|
|
|
if ($isNew) { |
|
$success = $this->_insert($entity, $data); |
|
} else { |
|
$success = $this->_update($entity, $data); |
|
} |
|
|
Toggle Arguments
-
|
return $entity; |
|
} |
|
|
|
$success = $this->_executeTransaction( |
|
fn () => $this->_processSave($entity, $options), |
|
$options['atomic'], |
|
); |
|
|
|
if ($success) { |
Toggle Arguments
-
|
*/ |
|
protected function _executeTransaction(callable $worker, bool $atomic = true): mixed |
|
{ |
|
if ($atomic) { |
|
return $this->getConnection()->transactional(fn () => $worker()); |
|
} |
|
|
|
return $worker(); |
|
} |
Toggle Arguments
-
|
{ |
|
$this->begin(); |
|
|
|
try { |
|
$result = $callback($this); |
|
} catch (Throwable $e) { |
|
$this->rollback(false); |
|
throw $e; |
|
} |
Toggle Arguments
-
|
*/ |
|
protected function _executeTransaction(callable $worker, bool $atomic = true): mixed |
|
{ |
|
if ($atomic) { |
|
return $this->getConnection()->transactional(fn () => $worker()); |
|
} |
|
|
|
return $worker(); |
|
} |
Toggle Arguments
-
|
} |
|
|
|
$success = $this->_executeTransaction( |
|
fn () => $this->_processSave($entity, $options), |
|
$options['atomic'], |
|
); |
|
|
|
if ($success) { |
|
if ($this->_transactionCommitted($options['atomic'], $options['_primary'])) { |
Toggle Arguments
-
|
]); |
|
} |
|
|
|
try { |
|
return $requests->save($row); |
|
} catch (CakeException $e) { |
|
Log::warning('Unable to save request. This is probably due to concurrent requests.'); |
|
Log::warning($e->getMessage()); |
|
} |
Toggle Arguments
-
|
if (!$this->service->isEnabled()) { |
|
return $response; |
|
} |
|
|
|
$row = $this->service->saveData($request, $response); |
|
if (!$row) { |
|
return $response; |
|
} |
|
|
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
-
|
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
Toggle Arguments
-
|
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
Toggle Arguments
-
|
$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
-
CORE/src/Database/Statement/Statement.php at line 146
(edit)
|
* @inheritDoc |
|
*/ |
|
public function execute(?array $params = null): bool |
|
{ |
|
return $this->statement->execute($params); |
|
} |
|
|
|
/** |
|
* @inheritDoc |
-
|
* @inheritDoc |
|
*/ |
|
public function execute(?array $params = null): bool |
|
{ |
|
return $this->statement->execute($params); |
|
} |
|
|
|
/** |
|
* @inheritDoc |
Toggle Arguments
-
|
public function execute(?array $params = null): bool |
|
{ |
|
$this->affectedRows = null; |
|
|
|
return parent::execute($params); |
|
} |
|
|
|
/** |
|
* @inheritDoc |
Toggle Arguments
-
|
protected function executeStatement(StatementInterface $statement, ?array $params = null): void |
|
{ |
|
if ($this->logger === null) { |
|
try { |
|
$statement->execute($params); |
|
} catch (PDOException $e) { |
|
throw $this->createQueryException($e, $statement, $params); |
|
} |
|
|
Toggle Arguments
-
If you want to customize this error message, create
templates/Error/error500.php