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?

CommentFileSizeAuthor
stacktrace.txt2.45 KBKafu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Category: bug » support
Status: Active » Closed (cannot reproduce)

I 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.