Closed (duplicate)
Project:
FileField
Version:
6.x-3.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2008 at 23:40 UTC
Updated:
15 Sep 2008 at 20:52 UTC
[code]warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/site/public_html/mysite/modules/filefield/filefield.module on line 289.[/code]
This warning showed up after upgrading from alpha2 to alpha3.
I am using Drupal 6.4.
Comments
Comment #1
B.P.B commentedUPDATE:
After reverting back to Alpha2, the warning disappeared. I would prefer to use the most up to date version. Please help.
Comment #2
mschneider commentedI also got the same message and had to revert back to Alpha2 - do you already have an news about how to resolve this!
Comment #3
B.P.B commentedNo, not yet, but its comforting to know that I'm not the only one :)
Sometimes when you post a bug, there is no reply for awhile, and you begin to wonder if you saw bigfoot.
Comment #4
Moonshine commentedHave you guys tried HEAD? It is about a week newer... I'm not seeing this error using it.
http://drupal.org/node/96616
Comment #5
drewish commentedmarked #297816: Error in node form as a duplicate
Comment #6
drewish commentedmarked #295724: warning: in_array() [function.in-array]: Wrong datatype for second argument in . . . modules\filefield\filefield.module on line as a dupe
Comment #7
craig.bloodworth commentedI'm experiencing this problem and tried upgrading to the development version however the error still appears. Does a rollback seem like the only option right now?
Comment #8
Moonshine commentedDid you run update.php after putting the new version in place? Sort of a longshot, but worth a try if you haven't.
Comment #9
B.P.B commentedYes, I ran update.php, but it did not help.
Comment #10
marvix commentedany hope ?
Comment #11
defconjuan commentedi'm having the same problem and nothing on this site (as of this posting) fixes it (i've searched for about 3 hours)
UPDATE: I rolled back to Alpha 2 and the error message disappears. I think this relates to CCK FileField with CCK Image because everything was fine until I installed CCK Image. I also use IMCE and Lightbox but those all were working fine until CCK Image.
What about others? Do you also have IMCE or Lightbox?
Comment #12
B.P.B commentedI was funning Filefield + CCK + Views + Imagefield + Imagecache + Lightbox to create an image thumbnail gallery.
Comment #13
ComputerWolf commentedAlright, this issue and #296350: Wrong datatype seem to be the same thing... this one may be a duplicate, but other issues have already been marked as dupes of this one, so i'll post my findings in both.
It seems that even with the latest modules, this warning is still appearing. I found an easy fix by making line #289 of filefield.module look like this:
This works for me, but I don't know why $form['#submit'] is being referenced when for some reason it doesn't exist. I guess that would be an issue for the filefield/CCK developers.
Comment #14
defconjuan commentedtried ComputerWolf's code (#13) and works for me
Comment #15
B.P.B commentedUpgrading to alpha4 fixed the problem for me.
Comment #16
drewish commentedsee #308832: Wrong datatype for second argument filefield.module on line 289.