in http://www.site.com/user/1

warning: Missing argument 4 for fastpath_fscache_user() in /mnt/w0511/d44/s22/b02bd24d/www/max-pt.net/sites/all/modules/fastpath_fscache/fastpath_fscache.module on line 91.

CommentFileSizeAuthor
#1 fastpath_fscache_user_args_212315-1.patch803 bytesgreggles
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Status: Active » Needs review
FileSize
803 bytes

I'm seeing this too. I'm not sure what the consequence is though.

Checking that line it is the function signature for hook_user. Looking at the docs for hook_user - http://api.drupal.org/api/function/hook_user/5 - it seems that

1) this function wasn't taking some of the args by reference which is probably should
2) this function wasn't using a default for $category so when the optional $category parameter was passed, php wasn't able to default it and instead complains.

I'm not sure that this is critical or even causes any problems, necessarily, but the attached patch should fix it (I haven't tested it yet, I'll be watching my logs to see if the error comes up again).

@int - please test out the patch and respond back if it solves the problem for you (and also what the problem you experience is).

Veggieryan’s picture

+1 for this patch

fixed the error for me.

rtbc baby. ;)

Konstantin_by’s picture

How to apply patch?

greggles’s picture

kenorb’s picture

Status: Needs review » Postponed (maintainer needs more info)

But this patch doing nothing. $array and $user are not updated anywhere, so it not make sense to make them referenceable.
The error is related to 4th argument what's set in latest snapshot.

kenorb’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

5.x version is no longer supported, try 6.x