Recoverable fatal error: Argument 2 passed to token_replace() must be an array, string given, called in /var/www/sites/all/modules/swfupload/swfupload.module on line 206 and defined in function token_replace() (line: 79 in file /var/www/digitol.cz/digitol.cz/includes/token.inc).
I had to comment that line and module became working on one of sites (other site had no problems - probably lower error_reporting)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch_fix_token.patch | 903 bytes | Shellingfox |
Comments
Comment #1
intrafusionI can confirm this issue, to get it working for me I replaced:
With:
However I'm not 100% sure this is the correct code for replacements as I'm using the tokens in my project
Comment #2
intrafusionI can confirm that this issue is present, I replaced:
With
Which fixes it for me so that the module works, but I'm not sure that this would be correct to get the right replacements as I'm not using the token module
Comment #3
broncomania commentedSolved my problem also
Comment #4
Shellingfox commentedThis is the patch create follow #2, also t fix uninstall error of swfupload
Comment #5
poorva commentedPerfect !!! Works like a charm.
Thanks
Comment #6
dave reidThis is not correct. You do not need to provide $global user to token_replace(). Users should be using the [current-user:*] tokens that work automatically.
Comment #7
emcniece commentedYeah, that's a pretty interesting fix. Global $user seems to print out the currently logged-in user (admin, my case) each time, even if I'm editing another user's profile.
Comment #8
zwerg commentedThere is an error with the
$uservariable. This patch doesn't work for me:Notice: Undefined property: stdClass::$filepath in swfupload_swfupload() (Zeile 206 von /var/www/mysite/sites/all/modules/swfupload/swfupload.module).