ErrorException [ Notice ]: Array to string conversion

APPPATH/views/layout/visual.php [ 20 ]

15         <?php
16         // Could be more than one image, check if array
17         if (is_array($visual))
18         {
19             foreach ($visual as $i => $url):
20                 echo HTML::image(Url::base().$url, array(
21                       'alt' => 'image',
22                         )
23                 );
24             endforeach;
25         }
  1. APPPATH/views/layout/visual.php [ 20 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

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

  4. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

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

  6. SYSPATH/classes/kohana/view.php [ 61 ] » 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/website.php [ 101 ] » Kohana_Controller_Template->after()

  10. {PHP internal call} » Controller_Website->after()

  11. SYSPATH/classes/kohana/request/client/internal.php [ 135 ] » ReflectionMethod->invoke(arguments)

  12. SYSPATH/classes/kohana/request.php [ 964 ] » Kohana_Request_Client_Internal->execute(arguments)

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

Environment

ErrorException [ Warning ]: file_get_contents(http://vimeo.com/api/v2/album/1761421/videos.json): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

APPPATH/classes/controller/vimeo.php [ 14 ]

 9 class Controller_Vimeo extends Controller_Website {
10 
11     public function action_feed()
12     {
13         // Grab videos from Vimeo
14         $data = file_get_contents('http://vimeo.com/api/v2/album/1761421/videos.json');
15        
16         // Return view with videos
17         $this->response->body(View::factory('vimeo')
18                 ->set('data', json_decode($data)));
19     }
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/controller/vimeo.php [ 14 ] » file_get_contents(arguments)

  3. {PHP internal call} » Controller_Vimeo->action_feed(arguments)

  4. SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)

  5. SYSPATH/classes/kohana/request.php [ 964 ] » Kohana_Request_Client_Internal->execute(arguments)

  6. APPPATH/views/home_social_tabs.php [ 51 ] » Kohana_Request->execute()

  7. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  8. SYSPATH/classes/kohana/view.php [ 359 ] » Kohana_View::capture(arguments)

  9. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  10. APPPATH/views/layout/standard.php [ 11 ] » Kohana_View->__toString()

  11. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  12. SYSPATH/classes/kohana/view.php [ 359 ] » Kohana_View::capture(arguments)

  13. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  14. APPPATH/views/template.php [ 64 ] » Kohana_View->__toString()

  15. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  16. SYSPATH/classes/kohana/view.php [ 359 ] » Kohana_View::capture(arguments)

  17. SYSPATH/classes/kohana/controller/template.php [ 44 ] » Kohana_View->render()

  18. APPPATH/classes/controller/website.php [ 101 ] » Kohana_Controller_Template->after()

  19. {PHP internal call} » Controller_Website->after()

  20. SYSPATH/classes/kohana/request/client/internal.php [ 135 ] » ReflectionMethod->invoke(arguments)

  21. SYSPATH/classes/kohana/request.php [ 964 ] » Kohana_Request_Client_Internal->execute(arguments)

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

Environment