"Undefined index: und" Error fetching array in node form I am facing this error in node form when I going to be print title of the body field.
Error:


  Notice: Undefined index: und in include() (line 4 of C:\wamp\www\drupalapi\themes\bartik\article-node-form.tpl.php).


I need to print the title of the body field, and my code looks like:

print $form['und']['#title'];


And shortly, the array is:

Array
(
[#type] =&gt; container
[#attributes] =&gt; Array
    (
        [class] =&gt; Array
            (
                [0] =&gt; field-type-text-with-summary
                [1] =&gt; field-name-body
                [2] =&gt; field-widget-text-textarea-with-summary
            )

    )

[#weight] =&gt; -4
[#tree] =&gt; 1
[#language] =&gt; und
[und] =&gt; Array
    (
        [#theme] =&gt; field_multiple_value_form
        [#field_name] =&gt; body
        [#cardinality] =&gt; 1
        [#title] =&gt; Body
        [#required] =&gt; 0
        [#description] =&gt; 
        [#prefix] =&gt; 
[#suffix] =&gt;

        [#max_delta] =&gt; 0
        [#after_build] =&gt; Array
            (
                [0] =&gt; field_form_element_after_build
            )

        [#language] =&gt; und
        [#field_parents] =&gt; Array
            (
            )


What i am missing in my code to print the title of the body field. Thanks
To get usable markup of the field in template you need to render it before print.

print drupal_render_children($form['title']);


As explained here Theming Node Forms in Drupal 7

Additionally make sure you also render the hidden parts of the form to keep track of form identity related to system. If you wish to exlude some parts of the form, do something like this.

hide($form['field_body']);
print drupal_render_children($form);


This way drupal "render api?" can be aware of what has allready been rendered, what needs to be hidden and finally push out all required parts to make form functional.