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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $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.1' $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,100 Kg Kapusta Biała Surowa Poszatkowana (surowiec: 0,125 Kg Kapusta Biała ) 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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.1 $masterServings = null $imageCount = (int) 0 $i = (int) 1 $quantity = '0.01' $unitName = 'Litr' $unit = 'Kg' $ingredientName = 'Kapusta Biała Surowa Poszatkowana' $qualifier = '' $optional = '' $srcIngredient = '(surowiec: 0,125 Kg Kapusta Biała )' $srcIngredientId = (int) 297 $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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,010 Litr Ocet Ryżowy 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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.11 $masterServings = null $imageCount = (int) 0 $i = (int) 2 $quantity = '0.001' $unitName = 'Kg' $unit = 'Litr' $ingredientName = 'Ocet Ryżowy' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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,001 Kg Pieprz Czarny Mielony 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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.111 $masterServings = null $imageCount = (int) 0 $i = (int) 3 $quantity = '0.004' $unitName = 'Kg' $unit = 'Kg' $ingredientName = 'Pieprz Czarny Mielony ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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,004 Kg Cukier Biały Przybliżona Waga 1 Porcji: 0 kgPrzybliżona Waga Całości ( Porcji): 0,115 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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $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.1' $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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $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.1' $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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.1 $masterServings = null $imageCount = (int) 0 $i = (int) 1 $quantity = '0.01' $unitName = 'Litr' $unit = 'Kg' $ingredientName = 'Kapusta Biała Surowa Poszatkowana' $qualifier = '' $optional = '' $srcIngredient = '(surowiec: 0,125 Kg Kapusta Biała )' $srcIngredientId = (int) 297 $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.1 $masterServings = null $imageCount = (int) 0 $i = (int) 1 $quantity = '0.01' $unitName = 'Litr' $unit = 'Kg' $ingredientName = 'Kapusta Biała Surowa Poszatkowana' $qualifier = '' $optional = '' $srcIngredient = '(surowiec: 0,125 Kg Kapusta Biała )' $srcIngredientId = (int) 297 $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.11 $masterServings = null $imageCount = (int) 0 $i = (int) 2 $quantity = '0.001' $unitName = 'Kg' $unit = 'Litr' $ingredientName = 'Ocet Ryżowy' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.11 $masterServings = null $imageCount = (int) 0 $i = (int) 2 $quantity = '0.001' $unitName = 'Kg' $unit = 'Litr' $ingredientName = 'Ocet Ryżowy' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.111 $masterServings = null $imageCount = (int) 0 $i = (int) 3 $quantity = '0.004' $unitName = 'Kg' $unit = 'Kg' $ingredientName = 'Pieprz Czarny Mielony ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = '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
$viewFile = '/var/www/html/recipebook/View/Recipes/view.ctp' $dataForView = array( 'servings' => null, 'recipe' => array( 'Recipe' => array( 'id' => (int) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'name' => 'Surówka z Białej Kapusty po Japońsku', '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-24', '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) 496, 'ingredient_id' => (int) 26, 'quantity' => '0.1', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 0, 'id' => (int) 7362, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 1 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 1422, 'quantity' => '0.01', 'unit_id' => (int) 25, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 1, 'id' => (int) 7363, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 2 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 14, 'quantity' => '0.001', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 2, 'id' => (int) 7364, 'Ingredient' => array( [maximum depth reached] ), 'Unit' => array( [maximum depth reached] ) ), (int) 3 => array( 'recipe_id' => (int) 496, 'ingredient_id' => (int) 24, 'quantity' => '0.004', 'unit_id' => (int) 22, 'qualifier' => '', 'optional' => false, 'sort_order' => (int) 3, 'id' => (int) 7365, '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) 496 $scale = (int) 1 $numberOfReviews = (int) 0 $averageRating = (int) 0 $ingredientsWeight = (int) 0 $ingredientsWeightTotal = (float) 0.111 $masterServings = null $imageCount = (int) 0 $i = (int) 3 $quantity = '0.004' $unitName = 'Kg' $unit = 'Kg' $ingredientName = 'Pieprz Czarny Mielony ' $qualifier = '' $optional = '' $srcIngredient = '' $srcIngredientId = null $resQuantity = (float) 0.1 $srcIngredientMult = (float) 1.25 $srcIngredientQuantity = '0,125' $srcIngredientName = 'Kapusta Biała ' $srcIngredientUnit = 'Kg'