/var/www/projects/mioutdoors/src/Template/Features/view.ctp
toggle arguments
|
if ($usemicrodata) echo '</span></span>'; |
|
echo '</div></div>'; |
|
|
|
echo $this->element(str_replace(' ', '_', $featuretypes[$featuretype_id]->name), |
|
['feature' => $feature, 'featuretypes' => $featuretypes]); |
|
|
|
if ($feature->hasValue('photos')) { |
|
echo '<div class="feature-photos" style="display:flex; flex-wrap: wrap;">'; |
|
|
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/View/View.php
toggle arguments
|
{ |
|
extract($dataForView); |
|
ob_start(); |
|
|
|
include func_get_arg(0); |
|
|
|
return ob_get_clean(); |
|
} |
|
|
'/var/www/projects/mioutdoors/src/Template/Features/view.ctp'
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/View/View.php
toggle arguments
|
$initialBlocks = count($this->Blocks->unclosed()); |
|
|
|
$this->dispatchEvent('View.beforeRenderFile', [$viewFile]); |
|
|
|
$content = $this->_evaluate($viewFile, $data); |
|
|
|
$afterEvent = $this->dispatchEvent('View.afterRenderFile', [$viewFile, $content]); |
|
if ($afterEvent->getResult() !== null) { |
|
$content = $afterEvent->getResult(); |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/View/View.php
toggle arguments
|
$viewFileName = $view !== false ? $this->_getViewFileName($view) : null; |
|
if ($viewFileName) { |
|
$this->_currentType = static::TYPE_TEMPLATE; |
|
$this->dispatchEvent('View.beforeRender', [$viewFileName]); |
|
$this->Blocks->set('content', $this->_render($viewFileName)); |
|
$this->dispatchEvent('View.afterRender', [$viewFileName]); |
|
} |
|
|
|
if ($this->layout && $this->autoLayout) { |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Controller/Controller.php
toggle arguments
|
$builder->setTemplate($this->request->getParam('action')); |
|
} |
|
|
|
$this->View = $this->createView(); |
|
$contents = $this->View->render($view, $layout); |
|
$this->response = $this->View->response->withStringBody($contents); |
|
|
|
return $this->response; |
|
} |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
|
if (!$response && $controller->isAutoRenderEnabled()) { |
|
$controller->render(); |
|
} |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof Response) { |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
|
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if ($request->getParam('return')) { |
|
return $response; |
|
} |
|
|
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/BaseApplication.php
toggle arguments
|
* @return \Psr\Http\Message\ResponseInterface |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
return $this->getDispatcher()->dispatch($request, $response); |
|
} |
|
|
|
/** |
|
* Get the ActionDispatcher. |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php
toggle arguments
|
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $next($request, $response); |
|
} |
|
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php
toggle arguments
|
public function __invoke($request, $response, $next) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $next($request, $response); |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php
toggle arguments
|
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request, $response); |
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $response); |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
/var/www/projects/mioutdoors/vendor/cakephp/cakephp/src/Http/Server.php
toggle arguments
|
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
|
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
/var/www/projects/mioutdoors/webroot/index.php
toggle arguments
|
// 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()); |
|
|
Could this be caused by using Auto-Tables?
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:
- The class for the specified table does not exist.
- The Table was created with a typo: $this->getTableLocator()->get('Atricles');
- The class file has a typo in the name or incorrect namespace: class Atricles extends Table
- The file containing the class has a typo or incorrect casing: Atricles.php
- The Table was used using associations but the association has a typo: $this->belongsTo('Atricles')
- The table class resides in a Plugin but no plugin notation was used in the association definition.
Please try correcting the issue for the following table aliases:
- Webcams
- Featurespecies
- Photos
If you want to customize this error message, create
src/Template/Error/error500.ctp