Comment driven module says "Assertion failed: something nasty is happening somewhere: !is_array($element). Please report this bug", so I reported.
Then, I found cause of this error. In my case, this error is caused by iTweak Upload module(http://drupal.org/project/itweak_upload).

Comments

arhak’s picture

Title: Error: "Assertion failed" » Error: "Assertion failed ... !is_array($element)"
Status: Active » Postponed (maintainer needs more info)

thanks for the module discrimination

how are you using itweak_upload?
with core's upload, comment_upload, filefield perhaps?

I mean, the attachment is related to comment_form or node_form?
(note that both are involved when comment_driven gets in)

arhak’s picture

Title: Error: "Assertion failed ... !is_array($element)" » Error: "Assertion failed ... !is_array($element)" (itweak_upload)
Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

first of all, don't panic, this "nasty" assertion is not addressing compatibility issues
it's the lack of test which made me guard myself against new code braking working functions

if this assertions shows up, most likely there is another module doing something wrong (in this case itweak_upload, as you accurately identified)
(otherwise I got blind and broke my own code)

you can find a solution to your problem here #737044: avoid creating a NULL form child $form['attachments']['wrapper']['files']

arhak’s picture

Title: Error: "Assertion failed ... !is_array($element)" (itweak_upload) » protect against 3rd parties creating empty children
Priority: Normal » Minor

in addition, our own protection against 3rd party modules doing silliness was also committed to HEAD
so you won't need to patch itweak_upload

Takafumi’s picture

Great! Thanks.

arhak’s picture

thanks to you for your accurate report

arhak’s picture

Title: protect against 3rd parties creating empty children » protect against 3rd parties creating NULL children

empty children are not a problem as long as they are empty arrays
the problem was introduced by NULL children as a matter of fact

arhak’s picture

Version: 6.x-1.x-dev » 6.x-1.0-unstable4

should no longer apply for unstable5

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.