Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Testing with Views RC2 and CCK RC7
Checkout out module HEAD as of today.
Added a single file file w/ upload widget to story type.
On node/add/story:
warning: in_array() [function.in-array]: Wrong datatype for second argument in /Users/Shared/www/AD-1.0-6.x/modules/acquia/filefield/filefield.module on line 289.
if (!in_array('filefield_node_form_submit', $form['#submit'])) {
$form['#submit'][] = 'filefield_node_form_submit';
}
Lokks like it's no set.
Comment | File | Size | Author |
---|---|---|---|
#1 | not-set-arg-308832-1.patch | 1.04 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedjust need to check if before passing to in_array I think.
Comment #2
pwolanin CreditAttribution: pwolanin commentedI patch above alleviates the error and is safe too.
Given that it's pretty trivial, I think it's RTBC
Comment #3
drewish CreditAttribution: drewish commentedthis is a dupe of at least two issues (#296350: Wrong datatype and #305905: warning: in_array() in filefield.module ) but since it's got a patch it wins.
committed to HEAD.
Comment #4
drewish CreditAttribution: drewish commentedalso marking #297395: warning: in_array() [function.in-array]: as a duplicate.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.