I don't know if this issue is allready a known fact, but when I try to uninstall styles or one of the by-products the unstall interface gives me a blank page.
When I turn on error reporting it says this:
With the UI:
Fatal error: Call to undefined function styles_presets() in /sites/all/modules/styles/contrib/styles_ui/styles_ui.module on line 25

With File Styles:
Fatal error: Call to undefined function file_directory_path() in /sites/all/modules/styles/contrib/file_styles/file_styles.install on line 23

I'm not a developer, so I can't debug this any more then this, but I do feel obligated to report this.

I hope someone can make something of this.

Comments

Frits1980’s picture

Version: 7.x-1.0-alpha4 » 7.x-2.0-alpha4

I just removed te style module by deleting it from the module folder. Since an update with drush or the UI to 2.0-x did not work. I installed 2.0-alpha4 after this. When I try to to uninstall that I get the following error:
Styles UI:
Fatal error: Call to undefined function styles_default_containers() in /sites/all/modules/styles/contrib/styles_ui/styles_ui.module on line 25

File Styles thought works fine now and uninstalled perfectly. As far as I can see. Did'nt look in the DB to check.

draganeror’s picture

I had same problem with 7.x-2.0-alpha4 even with 7.x-2.0-dev, and there is specific order for uninstall.

To uninstall Styles and Styles UI you have to leave Styles checked at admin/modules, and only uncheck Styles UI, save settings. Then go to admin/modules/uninstall and uninstall Styles UI. After that go back to admin/modules and uncheck Styles, save settings, then go to admin/modules/uninstall and uninstall Styles.

This works for me.

Frits1980’s picture

Nice workaround, thanx for that!

sashkernel’s picture

El22or, thanks for solution.
Worked well for me.

aaron’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev

this makes no sense. styles ui is dependent on styles, as is file_styles. shouldn't even be allowed to uninstall styles until those two have been uninstalled :(

ykhadilkar’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha5

Keeping styles module checked (enabled) worked for me too. Thanks.

NPC’s picture

I had exactly the problem described in #1, and the solution in #2 helped me, thank you very much, @el22or!

mightaswell’s picture

I was having the same problem, I tried the solution in #2 and it appeared to work, but I still see styles, file styles, and style UI on the modules listing page and folders in ../sites/all/modules/.. aren't those deleted when you uninstall? or do I have to manually delete them?

davidneedham’s picture

I agree with everyone else - same problem as #1, #2 worked... but this shouldn't happen.

@mightaswell - Uninstalling a module simply removes / undoes the database changes that it makes when first installing the module. You have to manually delete the module files yourself.

zambrey’s picture

Version: 7.x-2.0-alpha5 » 7.x-2.x-dev

Seems like something new:

Fatal error: Call to undefined function styles_variable_default() in \sites\all\modules\styles\styles.install on line 19

This one fails when trying to uninstall Styles module (current dev version).

clashar’s picture

Priority: Normal » Major

mee too, I've got:

Fatal error: Call to undefined function styles_variable_default() in Z:\home\paris7.kz\www\emploi\sites\all\modules\styles\styles.install on line 19

and solution from#2 doesn't help, as there is no Styles UI in modules uninstall list, there is only "Styles".

eule’s picture

i got on 7.x-2.0-alpha8
Fatal error: Call to undefined function styles_variable_default() in ./sites/all/modules/styles/styles.install on line 19

dave reid’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #1147284: Uninstall: Fatal error: Call to undefined function styles_default_containers() which has a patch that is already RTBC.