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.
In filefield.inc, the function filefield_filefield_paths_get_fields() is unsetting $file['data']['process']
if it's an array. But that value does not always exist - an apparent example is an empty File field. This produces a PHP error notice:
Notice: Undefined index: process in filefield_filefield_paths_get_fields() (line 62 of /path/to/filefield_paths/modules/filefield.inc).
Comment | File | Size | Author |
---|---|---|---|
#1 | filefield_paths-undefined-process-2079779-1.patch | 487 bytes | brad.bulger |
Comments
Comment #1
brad.bulger CreditAttribution: brad.bulger commentedAdd a test that the key exists before checking if its value is an array.
Comment #2
fprevos2 CreditAttribution: fprevos2 commentedThe patch works for me.
Comment #3
Deciphered CreditAttribution: Deciphered commentedNo longer supporting Drupal 6 issues for this module.