Hello,

I can't install the module because the following error is output.

"Unable to install Paragraphs Table of Contents due to unmet dependencies: block.block.views_block__ptoc_block_1 (bartik)"

Hope this is helpful :)

CommentFileSizeAuthor
#5 2875858-ptoc-5.patch289 bytesbenjifisher
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kingfisher64 created an issue. See original summary.

FleurJ’s picture

Hi kingfisher64,

I hope you solved the problem since then. Just in case : I had the same problem today and solved it by enabling bartik theme even if I don't use it.

Liliplanet’s picture

Yes please, if we could remove dependency on Bartik would be awesome :)

Dakwamine’s picture

I am not sure if it is possible to remove the dependency to a theme as blocks are meant to be added to a theme layout.

I think it would be better to have this block not installed on module install and just tell in the README to add this block in a region of the current active theme. It is pretty obvious we, as site builders, would have to add this block somewhere, some time.

benjifisher’s picture

Title: Unmet dependencies: block.block.views_block__ptoc_block_1 » Unmet dependencies when Bartik is disabled: block.block.views_block__ptoc_block_1
Status: Active » Needs review
FileSize
289 bytes

Thanks to @kingfisher64 for reporting the problem and to @FleurJ for explaining the work-around.

I think all we have to do is move the YAML file for the block from the config/install/ directory to config/optional/. I just did this, and the module installed cleanly on a site with Bartik disabled. Even better: once I installed Bartik (just installed, not made the default) the block was enabled for the Bartik theme.

I thought I would also have to add a few lines to the README, but I already see this:

2. Go to Administration > Structure > Block (`/admin/structure/block`) and
   place the ToC block in a region. (If you are using the core Bartik theme,
   then the block should already be in the "Sidebar first" region.)

Please give this patch a try.

benjifisher’s picture

  • benjifisher committed 370f4cb on 8.x-1.x
    Issue #2875858 by benjifisher: Unmet dependencies when Bartik is...
benjifisher’s picture

Status: Needs review » Fixed

It is time to get this issue fixed, even though I was not able to find anyone to test it.

Status: Fixed » Closed (fixed)

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