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.
Problem/Motivation
Undefined index: map in _token_filter_filter_tokens() in token_filter.module. Because menu_get_item() can return a fully populated $item that the user doesn't have access to. And if the user does not have access, the 'map' doesn't get assigned. Resulting in the undefined index error.
Proposed resolution
Check access.
Remaining tasks
RTBC
Comment | File | Size | Author |
---|---|---|---|
#1 | token_filter-undefined_index_map_in-2535746-1.patch | 882 bytes | heddn |
Comments
Comment #1
heddnComment #2
darvanenPatch looks fine. Have you got a set of instructions to reproduce the error?
Comment #3
darvanen