Notice (8): Trying to get property of non-object [APP/Controller/PagesController.php, line 721]Code Context$this->set('slowo', $slowo);
if($slowo->adult == 1){
$slug = 'masz-czy-marz-jak-sie-pisze' $slowo = null $query = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT `Dictionary`.`id` AS `Dictionary__id`, `Dictionary`.`title` AS `Dictionary__title`, `Dictionary`.`seo_title` AS `Dictionary__seo_title`, `Dictionary`.`slug` AS `Dictionary__slug`, `Dictionary`.`category` AS `Dictionary__category`, `Dictionary`.`correct_spelling` AS `Dictionary__correct_spelling`, `Dictionary`.`incorrect_spelling` AS `Dictionary__incorrect_spelling`, `Dictionary`.`context1` AS `Dictionary__context1`, `Dictionary`.`context2` AS `Dictionary__context2`, `Dictionary`.`comment` AS `Dictionary__comment`, `Dictionary`.`created` AS `Dictionary__created`, `Dictionary`.`modified` AS `Dictionary__modified`, `Dictionary`.`adult` AS `Dictionary__adult` FROM `dictionary` `Dictionary` WHERE `slug` = :c0 LIMIT 1', 'params' => [ ':c0' => [ [maximum depth reached] ] ], 'defaultTypes' => [ 'Dictionary__id' => 'integer', 'Dictionary.id' => 'integer', 'id' => 'integer', 'Dictionary__title' => 'string', 'Dictionary.title' => 'string', 'title' => 'string', 'Dictionary__seo_title' => 'string', 'Dictionary.seo_title' => 'string', 'seo_title' => 'string', 'Dictionary__slug' => 'string', 'Dictionary.slug' => 'string', 'slug' => 'string', 'Dictionary__category' => 'string', 'Dictionary.category' => 'string', 'category' => 'string', 'Dictionary__correct_spelling' => 'string', 'Dictionary.correct_spelling' => 'string', 'correct_spelling' => 'string', 'Dictionary__incorrect_spelling' => 'string', 'Dictionary.incorrect_spelling' => 'string', 'incorrect_spelling' => 'string', 'Dictionary__context1' => 'string', 'Dictionary.context1' => 'string', 'context1' => 'string', 'Dictionary__context2' => 'string', 'Dictionary.context2' => 'string', 'context2' => 'string', 'Dictionary__comment' => 'text', 'Dictionary.comment' => 'text', 'comment' => 'text', 'Dictionary__created' => 'datetime', 'Dictionary.created' => 'datetime', 'created' => 'datetime', 'Dictionary__modified' => 'datetime', 'Dictionary.modified' => 'datetime', 'modified' => 'datetime', 'Dictionary__adult' => 'boolean', 'Dictionary.adult' => 'boolean', 'adult' => 'boolean' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\DictionaryTable) {} }App\Controller\PagesController::slownikTekst() - APP/Controller/PagesController.php, line 721 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 435 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 122 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 83 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 52 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 52 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51 Cake\Http\Server::run() - CORE/src/Http/Server.php, line 82 [main] - ROOT/webroot/index.php, line 43
Notice (8): Trying to get property of non-object [APP/Controller/PagesController.php, line 731]Code Context$this->loadModel('Dictionary');
$additional_box = $this->Dictionary->find('all', [
'conditions' => ['category' => $slowo->category],
$slug = 'masz-czy-marz-jak-sie-pisze' $slowo = null $query = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT `Dictionary`.`id` AS `Dictionary__id`, `Dictionary`.`title` AS `Dictionary__title`, `Dictionary`.`seo_title` AS `Dictionary__seo_title`, `Dictionary`.`slug` AS `Dictionary__slug`, `Dictionary`.`category` AS `Dictionary__category`, `Dictionary`.`correct_spelling` AS `Dictionary__correct_spelling`, `Dictionary`.`incorrect_spelling` AS `Dictionary__incorrect_spelling`, `Dictionary`.`context1` AS `Dictionary__context1`, `Dictionary`.`context2` AS `Dictionary__context2`, `Dictionary`.`comment` AS `Dictionary__comment`, `Dictionary`.`created` AS `Dictionary__created`, `Dictionary`.`modified` AS `Dictionary__modified`, `Dictionary`.`adult` AS `Dictionary__adult` FROM `dictionary` `Dictionary` WHERE `slug` = :c0 LIMIT 1', 'params' => [ ':c0' => [ [maximum depth reached] ] ], 'defaultTypes' => [ 'Dictionary__id' => 'integer', 'Dictionary.id' => 'integer', 'id' => 'integer', 'Dictionary__title' => 'string', 'Dictionary.title' => 'string', 'title' => 'string', 'Dictionary__seo_title' => 'string', 'Dictionary.seo_title' => 'string', 'seo_title' => 'string', 'Dictionary__slug' => 'string', 'Dictionary.slug' => 'string', 'slug' => 'string', 'Dictionary__category' => 'string', 'Dictionary.category' => 'string', 'category' => 'string', 'Dictionary__correct_spelling' => 'string', 'Dictionary.correct_spelling' => 'string', 'correct_spelling' => 'string', 'Dictionary__incorrect_spelling' => 'string', 'Dictionary.incorrect_spelling' => 'string', 'incorrect_spelling' => 'string', 'Dictionary__context1' => 'string', 'Dictionary.context1' => 'string', 'context1' => 'string', 'Dictionary__context2' => 'string', 'Dictionary.context2' => 'string', 'context2' => 'string', 'Dictionary__comment' => 'text', 'Dictionary.comment' => 'text', 'comment' => 'text', 'Dictionary__created' => 'datetime', 'Dictionary.created' => 'datetime', 'created' => 'datetime', 'Dictionary__modified' => 'datetime', 'Dictionary.modified' => 'datetime', 'modified' => 'datetime', 'Dictionary__adult' => 'boolean', 'Dictionary.adult' => 'boolean', 'adult' => 'boolean' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\DictionaryTable) {} } $additional_box = [] $limit = (int) 32App\Controller\PagesController::slownikTekst() - APP/Controller/PagesController.php, line 731 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 435 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 122 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 83 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 52 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 52 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51 Cake\Http\Server::run() - CORE/src/Http/Server.php, line 82 [main] - ROOT/webroot/index.php, line 43
{ |
|
if (!$emitter) { |
|
$emitter = new SapiStreamEmitter(); |
|
} |
|
$emitter->emit($response); |
|
} |
|
|
|
/** |
|
* Set the application. |
object(Zend\Diactoros\Response) { [protected] headers => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ] [protected] headerNames => [ 'content-type' => 'Content-Type' ] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 451 => 'Unavailable For Legal Reasons', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 511 => 'Network Authentication Required' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application |
|
// and emit the response. |
|
$server->emit($server->run()); |
|
|
object(Zend\Diactoros\Response) { [protected] headers => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ] [protected] headerNames => [ 'content-type' => 'Content-Type' ] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 451 => 'Unavailable For Legal Reasons', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 511 => 'Network Authentication Required' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
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