ErrorException [ Notice ]: A non well formed numeric value encountered

APPPATH/classes/Model/Product.php [ 52 ]

47         if($this->price == "" || $this->price == 0 ) return 0;
48         
49         if ($this->price_promo && is_numeric($this->price_promo))
50             return number_format($this->price_promo, 2);
51         else
52             return number_format($this->price, 2);
53     }
54 
55     public function getDescription() {
56         $language = Request::current()->param('lang', 'ro');
57         if ($language == 'ro') {
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Model/Product.php [ 52 ] » number_format(arguments)

  3. APPPATH/views/public/shop/category.php [ 105 ] » Model_Product->getFinalPrice()

  4. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

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

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

  7. APPPATH/views/public/template.php [ 123 ] » Kohana_View->__toString()

  8. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

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

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

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

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

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

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

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

  16. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment