Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I can't uninstall this...
Fatal error: Call to undefined function media_youtube_variable_default() in sites/all/modules/media_youtube/media_youtube.install on line 19
this on -dev modules using git deploy.
Comment | File | Size | Author |
---|---|---|---|
#23 | 100644-1.patch | 2.73 KB | likewhoa |
#22 | 100644-uninstall.patch | 2.73 KB | likewhoa |
#21 | 100644-uninstall.patch | 2.73 KB | likewhoa |
#14 | 1164184-uninstall.patch | 2.85 KB | steinmb |
Comments
Comment #1
effulgentsia CreditAttribution: effulgentsia commentedAre you uninstalling via the UI, via Drush, or some other utility? Are you able to reproduce this from a fresh site installation? If so, can you post the steps (e.g., install Drupal 7.0 using Standard profile, enable modules X,Y,Z (include versions of each one, please), disable modules A,B,C, uninstall media_youtube)? If you feel like making a screencast (e.g., with http://www.techsmith.com/jing/), even better. Thanks.
Comment #2
likewhoa CreditAttribution: likewhoa commenteddoing the uninstall from UI, i will try to reproduce on a fresh install but will take sometime. I cannot make a screencast sorry.
Comment #3
likewhoa CreditAttribution: likewhoa commentedconfirmed on a fresh install of d7, media_youtube cannot be uninstall.
Steps to reproduce.
1. install latest -dev d7
2. use drush to install -dev (git_deploy) media & media_youtube plus dependencies
3. enable modules
4. run update.php
5. confirm modules are enabled then disable them
6. try to uninstall media_youtube
7. WSOD in UI and
under drush.
Comment #4
effulgentsia CreditAttribution: effulgentsia commentedThanks for the details. Can you please elaborate on:
I don't use drush much, and am not familiar with how it relates to git_deploy. Can you post the sequence of drush commands? Thanks.
Comment #5
likewhoa CreditAttribution: likewhoa commentedWell once you have drush installed, from your wwwroot run these commands. You'll also want to have
$options['package-handler'] = 'git_drupalorg';
in your drushrc.phpThe check all media modules are working as expected, then to uninstall run.
It should have reproduced bug now,...
Comment #6
rodrigoaguilerasubscribe
Comment #7
benjohnstone CreditAttribution: benjohnstone commentedsubscribe
Comment #8
BarisW CreditAttribution: BarisW commentedSame here
Comment #9
Jeff Burnz CreditAttribution: Jeff Burnz commentedSame, uninstalling using the UI.
Comment #10
steinmb CreditAttribution: steinmb commentedThis prob. the same issue, only that I reported it in media_vimeo #1180030: Unable to uninstall - Call to undefined function media_vimeo_variable_default()
Edit: And yes, uninstalling from the GUI.
Comment #11
TimelessDomain CreditAttribution: TimelessDomain commentedProblem is in the "foreach" line from the function below
Comment #12
TimelessDomain CreditAttribution: TimelessDomain commentedAdding the following to media_youtube.install allowed me to uninstall it
this was based upon #1169472: Call to undefined function media_variable_default() unable to uninstall media module ( i am not a coder)
Comment #13
notasheep CreditAttribution: notasheep commented#12 worked for me
Comment #14
steinmb CreditAttribution: steinmb commentedIn Drupal 7 have there been changes to the "autoloader" http://drupal.org/node/224333#absolute_includes, this patch try to follow these guidelines and it also try to fix the uninstall problem. The issue is that when the module is disabled, hook_uninstall does not load the .module —file. [1029606].
Comment #15
kreynen CreditAttribution: kreynen commentedI was able to uninstall after @steinmb's patch in #14
Haven't tested past that.
Comment #16
brunorios1 CreditAttribution: brunorios1 commentedsame here
Comment #17
juroon CreditAttribution: juroon commented#14 patch worked for me too.
Comment #18
steinmb CreditAttribution: steinmb commentedComment #19
thebuckst0p CreditAttribution: thebuckst0p commentedThanks, patched worked for me too. Can someone commit?
Comment #20
rv0 CreditAttribution: rv0 commentedpatch worked, but has whitespace errors
Comment #21
likewhoa CreditAttribution: likewhoa commentedrerolled patch from #14
Comment #22
likewhoa CreditAttribution: likewhoa commentederrr small typo on previous patch.
Comment #23
likewhoa CreditAttribution: likewhoa commentedre-rolled an verified on both drush and UI. /me makes note not to submit patches in a hurry.
Comment #24
steinmb CreditAttribution: steinmb commentedComment #25
clashar CreditAttribution: clashar commentedthanks, patch works
Comment #26
anavarreSubscribe
Comment #27
aaron CreditAttribution: aaron commentedcommitted, thanks everyone!
Comment #29
jdewantac CreditAttribution: jdewantac commentedWhat are the steps to apply this patch?
I am stuck here. Please anyone can help?
Thanks
Comment #30
clashar CreditAttribution: clashar commentedjdewantac,
you don't need to apply the above mentioned patch, because it already "committed" - means that is already in latest dev. version
Comment #31
jdewantac CreditAttribution: jdewantac commentedhow to fix the issue then?
I still cannot uninstal media_youtube
thanks clashar
Comment #32
clashar CreditAttribution: clashar commentedjdewantac, you just delete the folder "sites\all\modules\media_youtube" and upload there the latest dev from "http://ftp.drupal.org/files/projects/media_youtube-7.x-1.x-dev.zip"
Comment #33
prShadoko CreditAttribution: prShadoko commentedHi clashar
I got this error and tried to follow your instructions, but it's still not working.
I moved the 'sites/all/modules/media_youtube/' folder away and extracted the content of the 'media_youtube-7.x-1.x-dev.tar.gz' archive to this place but the error persists...
In case it would help...
Thanks for your help.
Comment #34
clashar CreditAttribution: clashar commentedhi prShadoko,
Did you try clear cache or update?
and now what version of module is mentioned in file "sites\all\modules\media_youtube\media_youtube.info"?
Comment #35
prShadoko CreditAttribution: prShadoko commentedOups ! Mea culpa, I extracted the archive to another site... =__="
I feel quite stupid now, but after checking the right site, it works fine.
Thank you for your help and answering so quickly !
Comment #36
clashar CreditAttribution: clashar commentedno problem), good luck!