hey ive just installed the 6.x-1.0-alpha5 version of flexifield and the concept for this module is perfect for my needs.
i have created a project_info content type with a single value image field and a text field, and a project_page content type which uses flexifield to pull in the project_info content type. however when i try to upload the image from within a project_page it throws out the warning message:
warning: Missing argument 2 for filefield_edit_access() in /sites/all/modules/filefield/filefield.module on line 498.
i presume it has something to do with filefield not receiving the correct field name for the imagefield as it is 'embedded' inside the flexifield field.
i searched for is warning message and found the same issue posted in the filefield issue queue (the last post includes a module list which includes flexifield).
can anyone help solve this please?
thanks
Comment | File | Size | Author |
---|---|---|---|
#1 | flexifield_filefield.module.patch | 555 bytes | danrasband |
Comments
Comment #1
danrasband CreditAttribution: danrasband commentedHere is a patch that worked for me: (You'll have to reinstall or at least deactivate and then reactivate the flexifield module)
P.S. This is the first patch I've created, so if it doesn't work, all you have to do is change line 18 from:
'access arguments' => array(3),
to
'access arguments' => array(2, 3),
then deactivate and activate the flexifield module.
Comment #2
georgina_marauder CreditAttribution: georgina_marauder commentedFixed! Thanks so much :)
Comment #3
MurzThanks! Patch solved problem for me too!
Comment #4
danrasband CreditAttribution: danrasband commentedComment #5
spesso CreditAttribution: spesso commentedThanks! It worked for me.
Comment #6
K-Max CreditAttribution: K-Max commentedWhile the code in #1 works, if I avoid using ahah and just click Save without using ahah (example: the not clicking the upload button in a flexifield that has a imagefield and submitting as is), Everything except the flexifield data is saved with the node.
I'll look into this a bit more but, in the meantime, try adding a node without using any ahah submissions and see if it works or not as I haven't have a chance to test on a generic setup.
Comment #7
K-Max CreditAttribution: K-Max commentedChanging issue to make it simpler to follow. ;)
Comment #8
K-Max CreditAttribution: K-Max commentedFYI - I had downgraded these modules to these versions and it appears to mitigate the problem down to the data in the imagefields not saving. So in the meantime, make sure you ARE using the upload buttons before saving.
As mentioned, make sure to deactivate and reactivate replaced modules.
In the end, it could be non-flexifield related... but something definitely broke since flexifield was last updated. Just out of time at the moment to test.
- CCK 6.x-2.6
- FileField 6.x-3.3
- Imagefield 6.x-3.3
- AHAH Response 6.x-1.2
- Flexifield 6.x-1.x-dev
Good luck!
Comment #9
willhowlett CreditAttribution: willhowlett commentedHaving just updated Filefield to 3.7 I'm now experiencing this issue. The patch above does not seem to have worked for me.
Edit: Sorry, I was mistaken, the patch did work :)
Comment #10
stefan81 CreditAttribution: stefan81 commentedPatch #1 works fine, thanks
Comment #11
maximer CreditAttribution: maximer commentedWhen will this path be added to the new release?
Comment #12
sdemi CreditAttribution: sdemi commentedThis needs to go into 6.x-1.x-dev ASAP
Comment #13
hanoiiclearing cache menu should do it, this should include a flexifield_update_N on the install file to clear menu cache automatically in my opinion.
Comment #14
hanoiiTried it and it worked fine! +1
Comment #15
_Jay CreditAttribution: _Jay commentedThanks! The patch did not apply to my dev version but it worked when I changed the code manually.
Comment #16
deepakjoshi CreditAttribution: deepakjoshi commentedAbove patch not working for me ; i have used ImageField 6.x-3.10 , FlexiField 6.x-1.0-alpha5 and FielField 6.x-3.10.
Please suggest me to remove warning error "Warning: Missing argument 2 for filefield_edit_access() in filefield_edit_access()"
Comment #17
dg888 CreditAttribution: dg888 commented#6 from http://drupal.org/node/540852, the fix applied on sites/all/modules/flexifield/modules/filefield/flexifield_filefield.module, line 12 worked fine for me after flushing the caches
I have the same configuration than you : ImageField 6.x-3.10 , FlexiField 6.x-1.0-alpha5 and FielField 6.x-3.10.
Cheers
Webdesign // Webdevelopment
CreativeGreg.com
Comment #18
squarecandy CreditAttribution: squarecandy commentedworks for me.
Comment #19
Anuprita CreditAttribution: Anuprita commentedWorked for me!!!
Thanks a lot "danrasband" for the patch !!!!
Thanks,
Anu