With the Vertical Tabs module enabled, I get warning message when adding a content type.
See attached screenshot of the warning message.
The message does not display when the Vertical Tabs module is disabled.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 361838-1.patch | 376 bytes | les lim |
| Vertical Tabs Error.png | 12.76 KB | arlinsandbulte |
Comments
Comment #1
philsward commentedI too am getting the same error.
I have a sandbox where I went ahead and created a new content type. While it threw up the same error after saving the new content type, It appears that everything is working fine. When I went in to edit the new content type, the error went away and I was able to select the fields I wanted to use for vertical tabs.
Comment #2
joshmillerI did as well. Below is the error message for Google:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form'
Also found this while researching the problem: "You need to include node.pages.inc before you can call drupal_get_form($type ...); as the form builder (node_form) and a lot of other important node form functions are in that file." From: http://drupal.org/node/322163#comment-1062731
So, I believe the "Create Content Type" must handle their form slightly differently...
Sorry I couldn't include a patch, hopefully the information above will help someone deal with it directly.
~ eccl
Comment #3
jannalexx commentedsame error
Comment #4
rogerpfaffI think the error is based on the fact that there is no fieldset on content type creation time. There should be a check if it is a new content type we create or an existing we edit.
Comment #5
youkho commentedExperienced the same error when on content types creation so i disabled Vertical Tabs untill this issue is solved
Comment #6
imp7 commentedI also receive this error with vertical tabs enabled in same versions.
Comment #7
dnewkerk commentedSame error for me. If I get a chance soon I will try the current dev version to see if it's fixed now (or any feedback from the maintainer would be welcome).
Comment #8
les limyes, it's still happening in the current 2009-Jan-27 dev version. Verifiied on a clean local install of 6.9 using Garland, with the color module turned off to prevent #355938: Can't install - color module dependancy and an undefined func.
Comment #9
les limAlso, this seems to happen regardless of CCK being enabled.
Comment #10
les limThe function that looks for available fieldsets requires the node type to be passed to it. This patch prevents that function from being called if there's no specified node type (i.e., when you're adding a new content type). That should solve the warning message.
One reason this might not be the ideal solution is that if you are intending to add more vertical tabs once you've added the content type, it may not be obvious that you have to go back and re-edit the content type after setting up your fieldsets. Any thoughts?
Comment #11
les limComment #12
domesticat commentedPatch seems to be working well for me.
Comment #13
Antinoo commentedsubscribing
Comment #14
blakehall commentedWhile I'm not positive it's the _best_ approach, the patch works as advertised.
(Since I'm the second tester, I've changed the status to RTBC)
Comment #15
pvhee commentedany news to include this in the module? i have the same error
Comment #16
watbe commentedsubscribing
Comment #17
blup commentedsubscribing
Comment #18
quicksketchThanks lesmana! If it works it works. ;-)
Committed to CVS so we can get a new release out.