Warning : file_get_contents(libraries/jquery.hover-intent/jquery.hoverIntent.js): Failed to open stream: No such file or directory dans _locale_parse_js_file() (/var/www/web/core/modules/locale/locale.module ligne 1097)

Created on 27 December 2024, about 2 months ago
Updated 2 February 2025, 22 days ago

Problem/Motivation

I've gor this error :

Warning : file_get_contents(libraries/jquery.hover-intent/jquery.hoverIntent.js): Failed to open stream: No such file or directory dans _locale_parse_js_file() (/var/www/web/core/modules/locale/locale.module ligne 1097)
#0 /var/www/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/www/web/core/modules/locale/locale.module(1097): file_get_contents()
#3 /var/www/web/core/modules/locale/locale.module(529): _locale_parse_js_file()
#4 /var/www/web/core/modules/locale/locale.module(485): locale_js_translate()
#5 /var/www/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(552): locale_js_alter()
#6 /var/www/web/core/lib/Drupal/Core/Asset/AssetResolver.php(313): Drupal\Core\Extension\ModuleHandler->alter()
#7 /var/www/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(330): Drupal\Core\Asset\AssetResolver->getJsAssets()
#8 /var/www/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(167): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries()
#9 /var/www/web/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments()
#10 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond()
#11 /var/www/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#12 /var/www/vendor/symfony/http-kernel/HttpKernel.php(214): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#13 /var/www/vendor/symfony/http-kernel/HttpKernel.php(202): Symfony\Component\HttpKernel\HttpKernel->filterResponse()
#14 /var/www/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /var/www/web/modules/contrib/simple_oauth/src/HttpMiddleware/BasicAuthSwap.php(68): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /var/www/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle()
#17 /var/www/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#18 /var/www/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#19 /var/www/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle()
#20 /var/www/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#21 /var/www/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#22 /var/www/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#23 /var/www/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#24 /var/www/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#25 /var/www/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#26 /var/www/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#27 {main}

Steps to reproduce

Drupal 10.3
PHP 8.1

Proposed resolution

In file /modules/contrib/views_slideshow/modules/views_slideshow_cycle/src/Commands/ViewsSlideshowCycleCommands.php, line 53 change 'libraries/jquery.hover-intent' by 'libraries/jquery.hoverIntent'

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇬🇧United Kingdom joehuggans Harrogate, UK

    I don't believe this is fixing anything, it just appears to be because the error message goes away or doesn't go away.

    I've found you need to clear the cache twice to be sure, no further clearing of the cache creates the error if the folder name is correct

    To create this error consistently I have found you need to

    1. Create a view as a views slideshow
    2. Go to the page with the slideshow
    3. Clear cache twice to check if the error happens.
    4. Clear the cache again to be sure

    I have found that it does happen when the folder in question is called jquery.hoverIntent but not as it originally is as jquery.hover-intent

Production build 0.71.5 2024