Posted by rockaholiciam on February 25, 2010 at 8:25pm
26 followers
Jump to:
| Project: | Embedded Media Field |
| Version: | 6.x-2.x-dev |
| Component: | Embedded Video Field |
| Category: | bug report |
| Priority: | major |
| Assigned: | aaron |
| Status: | active |
| Issue tags: | embed video, video flotsam, warning |
Issue Summary
On module activation, I get:
Fatal error: Cannot redeclare emvideo_youtube_info() (previously declared in D:\xampp\htdocs\profiler\sites\all\modules\media_youtube\providers\emvideo\youtube.inc:30) in D:\xampp\htdocs\profiler\sites\all\modules\emfield\contrib\emvideo\providers\youtube.inc on line 46
Comments
#1
same problem...
Fatal error: Cannot redeclare emvideo_youtube_info() (previously declared in /home/content/t/h/o/thomasclucas/html/sites/all/modules/media_youtube/providers/emvideo/youtube.inc:30) in /home/content/t/h/o/thomasclucas/html/sites/all/modules/emfield/contrib/emvideo/providers/youtube.inc on line 46
....
#2
not good. are you using either the latest stable release of the Embedded Media Field module, or one of the dev versions? if not, please let me know which version you're using, as i can't replicate this error.
thanks!
#3
I have this one:
Embedded Media Field 6.x-1.18
Thanks!
#4
Same problem here. Using Emfield 6.x-1.18
#5
Embedded Media Field 6.x-1.18
Media: Youtube 6.x-1.0
Its same files being used in two different modules...I for now replaced the older one in emfield with media: youtube one and removed the file from media: youtube entirely. Don't suppose it is the solution but don't get the error and youtube links are embedding fine.
Isn't there a module that allows remote uploading to youtube?
#6
Having the same problem:
Emfield: 6.x-1.18
Media_youtube: 6.x-1.0
Fatal error: Cannot redeclare emvideo_youtube_info() (previously declared in C:\Xampp\htdocs\drupal\sites\all\modules\media_youtube\providers\emvideo\youtube.inc:30) in C:\Xampp\htdocs\drupal\sites\all\modules\emfield\contrib\emvideo\providers\youtube.inc on line 46
#7
I think that with the lastest version of emfield you do not need this addition module.
#8
This is now fixed; update Embedded Media Field to either the latest DRUPAL-6--1-19 release, or the dev-2 branch.
Thanks,
aaron
#9
I still get this error even with 6-1-19 release and dev2 branch.
#10
hmmm... i'll have to look into that then. what circumstances do you get that, @seaslug?
#11
This is now fixed in emfield-6.x-2.x-dev, but the full youtube.inc file is still included in emfield-6.x-1.19.
#12
ok, i'm confirming #11 as well. moving to correct issue queue, as it's actually an emfield problem.
#13
I reinstalled everything from scratch cant get it to give the error again.
#14
Drupal 6.17
emfield-6.x-1.20 and media_youtube-6.x-1.1 are still giving me this error when I tried to enable. I couldn't even log into my site after this happened. Deleting the youtube module manually through FTP was the only way I could get my site running again
---- edit
Sorry nevermind I totally missed that it's only compatible with 2.0 development version of emfield!
#15
it's only compatible with 2.0 development version of emfield!
Thank you every one...
#16
Since this is just a 6.x-1.x problem, I've marked this as "to be ported". If anyone wants to submit a patch, please do, but otherwise the correct way to fix this is to upgrade to 6.x-2.x-dev (I'll roll a beta release for 2.x tonight)
#17
This problem is not limited to 6.x-1.x. I just installed the 6.x-2.x-dev Emfield module, and then found out that your YouTube module causes the 'redeclare... WSOD problem. So now all the videos on my site are inaccessible. (I am on D6.19)
I just did it a second time and got it again:
Fatal error: Cannot redeclare emvideo_youtube_info() (previously declared in /home/klimatos/public_html/sites/all/modules/media_youtube/providers/emvideo/youtube.inc:22) in /home/klimatos/public_html/sites/all/modules/emfield/contrib/emvideo/providers/youtube.inc on line 46Maybe a strange question, but as you are so sure that this shouldnt happen with this version. I am positive about the version of Emfield I have, but maybe Drupal 'thinks' that I am having an older version. Sorry to be so vague but this reminds me of another problem I had where the updating of modules failed partially. FYi I paste here the schema versions (if that is relevant) of the Emfield modules with status = 1 in my system table:
emfield.module schema version 6204
video_cck 6
emaudio 1
dashplayer_emfield -1
emimage 6002
emvideo 6100
Are those allrightfor the 6.x-2.x-dev version?
#18
I am experiencing the same problem. My system table shows the same schema versions for modules installed. The only difference is that I have no PHP error being logged.
I get a WSOD if I try to enable Media_Youtube with the new version of emfield -6.x-2.x-dev.
Currently running my site with no video... much experimenting has not moved me forward.
#19
Tested the site this afternoon live and on a MAMP setup.
No combination of uninstalling/reinstalling would get the latest 6.x-2.x-dev emfield to accept the latest media_youtube module. Enabling the latter always crashes the site.
I have gone back to emfield 6.x-2.x-dev from June 14th. Site up again and videos playing happily.
#20
I cannot find that june 14th version of Emfield on this site (only a december 2009 version). Is there a way to obtain your version?
Thanks
Theo Richel
#21
The latest dev version of media_youtube contains some broken dependencies on the Zend GData library, using version 6.x-1.1 with emfield 6.x-2.x-dev works fine.
I'm marking as (needs more info) for now- can someone confirm whether emfield 6.x-1.x-dev works with media_youtube 6.x-1.1?
#22
I have tried the combination Emfield 6.x-2.x-dev with the YouTube media module v 6.x-1.x-dev and it gives the same fatal errorb(Cannot redeclare...)
#23
But I have trhe same propblem with the flotsam-module as well:
Fatal error: Cannot redeclare emvideo_dailymotion_info() (previously declared in /home/klimatos/public_html/sites/all/modules/media_video_flotsam/providers/dailymotion.inc:24) in /home/klimatos/public_html/sites/all/modules/emfield/contrib/emvideo/providers/dailymotion.inc on line 35
#24
I noticed that the contents of my the contrib\emvideo\providers folder on my site differed from the on I can download from the project page: main difference: the site has a youtube.inc file.
So I disable Emfield, delete the folder and upload the verion from the project page. I do update.php just to check whether there are any errors (no). Then I enable Flotsam and get the dreaded redeclare error again.
I have the impresion that the database contains some variables leftover from older Emfield installs which it hinder the install of these modules, but I do not know enough about this.
I might completely uninstall Emfield, but I am affraid to lose data. Of course I have a backup, but I do not know specifically which tables will be removed then.
#25
Please just remove your old emfield folder an replace it with the new 6.x-2.0 full release.
#26
And you solved this problem entirely!!!! Thank you very very much!
#27
I've tracked this down to the theme registry: in version 1 of the module, when you activate a module such as Media: YouTube that includes a provider also provided by emfield, when the theme is first built, all previously defined providers are included in theme.inc, at _theme_process_registry(). The themes are initially built with emvideo_theme().
Apparently, this only happens when you first activate one of these modules with version 1. (Doesn't happen to version 2).
I'm looking into a fix for this right now. Hopefully will figure it out soon...
#28
Is there any temporaly solution yet for the problem. I returned back to 1.17 and even don't get to work my videos again...
EDIT:
I got it working this way;
Installed:
Media: YouTube 6.x-1.x-dev
Embedded Media Field 6.x-2.x-dev
Download latest version of Zend from here, > library. You just see one folder called 'Zend'. Copy this Zend folder to your sites/all/libraries.
Normally your youtube fields / videos will work again. If not, disable the Media: Youtube module, uninstall it and re-install it. That did the lot for me. Hope I could help
#29
I had the same error message after upgrading to emfield-6.x-2.1 and installing media_youtube-6.x-1.1.
The problem disappeared after I disabled/re-enabled the modules and they are now working correctly.
#30
Same problem. Tried uninstalling and reinstalling, but still have the problem.
emfield 2.1
media_youtube 1.1 or 1.x-dev
drupal 6.19
#31
Should read more carefully. #25 works for me ...
"Please just remove your old emfield folder an replace it with the new 6.x-2.0 full release."
#32
Working with emfield-6-x.2.1 and media_youtube 6.x.1-1 only after apply the #25.
#33
I installed the latest versions from emfield and media_youtube yesterday. I do not get this error, but my error log shows these errors:
include_once() [function.include]: Failed opening 'sites/all/modules/emfield/contrib/emvideo/providers/youtube.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/includes/theme.inc on line 613.
The reason is that the youtube.inc file is not at that location (that folder only includes example.inc.txt and zzz_custom_url.inc). The youtube.inc file sits at sites/all/modules/media_youtube/providers/emvideo/youtube.inc
To get rid of this error, I copied the include file from media_youtube into the emfield provider folder which then caused the redeclare provider error! After I deleted that file again, the videos worked again and the error on the site disappears. However, I still get the error in the error log. How can I fix that?
Regards, Jens
#34
I'm having the same issue and also have not found an easy fix for this.
"I installed the latest versions from emfield and media_youtube yesterday. I do not get this error, but my error log shows these errors:
include_once() [function.include]: Failed opening 'sites/all/modules/emfield/contrib/emvideo/providers/youtube.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/includes/theme.inc on line 613.
The reason is that the youtube.inc file is not at that location (that folder only includes example.inc.txt and zzz_custom_url.inc). The youtube.inc file sits at sites/all/modules/media_youtube/providers/emvideo/youtube.inc
To get rid of this error, I copied the include file from media_youtube into the emfield provider folder which then caused the redeclare provider error! After I deleted that file again, the videos worked again and the error on the site disappears. However, I still get the error in the error log. How can I fix that?
Regards, Jens"
#35
The flotsam modules, Media: YouTube, and several other related modules WILL BREAK YOUR SITE if you use them with Embedded Media Field version 6.x-1.x. YOU MUST UPGRADE to version 6.x-2.x to use any of those modules.
Please follow the steps outlined in http://drupal.org/node/672472 when upgrading any module. In this case, especially ensure to follow step #6: "Using your ftp or similar program, delete the module's entire folder on the server. It is usually in /site/all/modules/."
If you don't do that first, your site could break, due to the unresolved bug at #725940: Cannot redeclare provider files when enabling media: provider modules.
#36
#25 worked, but it sounds like there's some difficulty in duplicating the error and maybe my experience will help.
I have two sites with shared databases. One site had a Youtube video posted, the other did not have any videos posted. After updating to emfield 6.x-2.2, the site with the video said that there was a problem with the site and I should check the status updates. That's where it said I needed to add the media:youtube module. So I did that, and it still said there was a problem and the status update said the same thing. So, I activated the media:youtube module, and that's when I got the redeclare error. The site without the video never had any problem/status update error after updating emfield.
#37
k_and_j,
on the site without the video. Do you get this error in the logs:
include_once() [function.include]: Failed opening 'sites/all/modules/emfield/contrib/emvideo/providers/youtube.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/includes/theme.inc on line 613.
Or is everything working fine for you?
#38
Sorry... I didn't see this and haven't worked on the site in awhile. I think I remember getting the "already declared" error in the OP. But everything is working fine now (and I just updated to the latest and still OK).
#39
subscribing - getting a WSOD kind of like this
#40
Just updated Drupal core to 6.20 from 6.19 and the error is back:
An error occurred. http://mysite.com/update.php?id=79&op=do <br /> <b>Fatal error</b>: Call to undefined function media_youtube_variable_get() in <b>/home/mysite/public_html/drupal/sites/all/modules/media_youtube/media_youtube.install</b> on line <b>252</b><br />Interestingly, this is now only happening on the site without a youtube video posted (see my post #36 - this is opposite to what was happening before).
I tried #25 again with the currently installed emfield (6.x-2.3) and also with an upgraded emfield (6.x-2.4).
(note that because I am updating core, non of the modules are enabled)
#41
subscribe
#42
I may have found the solution to some peoples' problems here.
I just upgraded emfield from 6.x-1.x to the latest 6.x-2.x branch. Afterwards, I was also getting the WSOD, with this message:
Pay attention to the second line. The folder
emfield/contrib/emvideo/providers/is in the 1.x branch, but not in the 2.x branch.What had happened is that I had just used my FTP program to overwrite the old module, without deleting it from the server first. As a result, the old "providers" folder was still there - including the functions that are now moved to separate modules, which caused the WSOD.
After I deleted the emfield folder and re-uploaded it, everything worked fine.
Now, I normally don't have to do this when upgrading modules (usually not even between branches). So you may want to make it absolutely, crystal clear that you need to delete any and all emfield files before you make the switch.
#43
Thank you. See #5 above for the solution that worked for me.
#44
Video Flotsam problem.
I'm not getting the redeclare error, but i do get warnings like this for every Video Flotsam entry when I enable the module:
# warning: include_once(sites/all/modules/emfield/contrib/emvideo/providers/dailymotion.inc) [function.include-once]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/eclipse_projects_mamp/mycpd/includes/theme.inc on line 283.# warning: include_once() [function.include]: Failed opening 'sites/all/modules/emfield/contrib/emvideo/providers/dailymotion.inc' for inclusion (include_path='.:/Applications/MAMP/bin/php5.2/lib/php') in /Applications/MAMP/htdocs/eclipse_projects_mamp/mycpd/includes/theme.inc on line 283.
None of those entries become available as embeddable video types. I'm just trying to embed an .flv using an embed code created by the FlashVideo module. So I presume I need the Custom URL embed type.
I have deleted my Emfield folder completely and updated to the dev version.
There is no folder sites/all/modules/emfield/contrib/emvideo/providers/, so it's not surprising that the include fails... the providers are all in the video flotsam folder.
Any ideas?
#45
#44: did you clear the caches?
#46
Yes, I flushed all caches. Whenever I do that I get the warning messages.
#47
I also forgot to mention that the YouTube, Vimeo, Ted and Flickr plugins are working fine.
#48
Mikekelly, you should open a new issue for your problem. It doesn't seem related to this issue. Sorry I can't offer anything but general advice right now: read over the docs again and make sure you have all the required provider modules installed. Good luck!
#49
OK, I'll open a new issue.