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.
If a content type has many filefield CCK fields, using multigroup for example, it is hard to determine which field is causing problems when getting the following errors:
Referencing to the file used in the %field field is not allowed.
OR
The file referenced by the %field field does not exist.
Amending the error message to include the filename would allow the troublesome files to be identified with greater ease.
Comment | File | Size | Author |
---|---|---|---|
#2 | improved_error_messaging-1545692-2.patch | 1.01 KB | DeeLay |
#1 | improved_error_messaging-1545692-1.patch | 1.02 KB | DeeLay |
Comments
Comment #1
DeeLay CreditAttribution: DeeLay commentedAttached suggested patch
Comment #2
DeeLay CreditAttribution: DeeLay commentedOops, should have been $file->filename
Comment #3
pwolanin CreditAttribution: pwolanin as a volunteer and at Acquia commentedonly bug fixes now