hello,
i have this message when i try to add a youtube vidéo to a node :
Warning : get_headers() [function.get-headers]: URL file-access is disabled in the server configuration dans MediaInternetYouTubeHandler->valid_id() (ligne 27 dans /homepages/5/d406644945/htdocs/yopen/sites/all/modules/media_youtube/includes/MediaInternetYouTubeHandler.inc).
Warning : get_headers() [function.get-headers]: This function may only be used against URLs. dans MediaInternetYouTubeHandler->valid_id() (ligne 27 dans /homepages/5/d406644945/htdocs/yopen/sites/all/modules/media_youtube/includes/MediaInternetYouTubeHandler.inc).
The YouTube video ID is invalid or the video was deleted.
i tried with many youtube links and all brang me back to this notice .
Do u have an idea from where the problem comes ? thank u all by advance..
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1480556-use-drupal-http-request.patch | 829 bytes | dave reid |
| #3 | 1480556-use-drupal-http-request.patch | 763 bytes | dave reid |
Comments
Comment #1
dave reidMoving this over to the Media: Youtube issue queue.
Comment #2
dave reidBetter title
Comment #3
dave reidWe should be using drupal_http_request() instead of the way-less functional get_headers() for this. Please test the following patch.
Comment #4
dave reidComment #5
dave reidFixed this function should still return TRUE.
Comment #6
dave reidWithout this patch I cannot also use the media_youtube module - it's completely non-functional for adding new videos. Committed #5 after testing to Git: http://drupalcode.org/project/media_youtube.git/commit/a3da322