Closed (duplicate)
Project:
Media: YouTube
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2013 at 17:29 UTC
Updated:
13 Jun 2014 at 13:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xjsjag commentedWe're still having this issue with update 7202, but there doesn't seem to be any other information about it, other than the link you posted to the closed issue. Is a patch still in the works?
Comment #2
Jeff Burnz commentedI get an error when running 7202 also, undefined function
file_type_save()An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://brady:8888/update.php?op=selection&token=hO2Pihl2LOwNgiJtRedVBTbjAHMnOi3lj-fGzOTXjWw&id=7&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function file_type_save() in ~/sites/all/modules/media_youtube/media_youtube.install on line 170Comment #3
aaron commentedHere you go.
Comment #4
aaron commentedI have committed this patch.
Comment #5
anavarreUnfortunately, updating to RC2 - while the patch is indeed there - still throws this error.
Comment #6
EventHorizonRT commentedI resolved modifying from:
file_type_save($video_type);
file_save($video_type);
in my case file_type_save was the problem.
I hope that my contribution has been helpful
Regards
Comment #7
thinkdrupal commented#6 patch resolved the issue for me. Thanks.
Comment #8
vegantriathleteI don't think that #6 *solves* the problem at all. file_save is a function defined by Drupal core inside of includes/file.inc. file_type_save is defined by the 7.x-2.x branch of the stand alone file_entity project.
What version of Media are you using?
Are you using the file_entity stand alone project?
It appears that if you are using the 7.x-2.x branch of Media: YouTube you also need to be using the 7.x-2.x branches of Media and File Entity
Comment #9
phai commentedYes, I solved updating these three modules:
- Media to 7.x-2.0-unstable7
- File entity to 7.x-2.0-unstable7
- Media: YouTube to 7.x-2.0-rc2
(I hope they becomes stable asap... :D )
Thanks
Comment #10
groovedork commentedI get this perhaps related error:
On updating a recently upgraded (6->7) site.
media_youtube 7.x-2.0-rc2
Media 1.0 (most recent version)
I don't want to update my media and file-entity modules to the 2.0 version as they are still unstable. How do I fix this situation now? I have a database backup of just before the update. Could I put that back and also place the older version of the module in the right directory?
Comment #11
vegantriathlete@groovedork
You need to use Media: YouTube 7.x-1.0-beta3
Comment #12
Gaelan commentedIn that case, the info file should read:
Comment #13
damienmckenna@gaelan: You mean like this?
This should probably have something similar added to the v7.x-1.x branch to indicate compatibility with Media 7.x-1.x.
Comment #14
Gaelan commentedYup. If Media: YouTube 1.x won't work with Media 2.x, then we would want to do this to 1.x too.
Comment #15
taonac commented#6 fixed it.
changed line 172 from file_type_save($video_type);
to file_save($video_type);
Thanks SonPeo
Comment #16
SgtHP commented#6 fixed it
it's work. thx.
Comment #17
vegantriathlete@taonac & @SgtHP:
Read my comment in #8! #6 does NOT fix it. It just points things to a totally different function (that is defined in core). Look at the comments in the thread. You need to either be on all the 2.x versions or all the 1.x versions. You should not mix and match.
Comment #18
Infoloko commentedAnother update error:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://xxxxxxx/update.php?op=selection&token=IWCuhIsPUba7Ol_3qnVtCIaLGhj... StatusText: OK ResponseText: Fatal error: Call to undefined function file_type_save() in xxxxxxx\sites\all\modules\media_youtube\media_youtube.install on line 172
Comment #19
taonac commented@ vegantriathlete
OK i get what you're saying. So does pointing to a different function( #6) have any negative implications. Does it potentially slow down performance or something we should keep a look out for? Thanks for rectifying by the way.
Comment #20
vegantriathlete@taonac: Pointing to a different function means that whatever was *supposed* to be happening by calling the function in the .install file is not happening. I can't say exactly what effect this will have as I didn't dig through the code or run any experiments. I chose to resolve the issue by using all the 7.x-1.x releases. This means that I am NOT using the stand alone file_entity project; I am using the one that is bundled with media. I am using only the 7.x-1.x releases of media and media_youtube.
Comment #21
aiphesidem here for an upgrade drupal core version :
trying 2.0 dev version and same issue
Comment #22
JRopers commented#6 worked well for me...
Comment #23
Slovak commented+1 for #6
Comment #24
aiphes#6 : where do i modify theses lines ?
Comment #25
Slovak commentedThe error states:
Call to undefined function file_type_save() in /path/to/your/drupal/modules/media_youtube/media_youtube.install, line 172So you need to locate media_youtube.install and edit line 172.
Comment #26
Jeff Burnz commentedI actually just commented out the entire update in the install file, rugged I know, but it was preventing other updates from firing on one particular site, no choice, had to disable this.
Comment #27
gmcmahon commented#6 worked for me
Comment #28
nathaniel commentedInstall:
http://drupal.org/project/file_entity
Comment #29
dave reidThis will be resolved with #1949520: Remove media_youtube_update_7202() and media_youtube_file_default_types_alter()
Comment #30
mimmus commentedI had the same problem:
#6 worked for me too
Comment #31
momfer commentedsame problem:
#6 worked for me too
Comment #32
brian.sanchez commented#6 fixed it.
changed line 172 from file_type_save($video_type);
to file_save($video_type);
this worked for me!, thank you
Comment #33
mynameiscorey commentedTo everyone who has replied #6 worked for me! Hooray! You are substituting a function for a completely unrelated one. Sure the fatal error is fixed, but you have no idea how differently this function is writing data to you database than the intended function would. It's like swapping 'print $var;' for 'print_r($var)'. They have similar names but achieve completely different things.
Comment #34
mynameiscorey commentedFWIW, installing file_entity 7.x-2.0-unstable7 allows me to run update.php and successfully execute update #7202 without a fatal error. I understand people are hesitant to use a module with 'unstable' in the release name but at least the code in the update hooks will achieve it's intended result, sans hacks.
Comment #35
dave reidA reminder for everyone that this has been fixed already by simply upgrading to Media: Youtube 7.x-2.x-dev with #1949520: Remove media_youtube_update_7202() and media_youtube_file_default_types_alter(). You do not need the patch in #6.
Comment #36
BChandran commentedI was getting the following error but #6 fixed it. Thank you SonPeo:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: .../update.php?op=selection&token=cjZwCZTBwo6FedDAvXFhyQk9nGnCF1IE2qLzQTxTUeg&id=503&op=do StatusText: parsererror ResponseText: Fatal error: Call to undefined function file_type_save() in .../public_html/sites/all/modules/media_youtube/media_youtube.install on line 172
Comment #37
anavarre@BChandran - This issue has been obsoleted per #29 and #35. Note that Media: YouTube RC3 is shipping with the fix.
Comment #38
shahidbscs commentedupdate file_entity & this resolve my issue.