Problem/Motivation

This could happen if:
1. A user uploads a file
2. The user is deleted without purging his content or assigning it to Anonymous
3. Visiting a page where a link to the file shows up

Proposed resolution

Check that there is a user in the if block in webform_preprocess_file_link()

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Primsi created an issue. See original summary.

Primsi’s picture

Status: Active » Needs review
FileSize
704 bytes

No test atm.

  • Primsi authored 58658d2 on 8.x-5.x
    Issue #3100656 by Primsi: Fatal error when processing files of deleted...
jrockowitz’s picture

Status: Needs review » Fixed

Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.