Notice (8): Trying to get property of non-object [
APP/Template/Pages/single.ctp, line
117]
Code Context <div class="committee-member">
<div class="member-img">
<img src="<?php echo $data->logo ? '/uploads/thumb/'.$data->logo :'images/user-1.jpg'?>" alt="image_name"/>
$viewFile = '/home/mahifabtex/public_html/app/src/Template/Pages/single.ctp'
$dataForView = [
'data' => null,
'type' => 'committee',
'prefix' => ''
]
$data = null
$type = 'committee'
$prefix = ''
$userId = null
include - APP/Template/Pages/single.ctp, line 117
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1012
Cake\View\View::_render() - CORE/src/View/View.php, line 971
Cake\View\View::render() - CORE/src/View/View.php, line 595
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 617
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 128
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 60
[main] - ROOT/webroot/index.php, line 36
images/user-1.jpg" alt="image_name"/>
Notice (8): Trying to get property of non-object [APP/Template/Pages/single.ctp, line 120]Code Context </div>
<div class="member-details">
<h2><?php echo $data->name;?></h2>
$viewFile = '/home/mahifabtex/public_html/app/src/Template/Pages/single.ctp'
$dataForView = [
'data' => null,
'type' => 'committee',
'prefix' => ''
]
$data = null
$type = 'committee'
$prefix = ''
$userId = null
include - APP/Template/Pages/single.ctp, line 120
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1012
Cake\View\View::_render() - CORE/src/View/View.php, line 971
Cake\View\View::render() - CORE/src/View/View.php, line 595
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 617
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 128
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 60
[main] - ROOT/webroot/index.php, line 36
Notice (8): Trying to get property of non-object [APP/Template/Pages/single.ctp, line 121]Code Context <div class="member-details">
<h2><?php echo $data->name;?></h2>
<p><?php echo $data->post;?></p>
$viewFile = '/home/mahifabtex/public_html/app/src/Template/Pages/single.ctp'
$dataForView = [
'data' => null,
'type' => 'committee',
'prefix' => ''
]
$data = null
$type = 'committee'
$prefix = ''
$userId = null
include - APP/Template/Pages/single.ctp, line 121
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1012
Cake\View\View::_render() - CORE/src/View/View.php, line 971
Cake\View\View::render() - CORE/src/View/View.php, line 595
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 617
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 128
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 60
[main] - ROOT/webroot/index.php, line 36
Notice (8): Trying to get property of non-object [APP/Template/Pages/single.ctp, line 123]Code Context <p><?php echo $data->post;?></p>
<?php $Table = TableRegistry::get('Category');
$Category = $Table->find('all')->where(['id'=> $data->category_id])->first();
$viewFile = '/home/mahifabtex/public_html/app/src/Template/Pages/single.ctp'
$dataForView = [
'data' => null,
'type' => 'committee',
'prefix' => ''
]
$data = null
$type = 'committee'
$prefix = ''
$userId = null
$Table = object(App\Model\Table\CategoryTable) {
'registryAlias' => 'Category',
'table' => 'categories',
'alias' => 'Category',
'entityClass' => '\Cake\ORM\Entity',
'associations' => [
(int) 0 => 'subcategory'
],
'behaviors' => [
(int) 0 => 'Timestamp'
],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
include - APP/Template/Pages/single.ctp, line 123
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1012
Cake\View\View::_render() - CORE/src/View/View.php, line 971
Cake\View\View::render() - CORE/src/View/View.php, line 595
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 617
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 128
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 60
[main] - ROOT/webroot/index.php, line 36
Notice (8): Trying to get property of non-object [APP/Template/Pages/single.ctp, line 125]Code Context $Category = $Table->find('all')->where(['id'=> $data->category_id])->first();
?>
<i><?php echo $Category->name;?></i>
$viewFile = '/home/mahifabtex/public_html/app/src/Template/Pages/single.ctp'
$dataForView = [
'data' => null,
'type' => 'committee',
'prefix' => ''
]
$data = null
$type = 'committee'
$prefix = ''
$userId = null
$Table = object(App\Model\Table\CategoryTable) {
'registryAlias' => 'Category',
'table' => 'categories',
'alias' => 'Category',
'entityClass' => '\Cake\ORM\Entity',
'associations' => [
(int) 0 => 'subcategory'
],
'behaviors' => [
(int) 0 => 'Timestamp'
],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$Category = null
include - APP/Template/Pages/single.ctp, line 125
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1012
Cake\View\View::_render() - CORE/src/View/View.php, line 971
Cake\View\View::render() - CORE/src/View/View.php, line 595
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 617
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 128
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 96
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 60
[main] - ROOT/webroot/index.php, line 36