LibraryDiscoveryParser::buildByExtension() Notice

Created on 17 December 2020, about 4 years ago
Updated 17 November 2024, about 1 month ago

Problem/Motivation

Less php notice spam in my logs.

Notice: Trying to access array offset on value of type int in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 203 of /app/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php)
#0 /app/docroot/core/includes/bootstrap.inc(600): _drupal_error_handler_real(8, 'Trying to acces...', '/app/docroot/co...', 203, Array)
#1 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(203): _drupal_error_handler(8, 'Trying to acces...', '/app/docroot/co...', 203, Array)
#2 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('freitag')
#3 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('freitag')
#4 /app/docroot/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('freitag')
#5 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\Core\Cache\CacheCollector->get('freitag')
#6 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('freitag')
#7 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(54): Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('freitag', 'global-build')
#8 /app/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(31): Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array)
#9 /app/docroot/core/lib/Drupal/Core/Asset/AssetResolver.php(105): Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array)
#10 /app/docroot/core/lib/Drupal/Core/Asset/AssetResolver.php(116): Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object(Drupal\Core\Asset\AttachedAssets))
#11 /app/docroot/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php(144): Drupal\Core\Asset\AssetResolver->getCssAssets(Object(Drupal\Core\Asset\AttachedAssets), true)
#12 /app/docroot/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php(113): Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor->buildAttachmentsCommands(Object(Drupal\Core\Ajax\AjaxResponse), Object(Symfony\Component\HttpFoundation\Request))
#13 /app/docroot/core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php(62): Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Ajax\AjaxResponse))
#14 [internal function]: Drupal\Core\EventSubscriber\AjaxResponseSubscriber->onResponse(Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#15 /app/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#16 /app/vendor/symfony/http-kernel/HttpKernel.php(191): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent))
#17 /app/vendor/symfony/http-kernel/HttpKernel.php(173): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Ajax\AjaxResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#18 /app/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#19 /app/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /app/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /app/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /app/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /app/docroot/modules/contrib/shield/src/ShieldMiddleware.php(166): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /app/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /app/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /app/docroot/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /app/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#29 {main}
💬 Support request
Status

Closed: works as designed

Version

11.0 🔥

Component

asset library system

Created by

🇩🇪Germany DiDebru

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024