I just installed the Video and Flashplayer plugins to try to feed video from an amazon s3 storage service.

Whenever I go to the "Amazon S3" tab on the Video configuration page (http://localhost/mysite/admin/settings/video/amazon_s3), the site returns a white page with this error in the console:

[16-Sep-2010 22:01:21] PHP Fatal error: Cannot redeclare class S3 in sites/all/modules/video/cdn/video_s3/includes/S3.php on line 37

.... HELP? :/

Just downloaded RC4 yesterday...

CommentFileSizeAuthor
#1 S3-cannot-redeclare-class.patch511 bytesMilan0

Comments

Milan0’s picture

Status: Active » Needs review
StatusFileSize
new511 bytes

It is probably because you also have the CDN module installed, i also encountered this issue.

i propose this to be crossposted to the CDN module.

Patch included.

hypertext200’s picture

Status: Needs review » Reviewed & tested by the community

If you already enabled some modules which uses S3 calss this might happen, I wil fix it. Thanks for the patch.

hypertext200’s picture

Status: Reviewed & tested by the community » Needs review

This should check when we include this file, isnt it?

Milan0’s picture

Yes you are right, would be better, no need to include the file when it's not needed.

hypertext200’s picture

Status: Needs review » Fixed

fixed in dev

hypertext200’s picture

Status: Fixed » Closed (fixed)
aphroditehathor’s picture

Project: Video » CDN2 Video
Version: 6.x-4.1-rc4 » 6.x-1.9
Assigned: Unassigned » aphroditehathor
Priority: Major » Critical
Status: Closed (fixed) » Needs work
Issue tags: +dash media player, +mediafront

Hi. I'm new to this, so I might not be getting things like "priority" and "status" correctly.
Also, I couldn't even find the right "project" category. Even though, there is "http://drupal.org/project/dashplayer", when i put "dashplayer" in the "Project" field the form tells me that there is no project match. total confusion.

I'm trying to set up the Dash Media Player and the MediaFront modules. I followed step by step the instructions at http://www.mediafront.org/documentation/drupaldashplayer/dashplayervideos. However, when I get to a certain point in the instructions, Drupal gives me this message:

Fatal error: Cannot redeclare class S3 in /MYSITE.COM/sites/all/modules/video/cdn/video_s3/includes/S3.php on line 37.

I don't know much about code, but I figured that the patch provide above should be inserted somewhere in S3.php. So, I copied (exactly as written in the patch) the php code of the patch and inserted it in S3.php right before line 37.

After doing the above I get the following message:
Parse error: syntax error, unexpected T_STRING in /MYSITE.COM/sites/all/modules/video/cdn/video_s3/includes/S3.php on line 37.

Any help would be greatly appreciated. Thanks.

aphroditehathor’s picture

Assigned: aphroditehathor » Unassigned
IncrediblyKenzi’s picture

Project: CDN2 Video » Video
Version: 6.x-1.9 » 6.x-4.x-dev

This is not a CDN2 Video bug. Assigning this back to the Video project.

Milan0’s picture

Status: Needs work » Fixed

No need to re-open, issue was already fixed in dev.

Status: Fixed » Closed (fixed)
Issue tags: -Amazon S3, -dash media player, -mediafront, -video s3

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