trigger_error($message, E_USER_DEPRECATED);}
/var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Core/functions.php /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Core/functions.php, line 318 /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Route/Route.php /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Route/Route.php, line 343 Cake\Routing\Route\Route->_writeRoute() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Route/Route.php, line 303 Cake\Routing\Route\Route->compile() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Route/Route.php, line 474 Cake\Routing\Route\Route->parse() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Route/DashedRoute.php, line 66 Cake\Routing\Route\DashedRoute->parse() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Route/Route.php, line 450 Cake\Routing\Route\Route->parseRequest() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/RouteCollection.php, line 244 Cake\Routing\RouteCollection->parseRequest() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Router.php, line 233 Cake\Routing\Router::parseRequest() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 163 Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Routing\Middleware\AssetMiddleware->process() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149 Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Runner->run() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Server.php, line 99 Cake\Http\Server->run() /var/www/offertegiocattoli4/webroot/index.php, line 40 [main]
$message = "Unable to emit headers. Headers sent in file=$file line=$line";trigger_error($message, E_USER_WARNING);}
/var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71 Cake\Http\ResponseEmitter->emit() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Server.php, line 137 Cake\Http\Server->emit() /var/www/offertegiocattoli4/webroot/index.php, line 40 [main]
$response->getStatusCode(),($reasonPhrase ? ' ' . $reasonPhrase : '')));
/var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168 Cake\Http\ResponseEmitter->emitStatusLine() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74 Cake\Http\ResponseEmitter->emit() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Server.php, line 137 Cake\Http\Server->emit() /var/www/offertegiocattoli4/webroot/index.php, line 40 [main]
foreach ($values as $value) {header(sprintf('%s: %s',
/var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197 Cake\Http\ResponseEmitter->emitHeaders() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75 Cake\Http\ResponseEmitter->emit() /var/www/offertegiocattoli4/vendor/cakephp/cakephp/src/Http/Server.php, line 137 Cake\Http\Server->emit() /var/www/offertegiocattoli4/webroot/index.php, line 40 [main]
Sites could not be found.
📋
$message = '`' . $message . '`'; |
|
if (strpos($message, '\\') === false) { |
|
$message = 'for alias ' . $message; |
|
} |
|
throw new MissingTableClassException([$message]); |
|
} |
|
|
|
if (empty($options['connection'])) { |
|
if (!empty($options['connectionName'])) { |
} |
|
|
|
$this->options[$alias] = $storeOptions; |
|
|
|
return $this->instances[$alias] = $this->createInstance($alias, $options); |
|
} |
|
|
|
/** |
|
* Create an instance of a given classname. |
*/ |
|
public function get(string $alias, array $options = []): Table |
|
{ |
|
/** @var \Cake\ORM\Table */ |
|
return parent::get($alias, $options); |
|
} |
|
|
|
/** |
|
* @inheritDoc |
$exists = $tableLocator->exists($registryAlias); |
|
if (!$exists) { |
|
$config = ['className' => $this->_className]; |
|
} |
|
$this->_targetTable = $tableLocator->get($registryAlias, $config); |
|
|
|
if ($exists) { |
|
$className = App::className($this->_className, 'Model/Table', 'Table') ?: Table::class; |
|
|
if (!$table->hasAssociation($name)) { |
|
continue; |
|
} |
|
$association = $table->getAssociation($name); |
|
$target = $association->getTarget(); |
|
$primary = (array)$target->getPrimaryKey(); |
|
if (empty($primary) || $typeMap->type($target->aliasField($primary[0])) === null) { |
|
$this->addDefaultTypes($target); |
|
} |
} |
|
$this->_addAssociationsToTypeMap( |
|
$this->getRepository(), |
|
$this->getTypeMap(), |
|
$loader->getContain() |
|
); |
|
|
|
return $this; |
|
} |
|
|
ksort($options); |
|
foreach ($options as $option => $values) { |
|
if (isset($valid[$option], $values)) { |
|
$this->{$valid[$option]}($values); |
|
} else { |
|
$this->_options[$option] = $values; |
|
} |
|
} |
* @uses findThreaded() |
|
*/ |
|
public function callFinder(string $type, Query $query, array $options = []): Query |
|
{ |
|
$query->applyOptions($options); |
|
$options = $query->getOptions(); |
|
$finder = 'find' . $type; |
|
if (method_exists($this, $finder)) { |
|
return $this->{$finder}($query, $options); |
* @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. |
{ |
|
|
|
public function view($slug = null) |
|
{ |
|
$product = $this->Products->find('all',['conditions'=>['Products.slug'=>$slug], 'contain'=>['Categories', 'Brands', 'Ages', 'Educations', 'Pieces', 'Sites']])->first(); |
|
|
|
|
|
$this->set(compact('product')); |
|
//echo $slug; |
* @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterface` instance. |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null && !$result instanceof ResponseInterface) { |
|
throw new UnexpectedValueException(sprintf( |
|
'Controller actions can only return ResponseInterface instance or null. ' |
|
. 'Got %s instead.', |
$args = $this->getActionArgs( |
|
$action, |
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
|
|
// This is needed for auto-wiring. Should be removed in 5.x |
|
$container->add(ComponentRegistry::class, $controller->components()); |
|
|
|
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); |
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$container = $this->app instanceof ContainerApplicationInterface |
|
? $this->app->getContainer() |
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