} |
|
$query->cache($cacheKey, $cacheConfig); |
|
} |
|
|
|
return $query->firstOrFail(); |
|
} |
|
|
|
/** |
|
* Handles the logic executing of a worker inside a transaction. |
No arguments
public function view($id = null) |
|
{ |
|
$event = $this->Events->get($id, [ |
|
'contain' => ['Navigations', 'Events_title_translation', 'Events_description_translation', 'I18n'] |
|
]); |
|
|
|
$this->set('event', $event); |
|
$this->set('_serialize', ['event']); |
|
} |
'151' [ 'contain' => [ (int) 0 => 'Navigations', (int) 1 => 'Events_title_translation', (int) 2 => 'Events_description_translation', (int) 3 => 'I18n' ] ]
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...array_values($request->getParam('pass'))); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
'151'
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\EventsController) { helpers => [ 'Html' => [ 'className' => 'Bootstrap.BootstrapHtml', 'useFontAwesome' => true ], 'Form' => [ 'className' => 'Bootstrap.BootstrapForm' ], 'Paginator' => [ 'className' => 'Bootstrap.BootstrapPaginator' ], 'Modal' => [ 'className' => 'Bootstrap.BootstrapModal' ], 'Gravatar' => [ 'className' => 'GravatarHelper.Gravatar' ] ] name => 'Events' request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [ [maximum depth reached] ] cookies => [[maximum depth reached]] url => 'events/view/151/' base => '' webroot => '/' here => '/events/view/151/' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } paginate => [] autoRender => true components => [] View => null plugin => null passedArgs => [ (int) 0 => '151' ] modelClass => 'Events' viewClass => null viewVars => [ 'settings' => object(App\Model\Entity\Setting) {} ] Settings => object(App\Model\Table\SettingsTable) { 'registryAlias' => 'Settings', 'table' => 'settings', 'alias' => 'Settings', 'entityClass' => 'App\Model\Entity\Setting', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Events => object(App\Model\Table\EventsTable) { 'registryAlias' => 'Events', 'table' => 'events', 'alias' => 'Events', 'entityClass' => 'App\Model\Entity\Event', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] _responseClass => 'Cake\Http\Response' [protected] _components => null [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [ [maximum depth reached] ] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
*/ |
|
public function dispatch(ServerRequest $request, Response $response) |
|
{ |
|
$actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if (isset($request->params['return'])) { |
|
return $response->body(); |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Events', 'action' => 'view', '_ext' => null, 'pass' => [ (int) 0 => '151' ], '_matchedRoute' => '/:controller/:action/*', '?' => [ 'id' => '147' ], 'isAjax' => false ] data => [] query => [ 'id' => '147' ] cookies => [] url => 'events/view/151/' base => '' webroot => '/' here => '/events/view/151/' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZflJX38AAQEAAEiykAYAAAAB', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZflJX38AAQEAAEiykAYAAAAB', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZflJX38AAQEAAEiykAYAAAAB', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/events/view/151/?id=147', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.237.245.80', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '36244', 'REDIRECT_QUERY_STRING' => 'id=147', 'REDIRECT_URL' => '/webroot/events/view/151/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'id=147', 'REQUEST_URI' => '/events/view/151/?id=147', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710836063.29, 'REQUEST_TIME' => (int) 1710836063, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/events/view/151/' [private] query => 'id=147' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Events', 'action' => 'view', '_ext' => null, 'pass' => [ (int) 0 => '151' ], '_matchedRoute' => '/:controller/:action/*', '?' => [ 'id' => '147' ], 'isAjax' => false ] data => [] query => [ 'id' => '147' ] cookies => [] url => 'events/view/151/' base => '' webroot => '/' here => '/events/view/151/' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZflJX38AAQEAAEiykAYAAAAB', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZflJX38AAQEAAEiykAYAAAAB', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZflJX38AAQEAAEiykAYAAAAB', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/events/view/151/?id=147', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.237.245.80', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '36244', 'REDIRECT_QUERY_STRING' => 'id=147', 'REDIRECT_URL' => '/webroot/events/view/151/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'id=147', 'REQUEST_URI' => '/events/view/151/?id=147', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710836063.29, 'REQUEST_TIME' => (int) 1710836063, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/events/view/151/' [private] query => 'id=147' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
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 src/Template/Error/error500.ctp