Im receiving this error when editing a node with a picture attached to it.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _form_set_class() (line 4044 of .../includes/form.inc).Warning: implode() [function.implode]: Invalid arguments passed in theme_radios() (line 2748 of .../includes/form.inc).

It only shows up when editing a node that has an image attached to it via media module. Anyone else getting this?

Comments

chanella’s picture

Same problem here.

jerryitt’s picture

I have just tried unsuccessfully to replicate this.
Can you provide more information?

oobie11’s picture

Hi, I am using a custom theme that customized the node edit and add form. I have added some form preprocess in my template.php that looks like this

function mytheme_preprocess_article_node_form(&$variables) {

    $variables['category_in'][] = $variables['form']['field_cat'];
    $variables['title_in'][] = $variables['form']['title'];
    $variables['quote_in'][] = $variables['form']['field_pullquote'];
    $variables['body_in'][] = $variables['form']['body'];
    $variables['image_in'][] = $variables['form']['field_image'];
    $variables['image2_in'][] = $variables['form']['field_image2'];
    $variables['video_in'][] = $variables['form']['field_video'];
    $variables['tos_in'][] = $variables['form']['field_tos'];
    hide($variables['form']['field_video']);
    hide($variables['form']['field_tos']);
    hide($variables['form']['field_image2']);
    hide($variables['form']['field_image']);
    hide($variables['form']['field_pullquote']);
    hide($variables['form']['field_cat']);
    hide($variables['form']['title']);
    hide($variables['form']['body']);

    // Extract the form buttons, and put them in independent variable.
    $variables['buttons'] = $variables['form']['actions'];
    hide($variables['form']['actions']);

}// end template_preprocess_article_node_form;

When I switch to Bartik this does not happen, so It has to be something with that. I'm using D7.
Any Suggestions?
Thanks

tsvenson’s picture

Status: Active » Closed (works as designed)

@oobie11 So, everything works like you expect when you try it with Bartik, but not with your custom theme?

If that is correct and your custom theme modifies the node edit form, then it sounds like the problem you have is very likely to be in your custom theme and not with the Media module.