Fatal error: Call to undefined function styles_default_containers() in /home/hoslot5/public_html/sites/all/modules/styles/contrib/styles_ui/styles_ui.module on line 24

Can't uninstall :/

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sea4’s picture

getting the same error too.

dilari’s picture

although it is not a real fix..

adding

// A registry of variable_get defaults.
require_once ( dirname(__FILE__) . '/includes/styles.variables.inc');

to styles.install helps uninstalling it.

see also: media module issues > http://drupal.org/node/1169472

mgifford’s picture

Wow, I was just about to paste in:

function styles_uninstall() {
  include_once('includes/styles.variables.inc');
  foreach (styles_variable_default() as $variable => $value) {
    styles_variable_del($variable);
  }
  return array(array('success' => TRUE, 'query' => "Deleted all variables in the Styles namespace."));
}

Which does the same thing. Hopefully this gets in the next release!

andypost’s picture

Error: Call to undefined function styles_variable_default() in /var/www/d7.git/sites/all/modules/styles/styles.install, line 19

+1 to #2

hswong3i’s picture

hswong3i’s picture

Component: Styles UI » Code
Status: Active » Needs review
FileSize
450 bytes

Patch via styles-7.x-2.x GIT, tested with drupal-7.4 and uninstall successfully without WSOD.

fasdalf@fasdalf.ru’s picture

+1 to #7! Same problem was with media.module. This patch works for me.

Devin Carlson’s picture

Same as #7. Had this issue with media.module too. The patch in #6 allowed me to uninstall the module.

bforchhammer’s picture

Status: Needs review » Reviewed & tested by the community

Same problem as #4, patch in #6 solves the issue for me.

Ankabout’s picture

Patch worked for me too.

steinmb’s picture

Priority: Normal » Critical

Works for me to. Could someone pls. commit this simple but important one liner patch?

aaron’s picture

Status: Reviewed & tested by the community » Fixed

committed. thanks everyone!

steinmb’s picture

Ah, thanks Aaron for your promptly reply, and commit :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

armanalir’s picture

Same problem as #4, patch in #6 solves the issue for me.

Thanks..

MacMladen’s picture

Status: Closed (fixed) » Reviewed & tested by the community

Patch at #6 works as it should, not just comment out to skip variable removal. Why is not committed as it is obviously a bug and a solution is that patch?

scottrouse’s picture

Status: Reviewed & tested by the community » Fixed

The patch was committed in comment #12 above. You'll need to install the latest dev version to benefit from the fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.