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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Todd Young created an issue. See original summary.

budalokko’s picture

Status: Active » Needs review
FileSize
493 bytes

Thank 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.

slashrsm’s picture

Status: Needs review » Fixed

Committed! Thanks.

  • slashrsm committed fb3b1e0 on 8.x-1.x authored by budalokko
    Issue #2607680 by budalokko: Immediate crash on install with Nov 3rd dev...
Todd Young’s picture

Status: Fixed » Closed (fixed)

Closing as fixed. Thanks!