By Helenag on
Hello,
I'm using drupal 5.3 and video module 5.x.1.x-dev. When users try to upload a video, this error occurs:
Fatal error: Cannot redeclare _video_common_get_player() (previously declared in /var/www/drupal2/modules/video/includes/common.inc:18) in /var/www/drupal2/modules/video/includes/common.inc on line 51
I don't understand this... I was thinking that maybe it was a incompatibility with modules that I installed after this one, but I removed them and the error stays :-S
And the fact that it says that it is redeclaring the function inside the function, how is it possible?
function _video_common_get_player($node) {
switch (_video_get_filetype($node->vidfile)) {
case 'divx':
return theme('video_play_divx', $node);
case 'mov':
case 'mp4':
case '3gp':
case '3g2':
case 'mpg':
return theme('video_play_quicktime', $node);
case 'rm':
return theme('video_play_realmedia', $node);
case 'flv':
return theme('video_play_flash', $node);
case 'swf':
return theme('video_play_swf', $node);
case 'dir':
case 'dcr':
return theme('video_play_dcr', $node);
case 'asf':
case 'wmv':
case 'avi':
return theme('video_play_windowsmedia', $node);
case 'ogg':
return theme('video_play_ogg_theora', $node);
case 'youtube':
return theme('video_play_youtube', $node);
case 'googlevideo':
return theme('video_play_googlevideo', $node);
default:
drupal_set_message('Video type not supported', 'error');
break;
}
}
Help much appreciated! :-S
Thanks in advance,
Troiana