I get this in my log

Location http://mysite/group/node/2/edit
Referrer http://mysite/group/node/2/edit
Message Illegal choice default in theme element.
whatever theme I select gives this error
"default" above is changed in the error message depending on whichever theme I select.

Comments

mkalkbrenner’s picture

I guess you use ThemeKey UI which offers a theme selct box on node edit and create forms. Right?

The error message you see is created by _form_validate() in form.inc which is part of drupal core. I tested ThemeKey UI again. But I was not able to produce such an error message.
So it seems that this issue only occurs in your setup. Which drupal version are you using? Did you update from a previous version of ThemeKey? Are you using another module that manipulates node edit forms?

socialnicheguru’s picture

drupal 6.15
I disabled all themekey modules and uninstalled and re-installed again.
I am using vertical_tabs and form. I will try to disable those and check again.

socialnicheguru’s picture

I am not quite sure but there is

user/me/edit/theme_select

1. seems to be part of Drupal: http://drupal.org/node/458054

2. Part of OG:

grep -in 'theme_select' */*/*
contrib/og/og.module:1046: if ($theme_form = system_theme_select_form(t('Selecting a different theme will change the look and feel of the group.'), isset($form_state['values']['theme']) ? $form_state['values']['theme'] : $node->og_theme, 2)) {

3. part of Atrium
features/atrium_members/atrium_members.module:168: $categories['theme_select'] = array(
features/atrium_members/atrium_members.module:169: 'name' => 'theme_select',

Are these conflicting with the theme select of theme_key?

Any thoughts on how to find out. I don't know if selecting a theme is a configuration option in any of these other modules.

mkalkbrenner’s picture

Title: Illegal choice when I select a theme using themekey » ThemeKey UI is incompatible to Organic Groups (Illegal choice when I select a theme using themekey)
Assigned: Unassigned » mkalkbrenner

Thanks for your work. I was able to reproduce this issue. ThemeKey UI's feature to add a theme selector to the node create / edit form is incompatible to Organic Groups.

socialnicheguru’s picture

So I can't change the theme of my OG group using themekey?

Where does the incompatibility lie?

Themekey is a cool module and I would somehow love to use it on my OG groups.

Are there any alternatives?

Is this something that can be put on the feature request list? Does it need to be funded?

SNG

mkalkbrenner’s picture

I'll have a deeper look at this issue next week. I think we'll find a way to combine these modules ...

mkalkbrenner’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta4
Status: Active » Fixed

fixed in cvs.

Status: Fixed » Closed (fixed)

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

socialnicheguru’s picture

Status: Closed (fixed) » Active
Issue tags: +spaces, +themekey, +spaces og

I tried to use themekey on the edit page to change the theme and it did not work.

any thoughts?

I am using spaces and spaces_design.

Thanks.

I see this on the edit page:
Note: This content type is used in organic groups. A Theme you select here will only be used to display this node if you set the theme for the organic group to mytheme (site default theme).

So for og, I can only use the site default theme? I think that is what you meant in #4.

So either use og theme function or nothing else to change og theme.

socialnicheguru’s picture

This might help others: http://drupal.org/node/548430

mkalkbrenner’s picture

The incompatibility was that both modules introduces a node attribute called "node->theme" which is not supported by drupal's form engine. My fix was to rename ThemeKey's node attribute to "node->themekey_ui_theme".

Additionally ThemeKey only switches to the theme assigned to a node if it's content type is not used by an organic group or if the theme assigned to the group is the system default theme. That's why you see this message:
Note: This content type is used in organic groups. A Theme you select here will only be used to display this node if you set the theme for the organic group to mytheme (site default theme).

socialnicheguru’s picture

Just a little more clarification. so it will work with organic groups if i have the system default as the og theme? I can then change the theme in og themekey?

mkalkbrenner’s picture

@SocialNicheGuru #12:

Yes, it should work with organic groups if i have the system default as the og theme. Then you can then change the theme of an og node using ThemeKey UI or a matching ThemeKey Rule.

If it's not working it could be an issue with module weights.

socialnicheguru’s picture

should i place themekey and themekey_ui and themekey_properties weight to be higher than og so that it is the last to be executed?

mkalkbrenner’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -spaces, -themekey, -spaces og

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