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

APPPATH/views/pages/home.php [ 207 ]

202     } else {
203 
204 
205 
206         // Traiter chaque élément smartlist_items
207         foreach ($data['data']['smartlist_items'] as $item) {
208             $motARemplacer = "medias/";
209             $nouveauMot = "content/";
210             $url = str_replace($motARemplacer, $nouveauMot, $item['translations'][0]['url']); 
211             ?>
212         <div>
  1. APPPATH/views/pages/home.php [ 207 ] » 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/templates/default.php [ 90 ] » 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. MODPATH/saajoo/classes/Controller/Template/Default.php [ 216 ] » Kohana_Controller_Template->after()

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

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

Environment