Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2010 at 00:11 UTC
Updated:
22 Feb 2012 at 03:39 UTC
Warning: Missing argument 2 for filefield_edit_access() in filefield_edit_access() (line 486 of /Users/nate/Sites/drupal6/sites/all/modules/filefield/filefield.module).
If you are getting this error after upgrading to FileField 3.4, it's likely caused by FileField Sources, which also needs to be upgraded. See #829746: Warning: Missing argument 2 for filefield_edit_access() in filefield_edit_access() in the FileField Sources queue.
Comments
Comment #1
bengtan commentedReopening this ticket.
I get this warning message when I upgraded my site from Filefield 6.x-3.3 to 6.x-3.4. I am not using FileFIeld Sources.
Comment #2
fluxrider commentedi got no warnings at all , just a this version has been revoked in the available updates report . Uninstalled and reloaded 6.3.3 . the 6.3.4 version is still listed and downloadable though. hmmmm
Comment #3
bengtan commentedSorry, I posted my issue in the wrong spot (I misread drupal warning messages). Reposted to #829856: warning: Missing argument 2 for filefield_view_access(). Please follow up there.
Thank you.
Comment #4
checker commentedIn latest dev - no warning
Comment #5
sahuni commentedsorry not same version
Comment #6
sinasalek commentedI'm also getting this error on 3.5
Comment #7
quicksketch@sinasalek: Do you have FileField Sources installed? If so, the error is being caused by that module.
Comment #8
Juan C commentedI got this warning upon updating to 3.5. (No FileField Sources installed):
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /var/www/vhosts/example.com/httpdocs/includes/form.inc on line 1368.
Comment #9
quicksketchJuan CM: See #791118: warning: array_merge(): Argument #2 is not an array.
Comment #11
emptyvoid commentedI have the most recent release July 1, 2010 the warning has returned.
Comment #12
nzcodarnoc commentedI'm getting the following error with FileField 6.x-3.7
warning: Missing argument 2 for filefield_edit_access() in /[snip]/sites/all/modules/filefield/filefield.module on line 498.
When used with ImageField, but not using FileField Sources.
Everything seems to work OK despite the error.
To suppress the error I edited line 498 of the file in the error message above too:
function filefield_edit_access($type_name, $field_name = '') {
and cleared my caches.
Comment #13
danrasband commentedI'm also getting the same error with version 3.7 and imagefield.
Comment #14
quicksketchAs far as I know there are no problems with the current release of FileField/ImageField/Filefield Sources as long as you are running the current releases. It's probably caused by another module calling the function incorrectly. If you can provide steps to reproduce from a fresh installation of Drupal I'll have a look.
Comment #15
checker commentedI tested it with FileField Sources and without FileField Sources and i could not find any problems. I tried it also in combination with FileField Paths.
Comment #16
quicksketchPlease reopen if this problem can be reproduced. As far as I've tested, this problem no longer exists in the current versions.
Comment #17
nzcodarnoc commentedHi there,
I'm experiencing this problem.
My installed/available modules are:
Comment #18
danrasband commentedI think this may have to do with flexifield.
See http://drupal.org/node/853742#comment-3210312
I uploaded a patch there. Let me know if it works. (Note: you must deactivate and reactivate the flexifield module for changes to take place.)
Comment #19
Sera commented#18
This is not the (only) solution. I have no flexifield installed and also have the problem:
edit says:
Okay, got the problem. Had imagefield 3.4 installed. Upgrading to 3.7 and warning disapeared. :)