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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | library-manager-3344329-3.patch | 2.36 KB | smulvih2 |
Comments
Comment #2
smulvih2@hyperlogos yes we should replace
file_create_url()with\Drupal::service('file_url_generator')->generateAbsoluteString(). We will need to inject thefile_url_generatorservice for this. If you create a patch for this I can get it into the 2.0.x branch for testing.Comment #3
smulvih2Patch attached to inject
file_url_generatorservice. Tested in one of my D10 projects and fixes the issue.Comment #4
smulvih2Added this to new release 2.0.4.