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
Comment #1
mkalkbrennerI 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?
Comment #2
socialnicheguru commenteddrupal 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.
Comment #3
socialnicheguru commentedI 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.
Comment #4
mkalkbrennerThanks 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.
Comment #5
socialnicheguru commentedSo 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
Comment #6
mkalkbrennerI'll have a deeper look at this issue next week. I think we'll find a way to combine these modules ...
Comment #7
mkalkbrennerfixed in cvs.
Comment #9
socialnicheguru commentedI 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.
Comment #10
socialnicheguru commentedThis might help others: http://drupal.org/node/548430
Comment #11
mkalkbrennerThe 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).
Comment #12
socialnicheguru commentedJust 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?
Comment #13
mkalkbrenner@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.
Comment #14
socialnicheguru commentedshould i place themekey and themekey_ui and themekey_properties weight to be higher than og so that it is the last to be executed?
Comment #15
mkalkbrennersee http://drupal.org/node/741268#comment-2715218