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.
Sadly, when I install this wonderful theme on my 8.1.8 prod site, I get the error:
The website encountered an unexpected error. Please try again later.
This error appear in drush ws --full:
133031 php Drupal\Core\Config\UnmetDependenciesException: Configuration objects (block.block.basic_help) provided by basic have unmet dependencies in Drupal\Core\Config\UnmetDependenciesException::cr error http://benia.biz/admin/appearance/default?theme=basic&token=4UUQJVc3KGFrS7zHbSwHqgw2zjtYbmEOnnMm4YWYW6U 79.180.7.140 20/Aug 08:42
Comment | File | Size | Author |
---|---|---|---|
#17 | winscp.JPG | 73.54 KB | Benia |
#8 | basic_optional-blocks-2787257-7.patch | 14.83 KB | leahtard |
Comments
Comment #2
joelpittetDo you have the block and help enabled? We may need to remove block config maybe...
Comment #3
Benia CreditAttribution: Benia commentedThanks!
Block was enabled but Help wasn't. Now, after enabling Help I can install the theme just fine.
I humbly suggest removing Help as a dependency because I never used it for my own personal projects (though I support keeping a region for that in the theme if many companies need it).
Comment #4
Benia CreditAttribution: Benia commentedComment #5
joelpittetI'll leave this open so we can do that, thanks for letting us know, got to figure out how to make those blocks optional
Comment #6
leahtard CreditAttribution: leahtard at The Jibe commentedThanks for reporting Benia! I found this: https://www.drupal.org/node/2453919. Looks like we can put the YML file in "config/optional".
Cheers, Leah
Comment #7
Benia CreditAttribution: Benia commentedI read in the link but I didn't quite understand what needs to be added to basic.info.yml
Is config/optional a info.yml library ? If so, what comes after
- config/optional ?
Thx,
Comment #8
leahtard CreditAttribution: leahtard at The Jibe commentedHey, I have attached a patch. It's actually the yml files in the basic/config/install folder that have to be moved to basic/config/optional. I have done this for all blocks as we really can't predict what modules a user could have enabled -- but welcome additional thoughts here.
Cheers, Leah
Comment #9
joelpittet@Benia, could you try that patch?
Inside your /themes/basic folder
curl https://www.drupal.org/files/issues/basic_optional-blocks-2787257-7.patch | patch -p1
And turn off the
help
module and see if that helps fix the error?Comment #10
joelpittetComment #11
Benia CreditAttribution: Benia commentedThat's the message I get.
Kinda new to patching so can't tell much about it is a whole.
Comment #12
joelpittet@Benia, did you rename basic or remove files from it yet? It looks like the patch command is trying to do what we said but things have changed (which is likely as that is how basic is meant to be used)
Comment #13
joelpittetThe patch is essentially doing this command:
mkdir -p config/optional && mv config/install/block.* config/optional/
I gave it a quick go and it seems to work so I'll change the status to RTBC
Comment #14
Benia CreditAttribution: Benia commentedI deleted the folder and downloaded Basic again from D.O (including the patch) and tried again and the same error comes back...
Comment #15
Benia CreditAttribution: Benia commentedComment #16
joelpittetYou need to be in the basic theme directory.
cd themes/basic
and run the patch from there. That patch message is not an error with the patch.Comment #17
Benia CreditAttribution: Benia commentedI installed the help module, navigated to benia.biz/themes/basic, putted there the patch file with my FTP client (Winscp), and then ran the patch, but I still get the same error.
I copied
curl https://www.drupal.org/files/issues/basic_optional-blocks-2787257-7.patch | patch -p1
to clipboard, and did shift+insert when in Bash.Stepped:
Comment #18
Benia CreditAttribution: Benia commentedMaybe because I'm in a shared server they don't allow me to use curl.
Also tried
mkdir -p config/optional && mv config/install/block.* config/optional/
and I get the error:create directory `config': No such file or directory
.Maybe its a bug in Putty. I don't know.
Anyhow, I suggest uploading a updated installation zip file and I will gladly install the theme with it.
Comment #19
joelpittetYeah that's an unusual error message saying "no such file or directory" on the thing it's trying to create... we can just commit the changes. Leah and I have both tested the patch and it fixes the problem.
Comment #21
leahtard CreditAttribution: leahtard at The Jibe commentedThanks everyone! This has now been committed.
Cheers, Leah