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
Comment #1
arhak commentedthanks 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)
Comment #2
arhak commentedfirst 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']
Comment #3
arhak commentedin addition, our own protection against 3rd party modules doing silliness was also committed to HEAD
so you won't need to patch itweak_upload
Comment #4
Takafumi commentedGreat! Thanks.
Comment #5
arhak commentedthanks to you for your accurate report
Comment #6
arhak commentedempty children are not a problem as long as they are empty arrays
the problem was introduced by NULL children as a matter of fact
Comment #7
arhak commentedshould no longer apply for unstable5