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

APPPATH/views/pages/catalogue/products/list.php [ 5 ]

 1 <div class="bg-light"> 2 <div class="album pb-5 pt-1"> 3 <div class="container contentSearchHighlight"> 4 <div class="row"> 5 <?php foreach ($response['response']['docs'] as $k => $v ) {;?> 6 <div class="col-12"> 7 <div class="card mb-1 box-shadow rounded-0">  8  9 <div class="d-flex flex-row">10 <div class="p-2">
  1. APPPATH/views/pages/catalogue/products/list.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/pages/catalogue/products.php [ 38 ]» 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/View.php [ 236 ]» Kohana_View->render()

  9. APPPATH/views/template.php [ 80 ]» Kohana_View->__toString()

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

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

  12. APPPATH/classes/Controller/Website.php [ 329 ]» Kohana_View->render()

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

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

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

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

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

  18. DOCROOT/public/index.php [ 129 ]» Kohana_Request->execute()

Environment