-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation of Drupal 8.4.4 with SubProfile throws exception #184
Comments
Ok this issue might also be related to #183 |
Maybe we should try the patch at the end that seemed to pass most cases? |
Seems like no matter what it picks up the first profile in the profiles directory, puts that information into the database cache tables as well as config. Then checks to make sure the profile name is set into the $profiles array and if not, then throws the error. But its always coming up with something other then system first. if (!isset($profiles[$name])) { If you look at the returned result of The results look like this: ) Shouldn't the array be complete with all profiles being returned with the name of the profile as the key from the $this->profileHandler->getProfileInheritance function? THIS IS A NON-ISSUE PROFILE is selected because its the first Distribution in Alphabetical order. |
Even if I pick a different profile in the settings.php it goes and installs the cache_container data as though its installing lightning here. The current profile should be system at this point, since I have yet to pick out or install a profile. I forced it to think it was installing sitefarm_subprofile, but again I get the same error. It set the cache_container data column to include the sitefarm_subprofile but at this stage of the installation it really shouldn't be inserting data into the database and the only profile it should be referring to is the system only. |
Some additional notes, Drupal seems to pick whatever the first "Distribution" is in the list. So in this case Lightning, this is why you never end up on the "Select a Profile" page. I think this is a bad decision especially if you have multiple distro's in the your profile folder. Also the error happens regardless of how many profiles are available to install, seems to be something in the installation process where its prepping the database but then tries to do it twice. |
I can confirm that this is happening on 8.4.2 as well. I have two subprofiles in the /profiles directory, "sitefarm_subprofile" and "ucmerced_subprofile". The sitefarm_subprofile is always installed if it's present. Once I remove it, the second subprofile is installed instead. I never see a "Select a Profile" page. |
I'm still seeing this with 8.5.4. I made an issue here: ucdavis/sitefarm-distro-template#21 Not sure if that one should be closed in favor of this one? |
#188 I believe resolves this. |
#198 has everything working with 8.6. I assume people are now on that version so am closing this. |
The patch being used is incorrect. Drupal 8.4.4 needs to use the patch here: https://www.drupal.org/files/issues/1356276-419--8.4.4.patch
The text was updated successfully, but these errors were encountered: