The use of file_stream_wrapper_get_* functions were deprecated in D8 see https://www.drupal.org/node/2382859

Using them causes a 500 error. The function should be updated to use the function listed here: https://www.drupal.org/node/2392559

Patch incoming.

Comments

Paul Rowell created an issue. See original summary.

paul rowell’s picture

StatusFileSize
new624 bytes

Patch attached, this replaces file_stream_wrapper_get_instance_by_scheme with \Drupal::service('stream_wrapper_manager')->getViaScheme($scheme)

paul rowell’s picture

Status: Active » Needs review
fizk’s picture

Thanks Paul! I'll take a look at this.

paul rowell’s picture

Hi fizk,

Sorry to chase on this, does the patch look ok?

  • fizk committed 7ca6fda on 8.x-1.x
    Issue #2865362 by Paul Rowell:...
fizk’s picture

Sorry Paul! This looks great, committed.

fizk’s picture

Status: Needs review » Fixed
fizk’s picture

8.x-1.1 release pushed.

Status: Fixed » Closed (fixed)

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