"Files" Tokens Missing from Picklist for Automatic Title Generation

Created on 12 January 2015, over 10 years ago
Updated 15 April 2025, 11 days ago

Steps Required to Reproduce Bug

  1. Create or select an existing content type.
  2. Select "Automatically generate the title if the title field is left empty.
  3. Click in the "Pattern for the title" text field.

Expected Behavior

In the list of token categories, I expect to see Files with a list of tokens underneath.

What happened instead?

In the list of token categories from which to choose, I see Current date, Current page, Current user, Nodes, Random and Site information. The category Files is missing.

Further Attempts at Fixing Issue

  • drush ev "token_clear_cache();"
  • drush cc (selected all)
  • restarted IIS

Please include as much information as you can: OS, webserver name and version, PHP version, Drupal version, Drupal path, and everything else you might feel is relevant. There is no such thing as a bug report that is too detailed.

Operating System Windows Server 2008 R2
Web server Microsoft-IIS/7.5
PHP 5.3.24
PHP extensions Enabled
PHP memory limit 128M
PHP register globals Disabled
Drupal 7.34
Install profile Standard (standard-7.34)
Drupal core update status Up to date
Database system MySQL Windows 5.1
Database system version 5.1.72-community
Database updates Up to date
Module and theme update status Up to date

Drupal root C:\inetpub\wwwroot\stadtlabor
Site path sites/default
File directory path sites/default/files
Private file directory path sites/default/files/private
Temporary file directory path sites/default/files/tmp

Modules Installed:
Package Name Version
Acquia Connector Acquia agent (acquia_agent) 7.x-2.15
Acquia Connector Acquia Site Profile Information (acquia_spi) 7.x-2.15
Chaos tool suite Chaos tools (ctools) 7.x-1.5
Core Block (block) 7.34
Core Color (color) 7.34
Core Comment (comment) 7.34
Core Contextual links (contextual) 7.34
Core Dashboard (dashboard) 7.34
Core Database logging (dblog) 7.34
Core Field (field) 7.34
Core Field SQL storage (field_sql_storage) 7.34
Core Field UI (field_ui) 7.34
Core File (file) 7.34
Core Filter (filter) 7.34
Core Help (help) 7.34
Core Image (image) 7.34
Core List (list) 7.34
Core Menu (menu) 7.34
Core Node (node) 7.34
Core Number (number) 7.34
Core Options (options) 7.34
Core Overlay (overlay) 7.34
Core Path (path) 7.34
Core RDF (rdf) 7.34
Core Search (search) 7.34
Core Shortcut (shortcut) 7.34
Core System (system) 7.34
Core Taxonomy (taxonomy) 7.34
Core Text (text) 7.34
Core Toolbar (toolbar) 7.34
Core Update manager (update) 7.34
Core User (user) 7.34
Date/Time Date (date) 7.x-2.8
Date/Time Date API (date_api) 7.x-2.8
Date/Time Partial Date (partial_date) 7.x-1.0-beta1
Development Database Administration (dba) 7.x-1.0-alpha2
Fields Address Field (addressfield) 7.x-1.0-rc1
Fields File (Field) Paths (filefield_paths) 7.x-1.0-beta4
Fields Geofield (geofield) 7.x-2.3
OpenLayers OpenLayers (openlayers) 7.x-2.0-beta11
OpenLayers OpenLayers UI (openlayers_ui) 7.x-2.0-beta11
OpenLayers OpenLayers Views (openlayers_views) 7.x-2.0-beta11
Other Automatic Nodetitles (auto_nodetitle) 7.x-1.0
Other Backup and Migrate (backup_migrate) 7.x-3.0
Other Geocoder (geocoder) 7.x-1.2
Other geoPHP (geophp) 7.x-1.7
Other Libraries (libraries) 7.x-2.2
Other Node Convert (node_convert) 7.x-1.2
Other Plupload widget (plup) 7.x-1.0-alpha1
Other Proj4JS (proj4js) 7.x-1.2
Other Token (token) 7.x-1.5
Other Transliteration (transliteration) 7.x-3.2
Security Security Kit (seckit) 7.x-1.9
Views Views (views) 7.x-3.8
Views Views UI (views_ui) 7.x-3.8

🐛 Bug report
Status

Closed: outdated

Version

7.0 ⚰️

Component

token system

Created by

🇩🇪Germany halfjapanese

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia geoffreyr Sydney, AU / Gadigal country

    Given that Drupal 7 has reached its End Of Life , this issue should be closed.

    Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

    For what it's worth, Auto Nodetitle replaces tokens with respect to the Node entity type, meaning that there wouldn't be any reason to have a top-level Files token category. You'd probably want to drill down into a field belonging to that specific node that links a file entity, maybe something like [node:field_document:basename] using what Token module gives you. There is a module named File Extra Tokens that might give you what you want.

Production build 0.71.5 2024