Notice (8) : Undefined index: Post [APP/Controller/PostsController.php , line 480 ]Code Context $this -> log ( $post , LOG_DEBUG );
//Update page view stats
$this -> Post -> id = $post [ 'Post' ][ 'id' ]; $id = '209'
$Favorite = object(Favorite) {
name => 'Favorite'
_findMethods => array(
'favorite' => true
)
useDbConfig => 'default'
useTable => 'favorites'
id => false
data => array()
schemaName => 'nouchi'
table => 'favorites'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
plugin => 'Favorites'
alias => 'Favorite'
tableToModel => array(
'favorites' => 'Favorite'
)
cacheQueries => false
belongsTo => array(
'Post' => array(
[maximum depth reached]
)
)
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
tablePrefix => ''
[protected] _listCategories => array(
(int) 0 => 'Post'
)
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'user_id' => array(
[maximum depth reached]
),
'foreign_key' => array(
[maximum depth reached]
),
'model' => array(
[maximum depth reached]
),
'type' => array(
[maximum depth reached]
),
'position' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
$post = array() PostsController::view() - APP/Controller/PostsController.php, line 480
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 97 Notice (8) : Undefined index: Post [APP/Controller/PostsController.php , line 487 ]Code Context
$this -> set ( 'post' , $post );
$this -> set ( 'title_for_layout' , sprintf ( __ ( 'Word: \'%s\'' ), $post [ 'Post' ][ 'word' ])); $id = '209'
$Favorite = object(Favorite) {
name => 'Favorite'
_findMethods => array(
'favorite' => true
)
useDbConfig => 'default'
useTable => 'favorites'
id => false
data => array()
schemaName => 'nouchi'
table => 'favorites'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
plugin => 'Favorites'
alias => 'Favorite'
tableToModel => array(
'favorites' => 'Favorite'
)
cacheQueries => false
belongsTo => array(
'Post' => array(
[maximum depth reached]
)
)
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
tablePrefix => ''
[protected] _listCategories => array(
(int) 0 => 'Post'
)
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'user_id' => array(
[maximum depth reached]
),
'foreign_key' => array(
[maximum depth reached]
),
'model' => array(
[maximum depth reached]
),
'type' => array(
[maximum depth reached]
),
'position' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
$post = array() PostsController::view() - APP/Controller/PostsController.php, line 487
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 97
Nouchi.Mobi: The Online Nouchi Dictionary - Errors
CommentsComponent: missing view variable post or value for primary key id of model Post
Error:
An Internal Error Has Occurred.
Stack Trace
[internal function] → CommentsComponent->callback_view(string)
APP/Plugin/Comments/Controller/Component/CommentsComponent.php line 635 → call_user_func_array(array, array) if ( method_exists ( $this -> Controller , $methodName )) {
return call_user_func_array (array(& $this -> Controller , $methodName ), $args );
} elseif ( method_exists ( $this , $localMethodName )) {
return call_user_func_array (array(& $this , $localMethodName ), $args );
} else { array(
(int) 0 => object(CommentsComponent) {},
(int) 1 => 'callback_view'
)
array(
(int) 0 => 'threaded'
)
APP/Plugin/Comments/Controller/Component/CommentsComponent.php line 265 → CommentsComponent->_call(string, array) if ( $this -> enabled && in_array ( $this -> Controller -> request -> action , $this -> actionNames )) {
$type = $this -> _call ( 'initType' );
$this -> commentParams = array_merge ( $this -> commentParams , array( 'displayType' => $type ));
$this -> _call ( 'view' , array( $type ));
$this -> _call ( 'prepareParams' ); 'view'
array(
(int) 0 => 'threaded'
)
[internal function] → CommentsComponent->beforeRender(PostsController) object(PostsController) {
name => 'Posts'
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
presetVars => array(
[maximum depth reached]
)
postCount => (int) 0
activeUser => array([maximum depth reached])
theme => 'Nouchi'
isFacebookUser => false
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Posts'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'view'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Post'
modelKey => 'post'
validationErrors => null
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
Email => object(EmailComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Connect => object(ConnectComponent) {}
Comments => object(CommentsComponent) {}
Prg => object(PrgComponent) {}
Rest => object(RestComponent) {}
Post => object(Post) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
CORE/Cake/Utility/ObjectCollection.php line 132 → call_user_func_array(array, array) }
$result = null ;
foreach ( $list as $name ) {
$result = call_user_func_array (array( $this -> _loaded [ $name ], $callback ), compact ( 'subject' ) + $params );
if ( $options [ 'collectReturn' ] === true ) { array(
(int) 0 => object(CommentsComponent) {},
(int) 1 => 'beforeRender'
)
array(
'subject' => object(PostsController) {}
)
[internal function] → ObjectCollection->trigger(CakeEvent) object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.beforeRender'
[protected] _subject => object(PostsController) {}
[protected] _stopped => false
}
CORE/Cake/Event/CakeEventManager.php line 248 → call_user_func(array, CakeEvent) if ( $listener [ 'passParams' ] === true ) {
$result = call_user_func_array ( $listener [ 'callable' ], $event -> data );
} else {
$result = call_user_func ( $listener [ 'callable' ], $event );
} array(
(int) 0 => object(ComponentCollection) {},
(int) 1 => 'trigger'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.beforeRender'
[protected] _subject => object(PostsController) {}
[protected] _stopped => false
}
CORE/Cake/Controller/Controller.php line 921 → CakeEventManager->dispatch(CakeEvent) */
public function render ( $view = null , $layout = null ) {
$event = new CakeEvent ( 'Controller.beforeRender' , $this );
$this -> getEventManager ()-> dispatch ( $event );
if ( $event -> isStopped ()) { object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.beforeRender'
[protected] _subject => object(PostsController) {}
[protected] _stopped => false
}
CORE/Cake/Routing/Dispatcher.php line 194 → Controller->render() }
if ( $render && $controller -> autoRender ) {
$response = $controller -> render ();
} elseif (!( $result instanceof CakeResponse ) &&
CORE/Cake/Routing/Dispatcher.php line 162 → Dispatcher->_invoke(PostsController, CakeRequest, CakeResponse) ));
}
$response = $this -> _invoke ( $controller , $request , $response );
if (isset( $request -> params [ 'return' ])) { object(PostsController) {
name => 'Posts'
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
presetVars => array(
[maximum depth reached]
)
postCount => (int) 0
activeUser => array([maximum depth reached])
theme => 'Nouchi'
isFacebookUser => false
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Posts'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'view'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Post'
modelKey => 'post'
validationErrors => null
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
Email => object(EmailComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Connect => object(ConnectComponent) {}
Comments => object(CommentsComponent) {}
Prg => object(PrgComponent) {}
Rest => object(RestComponent) {}
Post => object(Post) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'posts/view/209'
base => ''
webroot => '/'
here => '/posts/view/209'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
APP/webroot/index.php line 97 → Dispatcher->dispatch(CakeRequest, CakeResponse) $Dispatcher -> dispatch (
new CakeRequest (),
new CakeResponse (array( 'charset' => Configure :: read ( 'App.encoding' )))
);
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'posts/view/209'
base => ''
webroot => '/'
here => '/posts/view/209'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}