$parts = explode('\\', static::class);
trigger_error(
sprintf(
Cake\Controller\Controller::__get() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Controller/Controller.php, line 329 App\Controller\AppController::getCurrentFullUser() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/src/Controller/AppController.php, line 1159 App\Controller\AppController::getRoleDroits() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/src/Controller/AppController.php, line 678 App\Controller\AppController::beforeRender() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/src/Controller/AppController.php, line 1036 App\Controller\ErrorController::beforeRender() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/src/Controller/ErrorController.php, line 58 Cake\Event\EventManager::_callListener() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Event/EventManager.php, line 309 Cake\Event\EventManager::dispatch() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Event/EventManager.php, line 286 Cake\Controller\Controller::dispatchEvent() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php, line 92 Cake\Controller\Controller::render() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Controller/Controller.php, line 759 Cake\Error\Renderer\WebExceptionRenderer::_outputMessage() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 421 Cake\Error\Renderer\WebExceptionRenderer::render() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 292 Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 162 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 135 Cake\Http\Runner::handle() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/webroot/index.php, line 40
$message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
Cake\Http\ResponseEmitter::emit() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71 Cake\Http\Server::emit() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/webroot/index.php, line 40
$reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
header [internal], line ?? Cake\Http\ResponseEmitter::emitStatusLine() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164 Cake\Http\ResponseEmitter::emit() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74 Cake\Http\Server::emit() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/webroot/index.php, line 40
foreach ($values as $value) {
header(sprintf(
'%s: %s',
header [internal], line ?? Cake\Http\ResponseEmitter::emitHeaders() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197 Cake\Http\ResponseEmitter::emit() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75 Cake\Http\Server::emit() /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /home/clients/97870587b8757af0f53659e0c825514e/agence-coutheillas-hardelot.fr/webroot/index.php, line 40
$connection = $this->_driver->getConnection(); |
|
|
|
try { |
|
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, $this->_bufferResults); |
|
$result = $this->_statement->execute($params); |
|
} finally { |
|
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); |
|
} |
|
|
public function execute(?array $params = null): bool |
|
{ |
|
$this->_hasExecuted = true; |
|
|
|
return $this->_statement->execute($params); |
|
} |
|
|
|
/** |
|
* Returns the next row for the result set after executing this statement. |
$this->loggedQuery->driver = $this->_driver; |
|
$this->loggedQuery->params = $params ?: $this->_compiledParams; |
|
|
|
try { |
|
$result = parent::execute($params); |
|
$this->loggedQuery->took = (int)round((microtime(true) - $this->startTime) * 1000, 0); |
|
} catch (Exception $e) { |
|
$this->loggedQuery->error = $e; |
|
$this->_log(); |
{ |
|
return $this->getDisconnectRetry()->run(function () use ($query) { |
|
$statement = $this->prepare($query); |
|
$query->getValueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
|
}); |
|
} |
{ |
|
$this->numRetries = 0; |
|
while (true) { |
|
try { |
|
return $action(); |
|
} catch (Exception $e) { |
|
if ( |
|
$this->numRetries < $this->maxRetries && |
|
$this->strategy->shouldRetry($e, $this->numRetries) |
* @return \Cake\Database\StatementInterface executed statement |
|
*/ |
|
public function run(Query $query): StatementInterface |
|
{ |
|
return $this->getDisconnectRetry()->run(function () use ($query) { |
|
$statement = $this->prepare($query); |
|
$query->getValueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
* @return \Cake\Database\StatementInterface |
|
*/ |
|
public function execute(): StatementInterface |
|
{ |
|
$statement = $this->_connection->run($this); |
|
$this->_iterator = $this->_decorateStatement($statement); |
|
$this->_dirty = false; |
|
|
|
return $this->_iterator; |
$query->getEagerLoader()->disableAutoFields(); |
|
$statement = $query |
|
->select($count, true) |
|
->disableAutoFields() |
|
->execute(); |
|
} else { |
|
$statement = $this->getConnection()->newQuery() |
|
->select($count) |
|
->from(['count_source' => $query]) |
*/ |
|
public function count(): int |
|
{ |
|
if ($this->_resultsCount === null) { |
|
$this->_resultsCount = $this->_performCount(); |
|
} |
|
|
|
return $this->_resultsCount; |
|
} |
//'Resources' |
|
] |
|
]); |
|
|
|
if ($element->count()>0){ |
|
$element = $element->first(); |
|
if (isset($element['id'])){ |
|
// reconstitution de l'url avec le changement de langue |
|
|
*/ |
|
|
|
public function initialize(): void |
|
{ |
|
parent::initialize(); |
|
// $this->loadComponent('Paginator'); |
|
$this->loadComponent('Calcul'); |
|
$this->Authentication->addUnauthenticatedActions(['index4home','index4menu','display','index4menutop','index4menusub','sitemap','index4menutopsitemap','listingresources']); |
|
|
if ($components !== null) { |
|
$this->components($components); |
|
} |
|
|
|
$this->initialize(); |
|
|
|
if (isset($this->components)) { |
|
triggerWarning( |
|
'Support for loading components using $components property is removed. ' . |
// The request is in the container by default. |
|
if ($this->container->has($className)) { |
|
$controller = $this->container->get($className); |
|
} else { |
|
$controller = $reflection->newInstance($request); |
|
} |
|
|
|
return $controller; |
|
} |
if (Router::getRequest() !== $request) { |
|
Router::setRequest($request); |
|
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
return new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->createToken(); |
|
$request = $request->withAttribute('csrfToken', $this->saltToken($token)); |
|
/** @var mixed $response */ |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
if (!in_array($request->getMethod(), $this->methods, true)) { |
|
return $handler->handle($request); |
|
} |
|
[$type] = explode(';', $request->getHeaderLine('Content-Type')); |
|
$type = strtolower($type); |
|
if (!isset($this->parsers[$type])) { |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
$request = $request->withAttribute('authentication', $service); |
|
$request = $request->withAttribute('authenticationResult', $result); |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
$authenticator = $service->getAuthenticationProvider(); |
|
|
|
if ($authenticator !== null && !$authenticator instanceof StatelessInterface) { |
|
$return = $service->persistIdentity($request, $response, $result->getData()); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->handle($request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (RedirectException $exception) { |
|
return $this->handleRedirect($exception); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
// 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()); |
|
|
If you want to customize this error message, create templates/Error/error500.php