Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.