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.
Problem/Motivation
Error after enabling Gin as Admin theme.
The website encountered an unexpected error. Please try again later.
Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException: The specified library claro/classy.book-navigation does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions() (line 105 of core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('classy') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('classy') (Line: 144)
Drupal\Core\Asset\LibraryDiscoveryCollector->applyLibrariesExtend('core', 'drupal.dialog', Array) (Line: 111)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('core') (Line: 66)
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('core') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('core') (Line: 44)
Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('core') (Line: 58)
Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('core', 'html5shiv') (Line: 54)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 31)
Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 104)
Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object) (Line: 116)
Drupal\Core\Asset\AssetResolver->getCssAssets(Object, ) (Line: 315)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 161)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
call_user_func(Array, Object, 'kernel.response', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object) (Line: 191)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 173)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Steps to reproduce
Install latest Gin theme in combination with Drupal 8.8.8
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#6 | 3084234-d8.9.0.patch | 732 bytes | Martijn de Wit |
| |||
#6 | 3084234-d8.8.8.patch | 1.02 KB | Martijn de Wit |
|
Comments
Comment #2
saschaeggiCould be that the libraries only exist in D 8.9+
Is it possible for you to update to D 8.9? If this would fix the problem I might need to bump up the required Drupal version to 8.9+.
Otherwise you could use a patch to remove this missing library for the time being.
I'll also have a look into this.
Comment #3
Martijn de WitI can try to update. The reason we are on 8.8.8 are some patches that are not 8.9 ready (yet).
Comment #4
Martijn de Wit---
Comment #5
saschaeggiWas more an idea to verify if the problem only appears on D 8.8.x :)
As a quickfix you might just want to remove the library which causes the issue from the info.yml file
Comment #6
Martijn de WitHad to remove all these libraries to get it working.
Made 2 patches:
Comment #7
Martijn de WitComment #9
saschaeggiI've checked the new libraries and it seems we don't need either of those adjustments. So I could safely remove them again. Which means the theme will stay compatible with D 8.8.x.
Please do a short review on D 8.8.8 if everything works like excepted and then we can include this into the next release.
Thanks for reporting
Comment #10
Martijn de WitNothing to report. Working like a charm now. I'm very happy with it.
Think this is fine to be released
Comment #11
saschaeggiWill be included in the next release which is due in the next days.
Thanks!
Comment #12
saschaeggiincluded in alpha26 release