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
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Benia created an issue. See original summary.

joelpittet’s picture

Do you have the block and help enabled? We may need to remove block config maybe...

Benia’s picture

Thanks!

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

Benia’s picture

Status: Active » Fixed
joelpittet’s picture

Title: Error when installing the theme » Error when installing the theme with disabled help module
Status: Fixed » Active

I'll leave this open so we can do that, thanks for letting us know, got to figure out how to make those blocks optional

leahtard’s picture

Thanks 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

Benia’s picture

I 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,

leahtard’s picture

Hey, 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

joelpittet’s picture

@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?

joelpittet’s picture

Status: Active » Needs review
Benia’s picture

That's the message I get.

curl https://www.drupal.o                                                                                                                                                             rg/files/issues/basic_optional-blocks-2787257-7.patch | patch -p1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15183  100 15183    0     0   159k      0 --:--:-- --:--:-- --:--:--  168k
The next patch would delete the file config/install/block.block.basic_account_me                                                                                                                                                             nu.yml,
which does not exist!  Assume -R? [n]

Kinda new to patching so can't tell much about it is a whole.

joelpittet’s picture

@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)

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

The 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

Benia’s picture

Status: Reviewed & tested by the community » Needs review

I deleted the folder and downloaded Basic again from D.O (including the patch) and tried again and the same error comes back...

zantech0@siteground341 [~]# cd www/benia.biz
zantech0@siteground341 [~/www/benia.biz]# curl https://www.drupal.org/files/issu          es/basic_optional-blocks-2787257-7.patch | patch -p1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15183  100 15183    0     0   678k      0 --:--:-- --:--:-- --:--:--  872k
The next patch would delete the file config/install/block.block.basic_account_me          nu.yml,
which does not exist!  Assume -R? [n] ^C
Benia’s picture

Status: Needs review » Active
joelpittet’s picture

Status: Active » Reviewed & tested by the community

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

Benia’s picture

FileSize
73.54 KB

I 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:

zantech0@siteground341 [~/www/benia.biz/themes/basic]#
rg/files/issues/basic_optional-blocks-2787257-7.patch | patch -p1://www.drupal.o
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15183  100 15183    0     0   960k      0 --:--:-- --:--:-- --:--:--  988k
The next patch would delete the file config/install/block.block.basic_account_menu.yml,
which does not exist!  Assume -R? [n]
Benia’s picture

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

joelpittet’s picture

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

  • leahtard authored 3b294d7 on 8.x-1.x
    Issue #2787257 by leahtard, Benia, joelpittet: Error when installing the...
leahtard’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone! This has now been committed.

Cheers, Leah

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.