Warning (2): Division by zero [APP/View/Recipes/view.ctp, line 178]Code Context $unitName = $recipe['IngredientMapping'][$i]['Unit']['name']; if ($unitName != 'Szt') { /* yes, nasty dependence on name */ $ingredientsWeight += $quantity / $recipe['Recipe']['serving_size'];$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 794, 'name' => 'Krem Pistacjowy', 'ethnicity_id' => null, 'base_type_id' => null, 'course_id' => null, 'preparation_time_id' => null, 'difficulty_id' => null, 'serving_size' => null, 'directions' => '', 'comments' => '', 'source_description' => '', 'recipe_cost' => null, 'modified' => '2024-04-11', 'picture' => null, 'picture_type' => null, 'private' => false, 'system' => 'usa', 'source_id' => null, 'user_id' => (int) 1, 'preparation_method_id' => null ), 'Ethnicity' => array( 'name' => null ), 'BaseType' => array( 'name' => null ), 'Course' => array( 'name' => null ), 'PreparationTime' => array( 'name' => null ), 'Difficulty' => array( 'name' => null ), 'Source' => array( 'name' => null, 'id' => null, 'description' => null ), 'User' => array( 'name' => 'Administrator Potraw', 'id' => (int) 1 ), 'RelatedRecipe' => array(), 'IngredientMapping' => array( (int) 0 => array( [maximum depth reached] ) ), 'Image' => array(), 'Review' => array() ), 'allowAccountCreation' => false, 'isEditor' => false, 'isAdmin' => false, 'loggedInuserId' => null, 'loggedIn' => false ) $servings = null $recipe = array( 'Recipe' => array( 'id' => (int) 794, 'name' => 'Krem Pistacjowy', 'ethnicity_id' => null, 'base_type_id' => null, 'course_id' => null, 'preparation_time_id' => null, 'difficulty_id' => null, 'serving_size' => null, 'directions' => '', 'comments' => '', 'source_description' => '', 'recipe_cost' => null, 'modified' => '2024-04-11', 'picture' => null, 'picture_type' => null, 'private' => false, 'system' => 'usa', 'source_id' => null, 'user_id' => (int) 1, 'preparation_method_id' => null ), 'Ethnicity' => array( 'name' => null ), 'BaseType' => array( 'name' => null ), 'Course' => array( 'name' => null ), 'PreparationTime' => array( 'name' => null ), 'Difficulty' => array( 'name' => null ), 'Source' => array( 'name' => null, 'id' => null, 'description' => null ), 'User' => array( 'name' => 'Administrator Potraw', 'id' => (int) 1 ), 'RelatedRecipe' => array(), 'IngredientMapping' => array( (int) 0 => array( 'recipe_id' => (int) 794, 'ingredient_id' => (int) 2133, 'quantity' => '1', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 10828, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ) ), 'Image' => array(), 'Review' => array() ) $allowAccountCreation = false $isEditor = false $isAdmin = false $loggedInuserId = null $loggedIn = false $recipeId = (int) 794 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (int) 0 $masterServings = null $imageCount = (int) 0 $i = (int) 0 $quantity = '1' $unitName = 'Litr'include - APP/View/Recipes/view.ctp, line 178 View::_evaluate() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 971 View::_render() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 933 View::render() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 473 Controller::render() - APP/Vendor/cakephp/cakephp/lib/Cake/Controller/Controller.php, line 963 Dispatcher::_invoke() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 1131 Litr Pistacje Obrane Przybliżona Waga 1 Porcji: 0 kgPrzybliżona Waga Całości ( Porcji): 1 kg
Warning (2): Division by zero [APP/View/Recipes/view.ctp, line 178]Code Context $unitName = $recipe['IngredientMapping'][$i]['Unit']['name']; if ($unitName != 'Szt') { /* yes, nasty dependence on name */ $ingredientsWeight += $quantity / $recipe['Recipe']['serving_size'];$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 794, 'name' => 'Krem Pistacjowy', 'ethnicity_id' => null, 'base_type_id' => null, 'course_id' => null, 'preparation_time_id' => null, 'difficulty_id' => null, 'serving_size' => null, 'directions' => '', 'comments' => '', 'source_description' => '', 'recipe_cost' => null, 'modified' => '2024-04-11', 'picture' => null, 'picture_type' => null, 'private' => false, 'system' => 'usa', 'source_id' => null, 'user_id' => (int) 1, 'preparation_method_id' => null ), 'Ethnicity' => array( 'name' => null ), 'BaseType' => array( 'name' => null ), 'Course' => array( 'name' => null ), 'PreparationTime' => array( 'name' => null ), 'Difficulty' => array( 'name' => null ), 'Source' => array( 'name' => null, 'id' => null, 'description' => null ), 'User' => array( 'name' => 'Administrator Potraw', 'id' => (int) 1 ), 'RelatedRecipe' => array(), 'IngredientMapping' => array( (int) 0 => array( [maximum depth reached] ) ), 'Image' => array(), 'Review' => array() ), 'allowAccountCreation' => false, 'isEditor' => false, 'isAdmin' => false, 'loggedInuserId' => null, 'loggedIn' => false ) $servings = null $recipe = array( 'Recipe' => array( 'id' => (int) 794, 'name' => 'Krem Pistacjowy', 'ethnicity_id' => null, 'base_type_id' => null, 'course_id' => null, 'preparation_time_id' => null, 'difficulty_id' => null, 'serving_size' => null, 'directions' => '', 'comments' => '', 'source_description' => '', 'recipe_cost' => null, 'modified' => '2024-04-11', 'picture' => null, 'picture_type' => null, 'private' => false, 'system' => 'usa', 'source_id' => null, 'user_id' => (int) 1, 'preparation_method_id' => null ), 'Ethnicity' => array( 'name' => null ), 'BaseType' => array( 'name' => null ), 'Course' => array( 'name' => null ), 'PreparationTime' => array( 'name' => null ), 'Difficulty' => array( 'name' => null ), 'Source' => array( 'name' => null, 'id' => null, 'description' => null ), 'User' => array( 'name' => 'Administrator Potraw', 'id' => (int) 1 ), 'RelatedRecipe' => array(), 'IngredientMapping' => array( (int) 0 => array( 'recipe_id' => (int) 794, 'ingredient_id' => (int) 2133, 'quantity' => '1', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 10828, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ) ), 'Image' => array(), 'Review' => array() ) $allowAccountCreation = false $isEditor = false $isAdmin = false $loggedInuserId = null $loggedIn = false $recipeId = (int) 794 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (int) 0 $masterServings = null $imageCount = (int) 0 $i = (int) 0 $quantity = '1' $unitName = 'Litr'include - APP/View/Recipes/view.ctp, line 178 View::_evaluate() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 971 View::_render() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 933 View::render() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 473 Controller::render() - APP/Vendor/cakephp/cakephp/lib/Cake/Controller/Controller.php, line 963 Dispatcher::_invoke() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 113
$unitName = $recipe['IngredientMapping'][$i]['Unit']['name']; if ($unitName != 'Szt') { /* yes, nasty dependence on name */ $ingredientsWeight += $quantity / $recipe['Recipe']['serving_size'];
$unitName = $recipe['IngredientMapping'][$i]['Unit']['name'];
if ($unitName != 'Szt') { /* yes, nasty dependence on name */
$ingredientsWeight += $quantity / $recipe['Recipe']['serving_size'];
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 794, 'name' => 'Krem Pistacjowy', 'ethnicity_id' => null, 'base_type_id' => null, 'course_id' => null, 'preparation_time_id' => null, 'difficulty_id' => null, 'serving_size' => null, 'directions' => '', 'comments' => '', 'source_description' => '', 'recipe_cost' => null, 'modified' => '2024-04-11', 'picture' => null, 'picture_type' => null, 'private' => false, 'system' => 'usa', 'source_id' => null, 'user_id' => (int) 1, 'preparation_method_id' => null ), 'Ethnicity' => array( 'name' => null ), 'BaseType' => array( 'name' => null ), 'Course' => array( 'name' => null ), 'PreparationTime' => array( 'name' => null ), 'Difficulty' => array( 'name' => null ), 'Source' => array( 'name' => null, 'id' => null, 'description' => null ), 'User' => array( 'name' => 'Administrator Potraw', 'id' => (int) 1 ), 'RelatedRecipe' => array(), 'IngredientMapping' => array( (int) 0 => array( [maximum depth reached] ) ), 'Image' => array(), 'Review' => array() ), 'allowAccountCreation' => false, 'isEditor' => false, 'isAdmin' => false, 'loggedInuserId' => null, 'loggedIn' => false ) $servings = null $recipe = array( 'Recipe' => array( 'id' => (int) 794, 'name' => 'Krem Pistacjowy', 'ethnicity_id' => null, 'base_type_id' => null, 'course_id' => null, 'preparation_time_id' => null, 'difficulty_id' => null, 'serving_size' => null, 'directions' => '', 'comments' => '', 'source_description' => '', 'recipe_cost' => null, 'modified' => '2024-04-11', 'picture' => null, 'picture_type' => null, 'private' => false, 'system' => 'usa', 'source_id' => null, 'user_id' => (int) 1, 'preparation_method_id' => null ), 'Ethnicity' => array( 'name' => null ), 'BaseType' => array( 'name' => null ), 'Course' => array( 'name' => null ), 'PreparationTime' => array( 'name' => null ), 'Difficulty' => array( 'name' => null ), 'Source' => array( 'name' => null, 'id' => null, 'description' => null ), 'User' => array( 'name' => 'Administrator Potraw', 'id' => (int) 1 ), 'RelatedRecipe' => array(), 'IngredientMapping' => array( (int) 0 => array( 'recipe_id' => (int) 794, 'ingredient_id' => (int) 2133, 'quantity' => '1', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 10828, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ) ), 'Image' => array(), 'Review' => array() ) $allowAccountCreation = false $isEditor = false $isAdmin = false $loggedInuserId = null $loggedIn = false $recipeId = (int) 794 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (int) 0 $masterServings = null $imageCount = (int) 0 $i = (int) 0 $quantity = '1' $unitName = 'Litr'
include - APP/View/Recipes/view.ctp, line 178 View::_evaluate() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 971 View::_render() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 933 View::render() - APP/Vendor/cakephp/cakephp/lib/Cake/View/View.php, line 473 Controller::render() - APP/Vendor/cakephp/cakephp/lib/Cake/Controller/Controller.php, line 963 Dispatcher::_invoke() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 113