When attempting to check libraries from admin/reports/libraries via "check assets" button, "The website encountered an unexpected error. Please try again later."
Error in log "Call to undefined function Drupal\library_manager\Form\file_create_url() in Drupal\library_manager\Form\AssetsCheckForm->submitForm() (line 111 of /var/www/sites/drupalsq/web/modules/contrib/library_manager/src/Form/AssetsCheckForm.php)."
This? https://www.drupal.org/node/2940031

CommentFileSizeAuthor
#3 library-manager-3344329-3.patch2.36 KBsmulvih2

Comments

hyperlogos created an issue. See original summary.

smulvih2’s picture

@hyperlogos yes we should replace file_create_url() with \Drupal::service('file_url_generator')->generateAbsoluteString(). We will need to inject the file_url_generator service for this. If you create a patch for this I can get it into the 2.0.x branch for testing.

smulvih2’s picture

Status: Active » Fixed
StatusFileSize
new2.36 KB

Patch attached to inject file_url_generator service. Tested in one of my D10 projects and fixes the issue.

smulvih2’s picture

Version: 2.0.0 » 2.0.3

Added this to new release 2.0.4.

Status: Fixed » Closed (fixed)

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