Library name issue (datetimepicker vs. jquery-datetimepicker)

Created on 3 April 2024, 8 months ago
Updated 30 May 2024, 6 months ago

Problem/Motivation

I can only get the module working correctly on Drupal 10 if I follow the instructions and then rename the library folder to "jquery-datetimepicker".

Steps to reproduce

Add the datetimepicker library dependency per the module instructions. The module doesn't work.

Get error: WARNING: FILE_GET_CONTENTS(LIBRARIES/JQUERY-DATETIMEPICKER/BUILD/JQUERY.DATETIMEPICKER.MIN.CSS): FAILED TO OPEN STREAM: NO SUCH FILE OR DIRECTORY IN DRUPAL\CORE\ASSET\CSSCOLLECTIONOPTIMIZERLAZY->GENERATEHASH() (LINE 43 OF CORE/LIB/DRUPAL/CORE/ASSET/ASSETGROUPSETHASHTRAIT.PHP).
WARNING: FILE_GET_CONTENTS(LIBRARIES/JQUERY-DATETIMEPICKER/BUILD/JQUERY.DATETIMEPICKER.FULL.JS): FAILED TO OPEN STREAM: NO SUCH FILE OR DIRECTORY IN DRUPAL\CORE\ASSET\JSCOLLECTIONOPTIMIZERLAZY->GENERATEHASH() (LINE 43 OF CORE/LIB/DRUPAL/CORE/ASSET/ASSETGROUPSETHASHTRAIT.PHP).
Drupal\Core\Asset\JsCollectionOptimizerLazy->generateHash(Array) (Line: 134)
Drupal\Core\Asset\JsCollectionOptimizerLazy->optimize(Array, Array) (Line: 306)
Drupal\Core\Asset\AssetResolver->getJsAssets(Object, 1, Object) (Line: 328)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 165)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 97)
Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->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(Object, 'kernel.response') (Line: 214)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 202)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
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: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Change the name of the library folder to "jquery-datetimepicker" and then it seems to work as expected.

Proposed resolution

Update instructions?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States risforrocket

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

Comments & Activities

Production build 0.71.5 2024