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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (int) 0 $masterServings = null $imageCount = (int) 0 $i = (int) 0 $quantity = '0.52' $unitName = 'Kg'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 1130,520 Kg Margaryna / маргарин 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.52 $masterServings = null $imageCount = (int) 0 $i = (int) 1 $quantity = '1.2' $unitName = 'Litr' $unit = 'Kg' $ingredientName = 'Margaryna / маргарин ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = nullinclude - 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,200 Litr Olej 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 1.72 $masterServings = null $imageCount = (int) 0 $i = (int) 2 $quantity = '0.1' $unitName = 'Kg' $unit = 'Litr' $ingredientName = 'Olej' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = nullinclude - 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 1130,100 Kg Czosnek Granulowany 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 1.82 $masterServings = null $imageCount = (int) 0 $i = (int) 3 $quantity = '0.648' $unitName = 'Kg' $unit = 'Kg' $ingredientName = 'Czosnek Granulowany ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = nullinclude - 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 1130,648 Kg Bułka Tarta Przybliżona Waga 1 Porcji: 0 kgPrzybliżona Waga Całości ( Porcji): 2,468 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (int) 0 $masterServings = null $imageCount = (int) 0 $i = (int) 0 $quantity = '0.52' $unitName = 'Kg'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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (int) 0 $masterServings = null $imageCount = (int) 0 $i = (int) 0 $quantity = '0.52' $unitName = 'Kg'
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
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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.52 $masterServings = null $imageCount = (int) 0 $i = (int) 1 $quantity = '1.2' $unitName = 'Litr' $unit = 'Kg' $ingredientName = 'Margaryna / маргарин ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = nullinclude - 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
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.52 $masterServings = null $imageCount = (int) 0 $i = (int) 1 $quantity = '1.2' $unitName = 'Litr' $unit = 'Kg' $ingredientName = 'Margaryna / маргарин ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null
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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 1.72 $masterServings = null $imageCount = (int) 0 $i = (int) 2 $quantity = '0.1' $unitName = 'Kg' $unit = 'Litr' $ingredientName = 'Olej' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = nullinclude - 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
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 1.72 $masterServings = null $imageCount = (int) 0 $i = (int) 2 $quantity = '0.1' $unitName = 'Kg' $unit = 'Litr' $ingredientName = 'Olej' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null
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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 1.82 $masterServings = null $imageCount = (int) 0 $i = (int) 3 $quantity = '0.648' $unitName = 'Kg' $unit = 'Kg' $ingredientName = 'Czosnek Granulowany ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = nullinclude - 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
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => 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) 501, 'name' => 'Okrasa do Pierogów', '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' => '2018-07-25', '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) 501, 'ingredient_id' => (int) 33, 'quantity' => '0.52', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7425, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 30, 'quantity' => '1.2', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7426, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 49, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7427, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 501, 'ingredient_id' => (int) 52, 'quantity' => '0.648', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7428, '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) 501 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 1.82 $masterServings = null $imageCount = (int) 0 $i = (int) 3 $quantity = '0.648' $unitName = 'Kg' $unit = 'Kg' $ingredientName = 'Czosnek Granulowany ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null