Notice (8): Trying to get property 'title' of non-object [APP/Template/Recipes/in.ctp, line 34]Code Context<?php foreach($recipe->ingredients as $ingredient): ?>
<li class="list-group-item"><?= $this->Html->link($ingredient->ingredient->title, ['controller' => 'recipes', 'action' => 'ingredient', $ingredient->ingredient->id]) ?></li>
<?php endforeach; ?>
$viewFile = '/var/www/slimmingchef.co.uk/src/Template/Recipes/in.ctp' $dataForView = [ 'recipe' => object(Cake\ORM\Entity) { 'id' => '68e1a097-bef9-460e-9729-74e5dce57d1c', 'url' => 'https://basementbakehouse.com/2016/10/syn-free-creamy-chicken-mozzarella-pasta/', 'site_id' => '3e73ed8a-809f-4cf5-acfc-2a51b3fc8f62', 'status' => false, 'featured' => false, 'featured_date' => null, 'title' => 'Syn Free Creamy Chicken & Mozzarella Pasta', 'slug' => 'syn-free-creamy-chicken-mozzarella-pasta', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'ingredients' => [ [maximum depth reached] ], 'site' => object(Cake\ORM\Entity) {}, '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[hasErrors]' => false, '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Recipes' }, 'settings' => [ 'Site' => [ 'name' => 'Slimming Chef', 'description' => 'Over 4,700 Slimming World recipes giving you the flexibility to create bespoke meal plans based upon the ingredients you and your family enjoy..', 'image' => 'recipes.jpg' ], 'Background' => [ 'name' => 'Testing background title and link', 'image' => 'background.jpg', 'url' => '/recipes/view/test' ], 'User' => [] ], 'user' => null ] $recipe = object(Cake\ORM\Entity) { 'id' => '68e1a097-bef9-460e-9729-74e5dce57d1c', 'url' => 'https://basementbakehouse.com/2016/10/syn-free-creamy-chicken-mozzarella-pasta/', 'site_id' => '3e73ed8a-809f-4cf5-acfc-2a51b3fc8f62', 'status' => false, 'featured' => false, 'featured_date' => null, 'title' => 'Syn Free Creamy Chicken & Mozzarella Pasta', 'slug' => 'syn-free-creamy-chicken-mozzarella-pasta', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'ingredients' => [ (int) 0 => object(Cake\ORM\Entity) {}, (int) 1 => object(Cake\ORM\Entity) {}, (int) 2 => object(Cake\ORM\Entity) {}, (int) 3 => object(Cake\ORM\Entity) {}, (int) 4 => object(Cake\ORM\Entity) {}, (int) 5 => object(Cake\ORM\Entity) {}, (int) 6 => object(Cake\ORM\Entity) {}, (int) 7 => object(Cake\ORM\Entity) {}, (int) 8 => object(Cake\ORM\Entity) {}, (int) 9 => object(Cake\ORM\Entity) {}, (int) 10 => object(Cake\ORM\Entity) {}, (int) 11 => object(Cake\ORM\Entity) {}, (int) 12 => object(Cake\ORM\Entity) {} ], 'site' => object(Cake\ORM\Entity) {}, '[new]' => false, '[accessible]' => [ '*' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Recipes' } $settings = [ 'Site' => [ 'name' => 'Slimming Chef', 'description' => 'Over 4,700 Slimming World recipes giving you the flexibility to create bespoke meal plans based upon the ingredients you and your family enjoy..', 'image' => 'recipes.jpg' ], 'Background' => [ 'name' => 'Testing background title and link', 'image' => 'background.jpg', 'url' => '/recipes/view/test' ], 'User' => [] ] $user = null $ingredient = object(Cake\ORM\Entity) { 'id' => '483105fb-34f8-4d29-9228-e2354287784f', 'ingredient_id' => '6d43e9f8-434b-4f96-b1e6-242121052c43', 'recipe_id' => '68e1a097-bef9-460e-9729-74e5dce57d1c', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'ingredient' => null, '[new]' => false, '[accessible]' => [ '*' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Ingredients' }include - APP/Template/Recipes/in.ctp, line 34 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1419 Cake\View\View::_render() - CORE/src/View/View.php, line 1380 Cake\View\View::render() - CORE/src/View/View.php, line 880 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 796 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 104 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 168 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
Notice (8): Trying to get property 'id' of non-object [APP/Template/Recipes/in.ctp, line 34]Code Context<?php foreach($recipe->ingredients as $ingredient): ?>
<li class="list-group-item"><?= $this->Html->link($ingredient->ingredient->title, ['controller' => 'recipes', 'action' => 'ingredient', $ingredient->ingredient->id]) ?></li>
<?php endforeach; ?>
$viewFile = '/var/www/slimmingchef.co.uk/src/Template/Recipes/in.ctp' $dataForView = [ 'recipe' => object(Cake\ORM\Entity) { 'id' => '68e1a097-bef9-460e-9729-74e5dce57d1c', 'url' => 'https://basementbakehouse.com/2016/10/syn-free-creamy-chicken-mozzarella-pasta/', 'site_id' => '3e73ed8a-809f-4cf5-acfc-2a51b3fc8f62', 'status' => false, 'featured' => false, 'featured_date' => null, 'title' => 'Syn Free Creamy Chicken & Mozzarella Pasta', 'slug' => 'syn-free-creamy-chicken-mozzarella-pasta', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'ingredients' => [ [maximum depth reached] ], 'site' => object(Cake\ORM\Entity) {}, '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[hasErrors]' => false, '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Recipes' }, 'settings' => [ 'Site' => [ 'name' => 'Slimming Chef', 'description' => 'Over 4,700 Slimming World recipes giving you the flexibility to create bespoke meal plans based upon the ingredients you and your family enjoy..', 'image' => 'recipes.jpg' ], 'Background' => [ 'name' => 'Testing background title and link', 'image' => 'background.jpg', 'url' => '/recipes/view/test' ], 'User' => [] ], 'user' => null ] $recipe = object(Cake\ORM\Entity) { 'id' => '68e1a097-bef9-460e-9729-74e5dce57d1c', 'url' => 'https://basementbakehouse.com/2016/10/syn-free-creamy-chicken-mozzarella-pasta/', 'site_id' => '3e73ed8a-809f-4cf5-acfc-2a51b3fc8f62', 'status' => false, 'featured' => false, 'featured_date' => null, 'title' => 'Syn Free Creamy Chicken & Mozzarella Pasta', 'slug' => 'syn-free-creamy-chicken-mozzarella-pasta', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'ingredients' => [ (int) 0 => object(Cake\ORM\Entity) {}, (int) 1 => object(Cake\ORM\Entity) {}, (int) 2 => object(Cake\ORM\Entity) {}, (int) 3 => object(Cake\ORM\Entity) {}, (int) 4 => object(Cake\ORM\Entity) {}, (int) 5 => object(Cake\ORM\Entity) {}, (int) 6 => object(Cake\ORM\Entity) {}, (int) 7 => object(Cake\ORM\Entity) {}, (int) 8 => object(Cake\ORM\Entity) {}, (int) 9 => object(Cake\ORM\Entity) {}, (int) 10 => object(Cake\ORM\Entity) {}, (int) 11 => object(Cake\ORM\Entity) {}, (int) 12 => object(Cake\ORM\Entity) {} ], 'site' => object(Cake\ORM\Entity) {}, '[new]' => false, '[accessible]' => [ '*' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Recipes' } $settings = [ 'Site' => [ 'name' => 'Slimming Chef', 'description' => 'Over 4,700 Slimming World recipes giving you the flexibility to create bespoke meal plans based upon the ingredients you and your family enjoy..', 'image' => 'recipes.jpg' ], 'Background' => [ 'name' => 'Testing background title and link', 'image' => 'background.jpg', 'url' => '/recipes/view/test' ], 'User' => [] ] $user = null $ingredient = object(Cake\ORM\Entity) { 'id' => '483105fb-34f8-4d29-9228-e2354287784f', 'ingredient_id' => '6d43e9f8-434b-4f96-b1e6-242121052c43', 'recipe_id' => '68e1a097-bef9-460e-9729-74e5dce57d1c', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'ingredient' => null, '[new]' => false, '[accessible]' => [ '*' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Ingredients' }include - APP/Template/Recipes/in.ctp, line 34 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1419 Cake\View\View::_render() - CORE/src/View/View.php, line 1380 Cake\View\View::render() - CORE/src/View/View.php, line 880 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 796 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 104 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 168 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
SRV001 © 2024 Slimming Chef
Slimming Chef is not asscoiated/sponsored/moderated by the Slimming World© organisation. Any syn values are correct at time of writing and require checking against the offical Slimming World© database.