Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi, I've set a path where store uploaded images as "images/blog/[uid]". But after the last upgrades the "[uid]" token is no more resolved to the numerical user ID, e.g. if a user with UID=10 upload a file, it's stored into directory "images/blog/[uid]" instead of "images/blog/10".
When I press the upload button, this warning messages are returned:
* warning: array_merge(): Argument #2 is not an array in /srv/www/drupal/drupal/sites/all/modules/token/token.module on line 346.
* warning: array_keys(): The first argument should be an array in /srv/www/drupal/drupal/sites/all/modules/token/token.module on line 349.
* warning: array_values(): The argument should be an array in /srv/www/drupal/drupal/sites/all/modules/token/token.module on line 350.
* warning: Invalid argument supplied for foreach() in /srv/www/drupal/drupal/sites/all/modules/token/token.module on line 413.
I attach also a copy of a stacktrace generated with debug_backtrace(), placed on line 345 of token.module. It has been useful to track down the problem to FileField.
Is it a known problem?
Comment | File | Size | Author |
---|---|---|---|
stacktrace.txt | 2.45 KB | Kafu |
Comments
Comment #1
quicksketchI can't reproduce this issue and we haven't had any confirming reports in the 3.9 version. My guess is this was an issue with your upgrade. Please reopen if this is still an issue, but I'm closing directly after a lack of activity.