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.
Hey
I get an error using cck and filefield 6.x-3.10.
The cck issue was solved here: http://drupal.org/node/1097548
But the filefield issue remains. Filefield is trying to merge two arrays, but the latter is set but does not contain an array.
I am quite new to this, so bear with meif the patch is not correctly formatted.
I have attached temporary fix.
Comment | File | Size | Author |
---|---|---|---|
#5 | _filefield_merge_error-2.patch | 565 bytes | combert |
#2 | _filefield_merge_error.patch | 416 bytes | combert |
_filefield_merge_error.patch | 414 bytes | combert |
Comments
Comment #1
combert CreditAttribution: combert commentedForgot to mention that the ckk version is 6.x-3.0-alpha3.
Comment #2
combert CreditAttribution: combert commentedThis one is better.
Comment #3
Lucience CreditAttribution: Lucience commentedThanks, combert! Works like a charm!
Comment #4
circuscowboy CreditAttribution: circuscowboy commentedThis worked as well for me. Although the patch had an error it worked fine when added manually.
Is this fix good enough to be included in the next upgrade?
Comment #5
combert CreditAttribution: combert commentedShould have no error now.
Comment #6
Melissamcewen CreditAttribution: Melissamcewen commented#5 worked for me, thanks!!
Comment #7
Jerome F CreditAttribution: Jerome F commentedThere appears to be a similar issue in Drupal 7 core :
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in file_field_widget_form() (line 463 of .../modules/file/file.field.inc).
But the fix provided in the patch is not reusable, as this line of code doesn't exist anymore.
You can reproduce this bug changing the language of a content from english to default language when there is an image field. The image will be lost, but you can solve this issue by uploading the image again.
I haven't found any issue in drupal core queue regarding this if someone does, please provide the link, I'll copy paste this comment there. I didn't create one because this is easy to solve and a wired behavior to switch languages like that, yet that can happen in a multilingual site.
Comment #8
Wappie08 CreditAttribution: Wappie08 commentedHi Jerome F, I experienced the same issues and created a new issue, please report back in #1261090: Images deleted after changing language of a node so we can figure this out!
Greetings Wappie
Comment #9
fabianderijk#5 worked for me as well.
Comment #10
CarbonPig CreditAttribution: CarbonPig commented#5 worked for me too - Thanks!
Comment #11
johnnydarkko CreditAttribution: johnnydarkko commentedThanks combert! #5 worked for me as well!
Comment #12
fabianderijkLooks like it needs a new status >> Reviewed & tested by the community
Comment #13
quicksketchThanks guys. Committed #5.