Problem/Motivation

When installing Drupal 9.0.1 with the minimal profile, changing the Gin theme settings results in a PHP error.
The error is: Call to undefined function _file_save_upload_from_form().

Proposed resolution

Only call the _file_save_upload_from_form() function if the file module is enabled.

Remaining tasks

The patch will be uploaded soon, afterwards some reviews are needed.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

-

CommentFileSizeAuthor
#2 php_error_on_saving-3153670-2.patch576 bytesdpacassi

Comments

dpacassi created an issue. See original summary.

dpacassi’s picture

StatusFileSize
new576 bytes

See attached patch for a fix.

dpacassi’s picture

Status: Active » Needs review

  • saschaeggi committed cf1d7e0 on 8.x-3.x authored by dpacassi
    Issue #3153670 by dpacassi: PHP error when saving gin settings on a new...
saschaeggi’s picture

Status: Needs review » Fixed

Thanks for providing a patch. Tested with D 9.0.0 and 9.0.1 with minimal Profile.

saschaeggi’s picture

Included in Alpha20

saschaeggi’s picture

Status: Fixed » Closed (fixed)