Fatal error: Call to undefined function media_youtube_variable_default() in /opt/lampp/htdocs/sns/sites/all/modules/contrib/media_youtube/media_youtube.install on line 19

Comments

rajarju’s picture

Error showed up when i was trying to uninstall the module

rojesaga’s picture

Title: Cannot Unintstall » Same for me can´t unintstall

Same issue, I try to uninstall the module and shows:

Fatal error: Call to undefined function media_youtube_variable_default() in .../sites/all/modules/media_youtube/media_youtube.install on line 19

Drupal 7.10

jkaine’s picture

I can confirm this error in the alpha... and provide a solution...

This issue seems fixed in the Aug 4 dev version-- I'm not sure if the uninstall routines are complete or do what they should, but the fatal error call is no longer happening.

To uninstall, you need to upgrade to the dev version, then run update.php, then you can uninstall via the Uninstall tab in Modules.

iyan’s picture

My solution is by manually remove youtube_media folder in /sites/all/modules/

fasdalf@fasdalf.ru’s picture

Title: Same for me can´t unintstall » uninstall error
Status: Active » Needs review

Change media_youtube.install

 function media_youtube_uninstall() {
  drupal_load('module', 'media_youtube');
  foreach (media_youtube_variable_default() as $variable => $value) {
    media_youtube_variable_del($variable);
  }
  return array(array('success' => TRUE, 'query' => "Deleted all variables in the Media: YouTube namespace."));
}
dave reid’s picture

Status: Needs review » Closed (duplicate)
armanalir’s picture

Thank you #5 Solved my problem..