ErrorException [ Warning ]: array_slice() expects parameter 1 to be array, null given

APPPATH/classes/Helper/Banners.php [ 252 ]

247248 $content = curl_exec($ch);249 curl_close($ch);250251 $result = json_decode($content, true);252 $result = array_slice($result, 0, $limit);253 Cache::instance()->set($cache_key, $result, Date::MINUTE);254 }255256 return $result;257 }
  1. {PHP internal call}» Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Helper/Banners.php [ 252 ]» array_slice(arguments)

  3. APPPATH/classes/Controller/Generic/Frontpage.php [ 189 ]» Helper_Banners::getExternalFeedItems(arguments)

  4. APPPATH/classes/Controller/Article.php [ 27 ]» Controller_Generic_Frontpage->before()

  5. SYSPATH/classes/Kohana/Controller.php [ 69 ]» Controller_Article->before()

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

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

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

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

  10. DOCROOT/index.php [ 158 ]» Kohana_Request->execute()

Environment