Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Running a fresh RC2 and today's dev version, got this error immediately after enabling the module:
Fatal error: Call to undefined function url() in /xyz/modules/plupload/plupload.install on line 29
Comment | File | Size | Author |
---|---|---|---|
#2 | plupload.inmediate_crash_on_install_without_plupload_library-2607680-2.patch | 493 bytes | budalokko |
Comments
Comment #2
budalokko CreditAttribution: budalokko as a volunteer commentedThank you for taking the time to test the module.
Attached patch solves the problem, which happens when plupload library has not been downloaded yet in libraries directory.
The patch removes an url() call and puts directly an external URL (picked from plupload.libraries.yml) on a message for the user. Instead of this, the url() call could be replaced by
\Drupal\Core\Url::fromUri($library['website'])->toString(),
but I am unable to see any validation on the URL when doing this, so it seems unnecessary. Also some lines below, we do something similar with another URL and the URL is placed as is too.
Comment #3
slashrsm CreditAttribution: slashrsm at Examiner.com commentedCommitted! Thanks.
Comment #5
Todd Young CreditAttribution: Todd Young commentedClosing as fixed. Thanks!