$category1 = $categoryTable->find()->where(array(SLUG => $slug, STATUS => 1))->first();
$setCatArray[] = $category1->id;
}
App\Controller\EcommerceController::products() /var/www/vhosts/123layby.com.au/httpdocs/src/Controller/EcommerceController.php, line 27 Cake\Controller\Controller::invokeAction() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\CsrfProtectionMiddleware::process() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Routing\Middleware\RoutingMiddleware::process() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 192 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 77 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /var/www/vhosts/123layby.com.au/httpdocs/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() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71 Cake\Http\Server::emit() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /var/www/vhosts/123layby.com.au/httpdocs/webroot/index.php, line 40
$reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
header [internal], line ?? Cake\Http\ResponseEmitter::emitStatusLine() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164 Cake\Http\ResponseEmitter::emit() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74 Cake\Http\Server::emit() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /var/www/vhosts/123layby.com.au/httpdocs/webroot/index.php, line 40
foreach ($values as $value) {
header(sprintf(
'%s: %s',
header [internal], line ?? Cake\Http\ResponseEmitter::emitHeaders() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197 Cake\Http\ResponseEmitter::emit() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75 Cake\Http\Server::emit() /var/www/vhosts/123layby.com.au/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /var/www/vhosts/123layby.com.au/httpdocs/webroot/index.php, line 40
id
is missing operator (IS, IS NOT) with null
value.
📋
continue; |
|
} |
|
|
|
if (!$numericKey) { |
|
$this->_conditions[] = $this->_parseCondition($k, $c); |
|
} |
|
} |
|
} |
|
|
|
|
return $this; |
|
} |
|
|
|
$this->_addConditions($conditions, $types); |
|
|
|
return $this; |
|
} |
|
|
$append = $append($this->newExpr(), $this); |
|
} |
|
|
|
if ($expression->getConjunction() === $conjunction) { |
|
$expression->add($append, $types); |
|
} else { |
|
$expression = $this->newExpr() |
|
->setConjunction($conjunction) |
|
->add([$expression, $append], $types); |
{ |
|
if ($overwrite) { |
|
$this->_parts['where'] = $this->newExpr(); |
|
} |
|
$this->_conjugate('where', $conditions, 'AND', $types); |
|
|
|
return $this; |
|
} |
|
|
$this->set(compact('products','productListBanner')); |
|
$testimonialTable = TableRegistry::get('Testimonials'); |
|
$testimonials = $testimonialTable->find()->where(array(STATUS => 1))->order([ID => DESC])->all(); |
|
$this->set(compact('testimonials')); |
|
$category = $categoryTable->find()->where(array(ID => $category_title_id, STATUS => 1))->first(); |
|
$this->set('categoryData',$category); |
|
} |
|
|
|
public function productDetail($slug=NULL){; |
* @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. |
} |
|
|
|
$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 ' |
*/ |
|
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); |
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); |
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
|
|
|
return $runner->run($middleware, $request, $handler); |
|
} |
|
} |
|
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !is_file($assetFile)) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$file = new SplFileInfo($assetFile); |
|
$modifiedTime = $file->getMTime(); |
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()); |
|
|
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table" instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
Please try correcting the issue for the following table aliases:
If you want to customize this error message, create templates/Error/error500.php