I am running a very test version of D8 on an Ubuntu 14.04 Server (with a Lubuntu GUI) with PHP 5.5.9-1ubuntu4.11. There are no extra modules other than Core installed (though I have enabled the REST Services and Serialization modules).
I want to install the REST UI module. Because I am running behind a company proxy, I download the (dev version) module and in the install screen I choose the downloaded tar.gz file. I get asked for the FTP password (bit weird, I can't quite work out the permissions that would allow me to avoid this step, but I'm used to using it on a test installation of D7 on the same machine), and I immediately get the WSOD with this message:

The website encountered an unexpected error. Please try again later.
Drupal\Core\Form\EnforcedResponseException: in Drupal\Core\Form\FormBuilder->buildForm() (line 309 of core/lib/Drupal/Core/Form/FormBuilder.php).

In beta12 I got the same message but with a different line number and a prettier display (cf screenshot).
I have marked this as critical because I can't see Drupal being a hit with module install not working (and I am a massive Drupal fan so I want it to be a hit), and have put this in the "extension system" because that seemed the most logical place for it. I hope that is the right thing to do.

CommentFileSizeAuthor
Drupal8InstallBug.jpg22.59 KBmartin.knapp

Comments

martin.knapp created an issue. See original summary.

dawehner’s picture

Priority: Critical » Major

To be clear, problems with the module download UI is not critical, see #2352637: Remove the UI for installing/updating modules from update module if it is not fixed in time for release. I would recommend to download you the file manually and then install the module on /admin/extend

Manually installing the restUI module works fine.

bill richardson’s picture

Status: Active » Closed (duplicate)

See #2042447 -- patch is waiting to be committed which fixes this error.

klabautermann86’s picture

In the Drupal 8 RC3 this bug still shows up when installing any module or theme.

solidwebcode’s picture

This issue still exists, although line number changed.

The website encountered an unexpected error. Please try again later.
Drupal\Core\Form\EnforcedResponseException: in Drupal\Core\Form\FormBuilder->buildForm() (line 349 of core/lib/Drupal/Core/Form/FormBuilder.php).

This on a clean install, after filling in FTP credentials... which means I am unable to use the FTP to upload themes or modules..

cilefen’s picture

Title: Module install fails with WSOD » Module install via FTP upload fails with WSOD
cilefen’s picture

Status: Closed (duplicate) » Active

@solidwebcode Did that error come with a stack trace?

catch’s picture

Component: extension system » update.module
gktirol’s picture

I had to change /sites/default/ chown to "www-data" and the problem is fixed

cilefen’s picture

@gktirol If that is the general issue we simply need better error handling in the situation with unwritable directories.

klabautermann86’s picture

I can confirm @gktirol. After changing /sites/default/ chown to "www-data" the problem is fixed.

cilefen’s picture

Title: Module install via FTP upload fails with WSOD » Module install via FTP upload fails with WSOD when the destination sites/default is unwritable