on node form submission, theme selection resets back to system default

mtndan - July 10, 2008 - 01:45
Project:Taxonomy Theme
Version:5.x-1.1
Component:Code / API
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When creating a new node, I can choose a theme. Then when I click "Submit" and return back to edit the node, I find the theme select box has reset back to System Default. If I change the theme once more on the newly created node and click "Submit", the second time it sticks.

This is happening with the Garland theme.

Thanks in advance.

#1

Lenn-art - July 15, 2008 - 20:43
Version:5.x-1.1» 6.x-1.x-dev

I have also the same problem

Creating a new node is no problem. But editing the node again, results in:
1) reset all properties back to systemdefault
2) add in the edit-page an extra function, called 'term'

Now i can't connect a term to a template. It doesn't save the setting ... there's somewhere a big bug in this module. See also a bug report at themekey: http://drupal.org/node/282972#comment-923244 : After creating and re-editing a node, i get 12x warning: Invalid argument supplied for foreach() in /dataschijf/www/drupal/drupal63/sites/all/modules/themekey/themekey_build.inc on line 281.

Why 12x? I tried to save 12x the terms to a template. But every time on admin/settings/themekey/taxonomy the settings are reset. So i tried it over and over ... resulting in 12x entrys for tid connected to a tag on admin/settings/themekey/properties and 12x an error!

Maybe this helps to discover the bug.

#2

Lenn-art - July 15, 2008 - 21:17

Same bug here? (links are from the tax_theme issue's)

http://drupal.org/node/147973

#3

basicmagic.net - September 18, 2008 - 23:12

subscribe

#4

dagomar - December 16, 2008 - 15:17
Version:6.x-1.x-dev» 5.x-1.1

I have the same issue. I am using drupal 5, but apparently this is an issue with D6 as well. I had something similar happening in another module; Automatic node titles, the nid was not usable the first time, but only after a resave. I was able to fix this by basically saving the node twice from the module (only for a new node). I think the same issue may apply here, so i will investigate.

update
i think i found where this is done. taxonomy theme saves the path to the node in its own table, using the 'nid' of the node. This obviously doesnt work if the node hasnt been created yet! So we know the reason why we have to save always 2 times.

 
 

Drupal is a registered trademark of Dries Buytaert.