ErrorException [ Notice ]: Trying to get property of non-object

APPPATH/views/products/detail.php [ 31 ]

26                     </a>
27                 </div>
28                 <?php endforeach; ?>
29             </div>
30             <div id="zoom" class="product-image">
31                 <?php echo HTML::image("img/products/medium/".$mainImage->image,
32                             array("id"=>"image-prod", "data-zoom-image"=>URL::base()."img/products/large/".$mainImage->image));?>
33             </div>
34             <div class="product-description">
35                 <div>
36                     <?php echo $product->get_t('description');?>
  1. APPPATH/views/products/detail.php [ 31 ] » 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/template.php [ 169 ] » 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. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

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

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

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

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

  14. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment