NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

Error in logs about a missing theme #4505

Open bryanpizzillo opened 3 days ago

bryanpizzillo commented 3 days ago

Issue description

ESTIMATE TBD

The stack error is below. We do not have the js_cookie module installed, but an issue on Drupal.org, https://www.drupal.org/project/js_cookie/issues/3457545#comment-15682973, seems to imply this has some relationship to the Automated Logout module. It seems this was introduced in #1700. I don't know what the js_cookie module is for exactly, other than it is needed by autologout.

User warning: The following theme is missing from the file system: js_cookie in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php)
#0 /mnt/www/html/ncigov01dev/docroot/core/includes/bootstrap.inc(164): _drupal_error_handler_real(512, 'The following t...', '/mnt/www/html/n...', 63)
#1 [internal function]: _drupal_error_handler(512, 'The following t...', '/mnt/www/html/n...', 63)
#2 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(63): trigger_error('The following t...', 512)
#3 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(85): Drupal\Core\Extension\ExtensionPathResolver->getPathname('theme', 'js_cookie')
#4 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(127): Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'js_cookie')
#5 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('js_cookie')
#6 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('js_cookie')
#7 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('js_cookie')
#8 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\Core\Cache\CacheCollector->get('js_cookie')
#9 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('js_cookie')
#10 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(68): Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('js_cookie', 'js-cookie')
#11 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(70): Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array, Array)
#12 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(41): Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array)
#13 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(87): Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array)
#14 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/AssetResolver.php(113): Drupal\Core\Asset\LibraryDependencyResolver->getMinimalRepresentativeSubset(Array)
#15 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/AssetResolver.php(131): Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object(Drupal\Core\Asset\AttachedAssets))
#16 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(321): Drupal\Core\Asset\AssetResolver->getCssAssets(Object(Drupal\Core\Asset\AttachedAssets), true, Object(Drupal\Core\Language\Language))
#17 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(165): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#18 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#19 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#20 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#21 /mnt/www/html/ncigov01dev/vendor/symfony/http-kernel/HttpKernel.php(214): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#22 /mnt/www/html/ncigov01dev/vendor/symfony/http-kernel/HttpKernel.php(202): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#23 /mnt/www/html/ncigov01dev/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#24 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /mnt/www/html/ncigov01dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /mnt/www/html/ncigov01dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /mnt/www/html/ncigov01dev/docroot/modules/contrib/shield/src/ShieldMiddleware.php(263): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /mnt/www/html/ncigov01dev/docroot/modules/contrib/shield/src/ShieldMiddleware.php(130): Drupal\shield\ShieldMiddleware->bypass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 /mnt/www/html/ncigov01dev/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#37 {main}

This also seems to come with

Deprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php)
#0 /mnt/www/html/ncigov01dev/docroot/core/includes/bootstrap.inc(164): _drupal_error_handler_real(8192, 'dirname(): Pass...', '/mnt/www/html/n...', 85)
#1 [internal function]: _drupal_error_handler(8192, 'dirname(): Pass...', '/mnt/www/html/n...', 85)
#2 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(85): dirname(NULL)
#3 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(127): Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'js_cookie')
#4 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('js_cookie')
#5 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('js_cookie')
#6 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('js_cookie')
#7 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\Core\Cache\CacheCollector->get('js_cookie')
#8 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('js_cookie')
#9 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(68): Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('js_cookie', 'js-cookie')
#10 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(70): Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array, Array)
#11 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(41): Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array)
#12 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(87): Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array)
#13 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/AssetResolver.php(113): Drupal\Core\Asset\LibraryDependencyResolver->getMinimalRepresentativeSubset(Array)
#14 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Asset/AssetResolver.php(131): Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object(Drupal\Core\Asset\AttachedAssets))
#15 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(321): Drupal\Core\Asset\AssetResolver->getCssAssets(Object(Drupal\Core\Asset\AttachedAssets), true, Object(Drupal\Core\Language\Language))
#16 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(165): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#17 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#18 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#19 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#20 /mnt/www/html/ncigov01dev/vendor/symfony/http-kernel/HttpKernel.php(214): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#21 /mnt/www/html/ncigov01dev/vendor/symfony/http-kernel/HttpKernel.php(202): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#22 /mnt/www/html/ncigov01dev/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#23 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /mnt/www/html/ncigov01dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /mnt/www/html/ncigov01dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /mnt/www/html/ncigov01dev/docroot/modules/contrib/shield/src/ShieldMiddleware.php(263): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /mnt/www/html/ncigov01dev/docroot/modules/contrib/shield/src/ShieldMiddleware.php(130): Drupal\shield\ShieldMiddleware->bypass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /mnt/www/html/ncigov01dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /mnt/www/html/ncigov01dev/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}