ErrorException [ Warning ]: Division by zero

APPPATH/views/frontend/mug.php [ 23 ]

18     $mug_width = 278;
19     $max_width = 278;
20     $max_hight = 300;
21     $margin_top = 35;
22     $margin_left = 20;
23     $x = ($product['prod_size_X']*$max_hight) / $product['prod_size_Y'];
24     $margin_left = ($mug_width - $x + $margin_left) / 2;
25     
26 }$horizontal = true;
27 
28 echo "$navigation_string".' → # '.$product['product_']."<hr>";
  1. APPPATH/views/frontend/mug.php [ 23 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  5. APPPATH/views/frontend/template.php [ 48 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  9. APPPATH/classes/Controller/DefaultTemplate.php [ 77 ] » Kohana_Controller_Template->after()

  10. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_DefaultTemplate->after()

  11. {PHP internal call} » Kohana_Controller->execute()

  12. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  13. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  14. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  15. DOCROOT/index.php [ 120 ] » Kohana_Request->execute()

Environment