ErrorException [ Warning ]: count(): Parameter must be an array or an object that implements Countable

APPPATH/views/frontend/galerie/details.php [ 5 ]

 1 <div class="posts-wrap">
 2     <article class="rescue_pet">
 3         <div class="entry-content clearfix">
 4             <h2 class="entry-title pet-name-title"><?php echo $data->{__('DB:name')}; ?></h2>
 5             <?php $images = unserialize($data->imagini); $images_count = count($images); ?>
 6             <div class="gallery_wrap">
 7                 <?php /*
 8                 <div id="slider" class="flexslider">
 9                     <ul class="slides">
10                         <?php $lazy_range = (($images_count - 1) < 2) ? range(2, $images_count) : range(2, $images_count - 1); ?>
  1. APPPATH/views/frontend/galerie/details.php [ 5 ] » Kohana_Core::error_handler(arguments)

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

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

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

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

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

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

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

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

  10. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Frontend->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 [ 1000 ] » Kohana_Request_Client->execute(arguments)

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

Environment