Active
Project:
CCK Fieldgroup Tabs
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2008 at 11:07 UTC
Updated:
27 Apr 2008 at 04:45 UTC
I have no idea what it could be since this module only modifies the user interface, but when I have Fieldgroup Tabs enabled, my node title entries return errors. If I make it a text entry, the title works but I get these errors returned
# warning: Missing argument 2 for node_form_validate() in /home/projectu/public_html/modules/node/node.module on line 2003.
# warning: Missing argument 3 for node_form_validate() in /home/projectu/public_html/modules/node/node.module on line 2003.However, if I make it an automatically generated title using a token I get
* warning: Missing argument 2 for node_form_validate() in /home/projectu/public_html/modules/node/node.module on line 2003.
* warning: Missing argument 3 for node_form_validate() in /home/projectu/public_html/modules/node/node.module on line 2003.
* warning: array_shift() [function.array-shift]: The argument should be an array in /home/projectu/public_html/includes/form.inc on line 853.I have been commenting stuff out that I thought might be affecting it but so far no luck. Maybe you have an idea as to what would be causing the problem?
Comments
Comment #1
Kripsy commentedFurther testing shows that just having the "Basics tab" enabled causes the errors meaning it has something to do with grouping the title bar into the tab. Something worth noting, the title returned with tokens enabled is "ant" always. I have no idea why.
Edit: I found out "ant" is the default title given to the title field when auto nodetitle hides it.
Comment #2
nedjoLooks like a conflict with another module. You could try selectively disabling other modules to see if the problem disappears.
Comment #3
Kripsy commentedI have been disabling and enabling modules all day trying to figure this out and I'm no where closer than I was this morning. Is there some way I can just exclude the title form from the tab alone? This way I can still clean up the node input by placing all of the admin settings in a tab but then let the title hang out up top. I tried looking at your code for a clue but I am way too much of a novice with php.
Comment #4
nedjoThis is the line you'd need to change:
Try:
I'm still interested however to discover why this error is occurring and if it is indeed related to cck_fieldgroup_tabs.
Comment #5
Kripsy commentedYour code worked but to my great displeasure, I still received the errors despite the title field not being in the tab. I did a little further research and pinpointed the problem. Unsetting the variables with
unset($form[$key]);is doing it. I'm not sure why but removing it fixed my problem (instead I just mark up the duplicate menus to not display). I might try to see if I can duplicate this on a clean install tomorrow but right now I am just happy to have it working.Edit: I was fiddling around a little more (I sound so obsessive compulsive right now but I am really just bored :D), and I found that the unset problem only happens if I preview my changes before I make them. If I simply submit then there is no error. I'm not sure how the node preview works but if I had to guess it seems like cck fieldgroups might be unsetting the variables when previewing so when I submit the data isn't there anymore. Why this would only affect the node title, I couldn't say hahaha.