I installed switchtheme and later decided it was not what I needed.
I disabled the module and then found that after switching theme's in Admin->Appearance that the theme did not change for me(user 1). The theme DOES change for all other users, including anonymous.
If I give administrator permissions to another user and they change the theme it still changes for all users except user 1.
As soon as I re-enable the module all goes back to normal. I also tried uninstalling the module but this did not help, I also tried clearing the cache (many times just to be sure.)
I figured out that once a user changes the theme using switchtheme and then the module is disabled, the theme is stuck and can't be changed using Admin->Appearance
Any help is greatly appreciated.

Comments

headscratching’s picture

My experience of this module mirrors that of the OP johnlaine. I haven't changed the priority though I do consider it more than just "normal" as having disabled it, it is then a great inconvenience to be unable to manage themes properly. A workaround or an early fix is hoped for.

jsinbc’s picture

Switchtheme stores the name of the selected theme in the users table in the db. Disabling and uninstalling the module does not clear this value.

Editing the table using something like phpmyadmin and changing the default theme field to blanks will restore the correct behaviour.

johnlaine’s picture

Thanks jsinbc, that did the trick.
I was unaware of this entry in the database.
Shouldn't this entry get deleted when the module is uninstalled? Or at least some documentation mentioning it?
I am somewhat of a noob and maybe most would know to check the db for this entry, but I'm probably not alone.
Thanks again!

Taxoman’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Priority: Normal » Major

Yes, this must be a missing piece in the uninstall code.

Hanpersand’s picture

Version: 7.x-1.x-dev » 7.x-1.0

I have this same problem, and I think it's a very frustrating bug. I had a site builder have trouble with Switch theme, then uninstall it, and now the theme is stuck for user 1. A site builder should not have to worry about the value in the db table. I hope this gets fixed. Thanks very much.

Hanpersand’s picture

Issue summary: View changes

Update findings

dsoini’s picture

Issue summary: View changes

Same problem here and same solution (manually editing users table.)

izmeez’s picture

We experienced the same problem.
Also on disable and uninstall the following notice is displayed,

Notice: Undefined property: DeleteQuery::$execute in switchtheme_uninstall() (line 15 of /.../switchtheme/switchtheme.install).

izmeez’s picture