- ๐ฎ๐ณIndia ankitv18
W.r.t comment #21, I've encountered Error Message 2 while using Site Studio 7.0.x
Drupal version: 10.0.2
Site Studio: 7.0.0
CKEditor 5
PHP: 8.1.11 - ๐ช๐ธSpain jmohino
I have the same error with jquery_ui_draggable, line 63 in file ExtensionPathResolver.php. You would also have to change line 58 of the file in the patch:
-return $this->extensionLists[$type]->getPathname($name); +return $this->extensionLists[$type]->getPathname($name ?? '');
User warning: The following theme is missing from the file system: jquery_ui_draggable en Drupal\Core\Extension\ExtensionPathResolver->getPathname() (lรญnea 63 de /var/www/html/miguelturra/web/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php)
- ๐ซ๐ทFrance aiphes
Hello,
After enabled , I get this error too:
> [success] Successfully enabled: jquery_ui_draggable $ drush @sited9pf pml --filter=drag ----------- ------------------------------------------- ---------- --------- Package Name Status Version jQuery UI jQuery UI Draggable (jquery_ui_draggable) Enabled 8.x-1.5
Result on:
Deprecated function : dirname(): Passing null to parameter #1 ($path) of type string is deprecated dans Drupal\Core\Extension\ExtensionPathResolver->getPath() (/home/xxx/www/xxx/sited9/web/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php ligne 85)
D953 + PHP 8.1.6
Thanks
- Status changed to Postponed: needs info
over 1 year ago 10:21am 20 February 2023 We need the root cause and verified steps to reproduce that begin with โInstall Drupalโ that you have actually reproduced. I think that situation has not changed since comment #11.
- ๐ซ๐ทFrance Tritof
Hello,
After Upgrading Drupal 9.3 > 9.5 + modules, I had the same double warning issue :
User warning: The following theme is missing from the file system: jquery_ui_autocomplete in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
Deprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
User warning: The following theme is missing from the file system: jquery_ui_menu in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
Deprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
Both modules jquery_ui_autocomplete and jquery_ui_menu were required and downloaded during update without activation ( https://www.drupal.org/project/jquery_ui_autocomplete/issues/3328939 ๐ Missing Libraries file? Closed: works as designed ).
Once the modules activated, all the warnings disappeared, including "Deprecated function: dirname(): Passing null to parameter #1..."
- ๐ธ๐ฐSlovakia lubwn
I had this error with jquery_ui_slider and indeed as stated in #27 actually downloading the module and enabling it, even when not used anywhere on the website it solved the errors present in dblog / occasionaly presented on frontend.
I wonder why / how this happens but so far this is a good solution for me.
- ๐บ๐ธUnited States loopy1492
We were getting this error on the reports page. I assume it was actually the admin menu? Not sure. Either way, enabling jquery_ui_menu did the trick. Not sure why updb never enabled the module for us if it was suddenly required for some functionality to work.
Both of these errors were on...
Location /admin/reports/updates
Referrer /admin/reportsDeprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of /var/www/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php)
#0 /var/www/docroot/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8192, 'dirname(): Pass...', '/var/www/docroo...', 85)
#1 [internal function]: _drupal_error_handler(8192, 'dirname(): Pass...', '/var/www/docroo...', 85)
#2 /var/www/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(85): dirname(NULL)
#3 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(135): Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'jquery_ui_menu')
#4 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('jquery_ui_menu')
#5 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('jquery_ui_menu')
#6 /var/www/docroot/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('jquery_ui_menu')
#7 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\Core\Cache\CacheCollector->get('jquery_ui_menu')
#8 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('jquery_ui_menu')
#9 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(68): Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('jquery_ui_menu', 'menu')User warning: The following theme is missing from the file system: jquery_ui_menu in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of /var/www/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php)
#0 /var/www/docroot/core/includes/bootstrap.inc(347): _drupal_error_handler_real(512, 'The following t...', '/var/www/docroo...', 63)
#1 [internal function]: _drupal_error_handler(512, 'The following t...', '/var/www/docroo...', 63)
#2 /var/www/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(63): trigger_error('The following t...', 512)
#3 /var/www/docroot/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(85): Drupal\Core\Extension\ExtensionPathResolver->getPathname('theme', 'jquery_ui_menu')
#4 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(135): Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'jquery_ui_menu')
#5 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('jquery_ui_menu')
#6 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('jquery_ui_menu')
#7 /var/www/docroot/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('jquery_ui_menu')
#8 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\Core\Cache\CacheCollector->get('jquery_ui_menu')
#9 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('jquery_ui_menu')
#10 /var/www/docroot/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(68): Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('jquery_ui_menu', 'menu') - ๐ช๐จEcuador jwilson3
We're getting this error message when testing Drupal 9 with Site Studio 7, where we have not yet enabled CKeditor 5 module (because we're not on Drupal 10 yet).
Deprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php). Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'ckeditor5') (Line: 135) Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('ckeditor5') (Line: 87) Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('ckeditor5') (Line: 66) Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('ckeditor5') (Line: 149) Drupal\Core\Cache\CacheCollector->get('ckeditor5') (Line: 44) Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('ckeditor5') (Line: 58) Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('ckeditor5', 'internal.drupal.ckeditor5') (Line: 68) Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array, Array) (Line: 70) Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 41) Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 104) Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object) (Line: 116) Drupal\Core\Asset\AssetResolver->getCssAssets(Object, 1) (Line: 311) Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 157) Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 93) Drupal\cohesion\Render\CohesionAttachmentsProcessor->processAttachments(Object) (Line: 45) Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object) call_user_func(Array, Object, 'kernel.response', Object) (Line: 142) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.response') (Line: 202) Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 190) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) 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: 270) Drupal\shield\ShieldMiddleware->bypass(Object, 1, 1) (Line: 137) Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - ๐บ๐ธUnited States bwoods
I ran into this same problem, and it seemed at first if the patch in #31 worked. However, when I looked a little more closely, I realized the actual issue was that my custom theme was calling two libraries that were not actually enabled (one via a module, one via a theme). These calls were outdated, so once I removed, the notice disappeared, even without this patch.
- ๐ซ๐ฎFinland sokru
Still an issue with 10.1.7. From production logs I noticed the issue was triggered by wrong query parameter on aggregated css/js assets. Oddly it was adding query parameter
&theme=site_b
, when the only available theme issite_a
. We have two drupal platforms, which are hosted by different vendors, but authentication is done with Samlauth/SSO, which indicates the user was first logged into site_b and then arrived to site_a which caused the wrong query parameter to be generated. - ๐จ๐ฆCanada sagesolutions
I ran into this issue as well. Turns out I still had
{{ attach_library('classy/node') }}
in my twig template files which was causing the issue. The issue disappeared once I removed that line from all my template files.
- ๐ณ๐ฑNetherlands Summit
Hi, I think this patch is also needed on new drupal 10.3.0.
After installing that version, this depreciation message occurs.
Greetings, - ๐ฉ๐ชGermany Anybody Porta Westfalica
@cilefen re #26 is there a related issue in that project or was that fixed in the meantime?
Eventually related to ๐ฌ The following theme is missing from the file system: jquery_ui_draggable Active ? - ๐บ๐ธUnited States scottsawyer Atlanta
I had a similar problem with jquery_ui_accordion, library not loading, missing theme extension, passing null to dirname(). I installed the patch, which did not immediately fix the problem. I disabled then re-enabled jquery_ui_accordion, and it started loading the library. I removed the patch and it still works. I think Drupal just needed a brain flush, and now I do too.
Not sure if this should be committed, but maybe keep it open for visibility?