ErrorException [ Warning ]: Invalid argument supplied for foreach()

APPPATH/views/frontend/caini/details.php [ 9 ]

 4             <h2 class="entry-title pet-name-title"><?php echo $data->name; ?></h2>
 5             <?php $images = unserialize($data->imagini); ?>
 6             <div class="gallery_wrap">
 7                 <div id="slider" class="flexslider">
 8                     <ul class="slides">
 9                         <?php foreach ($images as $img): ?>
10                         <li><img src="<?php echo URL::site('thumbs/w610-h800-q90/'.$img); ?>" /></li>
11                         <?php endforeach; ?>
12                     </ul>
13                 </div>
14                 <?php if (count($images) > 1): ?>
  1. APPPATH/views/frontend/caini/details.php [ 9 ] » 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

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

APPPATH/views/frontend/caini/detailsjs.php [ 3 ]

1 <script>
2 $(window).load(function() {
3     <?php $c=count($images); ?>
4     <?php if ($c>1): ?>
5     $('#carousel').flexslider({
6         animation: "slide",
7         controlNav: false,
8         animationLoop: false,
  1. APPPATH/views/frontend/caini/detailsjs.php [ 3 ] » 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 [ 57 ] » 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