7 replies [Last post]
raspberryheaven's picture
Offline
Joined: 09/23/2008
Juice: 47
Was this information Helpful?

Hi there,

I just installed ubercart today and I installed all the updated modules needed to support it. I let ubercart configure the image part of the process but since configuration, I get this error :

warning: in_array() [function.in-array]: Wrong datatype for second argument in /Applications/drupal6.4/apps/drupal/htdocs/modules/filefield/filefield.module on line 289.

Filefield looks like it's in it's alpha release for Drupal 6 so if this module is indeed the problem, as I suspect, is there any substitute?

Thanks,
raspberryheaven

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: is there something wrong with the filefield module needed fo

I suppose something could have changed. I thought it worked when filefield was in alpha2. What version are they on now?

Also, is your user name an Azumanga Daioh reference? If so, that's awesome. Laughing out loud

raspberryheaven's picture
Offline
Joined: 09/23/2008
Juice: 47
Re: Re: is there something wrong with the filefield module neede

Yes! I love Azumanga Daioh. Also file filed is in 6.x-3.0-alpha4 now. I really need to get this working so I hope i can figure it out.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: is there something wrong with the filefield module n

Congratulations! There's a patch on this issue: http://drupal.org/node/308832. Looks like a pretty trivial code change, so just hack it until a new version comes out.

raspberryheaven's picture
Offline
Joined: 09/23/2008
Juice: 47
Thanks!

That's awesome. I'll try it ASAP.

raspberryheaven's picture
Offline
Joined: 09/23/2008
Juice: 47
where to put patch

Hi,
sorry . I never had time to test the patch out before today, so my question is, where do i put this patch? What file does it go in?

Thanks,
raspberryheaven

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: where to put patch

The filefield.module, line 283 and following. After the "@@" line, remove the lines that start with "-" and add the ones that start with "+".

raspberryheaven's picture
Offline
Joined: 09/23/2008
Juice: 47
Re: Re: where to put patch

Thanks! As you can see I'm pretty new to the world of module writing. : )