ErrorException [ Notice ]: Undefined index: v

APPPATH/classes/HTML.php [ 30 ]

25     public static function youtube_embed_url($url) {
26         if (strpos($url, 'embed') !== false) {
27             return $url;
28         }
29         parse_str(parse_url($url, PHP_URL_QUERY), $vars);
30         return 'http://www.youtube.com/embed/'.$vars['v'];
31     }
32 }
  1. APPPATH/classes/HTML.php [ 30 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/product-detail.php [ 35 ] » HTML::youtube_embed_url(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

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

  5. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  6. APPPATH/views/template.php [ 47 ] » Kohana_View->__toString()

  7. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

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

  9. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

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

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

Environment