Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Unable to uninstall, PHP Fatal error: Call to undefined function media_vimeo_variable_default() in /drupal-7.2/sites/all/modules/media_vimeo/media_vimeo.install on line 19
What I do not get, the function is included in media_vimeo_module include_once('includes/media_vimeo.variables.inc');
so this should not happen, right? Including media_vimeo.variables.inc one more time works as a work around but that is not the way to do this. What is going on, is this a core issue?
Comment | File | Size | Author |
---|---|---|---|
#5 | 1180030-uninstall-take2.patch | 1.77 KB | steinmb |
#3 | 1180030_include_issue.patch | 1.55 KB | steinmb |
Comments
Comment #1
kreynen CreditAttribution: kreynen commentedDuplicate of #1164184: Fatal error while uninstalling: undefined function media_youtube_variable_default()
Comment #2
steinmb CreditAttribution: steinmb commentedThanks, cross posted to that issue, but leaves this open until we see some progress on the issue and that I'm able to get it confirmed that they are duplicates. That is, I know 99.9% that they are then they way they include functions files are identical.
Comment #3
steinmb CreditAttribution: steinmb commentedHave been seeing these missing included in a lot of places, media module, media_youtube, media_vimeo. What's going on? The files get included, alright but when the included files/function are no where to be found. In Drupal 7 have there been changes to the "autoloader" http://drupal.org/node/224333#absolute_includes
Rolling a patch that follow these guidelines, and that also actually seems to fix this issue.
Comment #4
steinmb CreditAttribution: steinmb commentedMight the problem originate from this issue #1029606: Regression: Not loading the .module file causes a fatal error when uninstalling some modules (as does loading it) that just got commited by webchick.
Comment #5
steinmb CreditAttribution: steinmb commentedDoh! Never upload patches after been working for 16h. Pls. ignore #3, missed a few but important lines that where uncommitted, also the issue refereed to in #4 contained a patch with hints on best practice during uninstall that I implemented.
Comment #6
steinmb CreditAttribution: steinmb commentedAnyone with permission, could we get this committed pretty please?
Comment #7
kreynen CreditAttribution: kreynen commentedcommitted http://drupalcode.org/project/media_vimeo.git/commit/45cd2de
Comment #8
kreynen CreditAttribution: kreynen commented