Hello.
I have a problem.

Warning: class_implements() [function.class-implements]: Class MediaYouTubeStreamWrapper does not exist and could not be loaded в функции file_get_stream_wrappers() (строка 140 в файле /public_html/dm/includes/file.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument в функции file_get_stream_wrappers() (строка 140 в файле /public_html/dm/includes/file.inc).

how fix this?

CommentFileSizeAuthor
#3 1308464.patch526 bytesogi

Comments

Doc.Tyr’s picture

I've got the same problem.

tomecruzz’s picture

Warning: class_implements() [function.class-implements]: Class MediaYouTubeStreamWrapper does not exist and could not be loaded in file_get_stream_wrappers() (line 140 of F:\Program Files\EasyPHP5.2.10\www\magharib.com\magharib.com\includes\file.inc).

Warning: in_array() [function.in-array]: Wrong datatype for second argument in file_get_stream_wrappers() (line 140 of F:\Program Files\EasyPHP5.2.10\www\magharib.com\magharib.com\includes\file.inc).

ogi’s picture

Status: Active » Needs review
StatusFileSize
new526 bytes

Got the same problem when updating from alpha4 to latest beta. Patch is attached.

include_once(/srv/drupal/sites/all/modules/media_youtube/includes/includes/MediaYouTubeStreamWrapper.inc): failed [warning]
to open stream: No such file or directory MediaYouTubeStreamWrapper.inc:8
include_once(): Failed opening
'/srv/drupal/sites/all/modules/media_youtube/includes/includes/MediaYouTubeStreamWrapper.inc' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') MediaYouTubeStreamWrapper.inc:8
class_implements(): Class MediaYouTubeStreamWrapper does not exist and could not be loaded file.inc:136
in_array() expects parameter 2 to be array, boolean given file.inc:136
RobW’s picture

Status: Needs review » Fixed

In the warning include_once(/srv/drupal/sites/all/modules/media_youtube/includes/includes/MediaYouTubeStreamWrapper.inc): failed [warning], includes/includes/ is the problem. It should be just includes/.

This was fixed in #1733654: Youtube video doesn't display render file as original video, but recently I removed the bridge MediaYouTubeStreamWrapper.inc altogether in #1178180: Delete media_youtube/MediaYouTubeStreamWrapper.inc. If anyone is still updating between these old betas, changing the include location should fix these errors.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.