Warning (2): Division by zero [APP/View/Helper/PosterHelper.php, line 29]Code Context public function getPosterRatio($post){
$ratio = ($this->hasPoster($post))? ($this->getPoster($post)->width / $this->getPoster($post)->height) : null;
return $ratio;
$post = object(App\Model\Entity\Post) {
'id' => (int) 24,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'publish_date' => object(Cake\I18n\FrozenTime) {},
'notified' => null,
'free' => true,
'status' => 'PUBLISHED',
'priority' => 'NORMAL',
'readed' => null,
'subhead' => 'CHRONIQUE ANIMÉE / Sur le bout des langues',
'title' => 'Macron, l'accent plat',
'subtitle' => 'Chronique animée, pluriculturelle et mégalangagière, par Anna Lietti, Johanna Castellanos (dessins), Régine et Gilles (direction digitale et créative Richterbuxtorf)',
'subtitle_edition' => null,
'content' => '',
'content_edition' => null,
'slug' => 'la-chronique-animee',
'headline' => false,
'homepage' => '',
'like' => (int) 1027,
'editor' => null,
'index_order' => (int) 3,
'homepage_order' => (int) 12,
'original_url' => null,
'podcast' => false,
'tagline' => null,
'poster' => null,
'category_id' => (int) 3,
'person_id' => (int) 13,
'post_type_id' => (int) 1,
'poster_attachment' => null,
'post_type' => object(App\Model\Entity\PostType) {},
'tags' => [
(int) 0 => object(App\Model\Entity\Tag) {}
],
'person' => object(App\Model\Entity\Person) {},
'attachment_images' => [
(int) 0 => object(Cake\ORM\Entity) {}
],
'category' => object(App\Model\Entity\Category) {},
'_matchingData' => [
'Tags' => object(App\Model\Entity\Tag) {},
'PostsTags' => object(Cake\ORM\Entity) {}
],
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [],
'[original]' => [],
'[virtual]' => [],
'[hasErrors]' => false,
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Posts'
}
App\View\Helper\PosterHelper::getPosterRatio() - APP/View/Helper/PosterHelper.php, line 29
include - APP/Template/Element/Posts/default.ctp, line 7
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435
Cake\View\View::_render() - CORE/src/View/View.php, line 1393
Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879
Cake\View\View::element() - CORE/src/View/View.php, line 783
include - APP/Template/Posts/index.ctp, line 79
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435
Cake\View\View::_render() - CORE/src/View/View.php, line 1393
Cake\View\View::render() - CORE/src/View/View.php, line 892
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791
App\Controller\PostsController::tag() - APP/Controller/PostsController.php, line 137
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Chronique /
Macron, l'accent plat
Chronique animée, pluriculturelle et mégalangagière, par Anna Lietti, Johanna Castellanos (dessins), Régine et Gilles (direction digitale et créative
Anna Lietti