Re-opining(3110584) module unable to save high_contrast.css ?

Created on 10 April 2021, about 3 years ago
Updated 3 June 2024, 27 days ago

Still getting same error in beta4.

WSOD during attempt of save settings in /admin/config/user-interface/high-contrast (unable to save high_contrast.css? )

Error: Call to undefined method Drupal\high_contrast\Form\HighContrastConfigurationForm::validatePath() w Drupal\high_contrast\Form\HighContrastConfigurationForm->validateForm() (linia 169 w /home/xxx/modules/high_contrast/src/Form/HighContrastConfigurationForm.php) #0 [internal function]: Drupal\high_contrast\Form\HighContrastConfigurationForm->validateForm(Array, Object(Drupal\Core\Form\FormState)) #1 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(82): call_user_func_array(Array, Array) #2 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(275): Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object(Drupal\Core\Form\FormState)) #3 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormValidator.php(118): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState), 'high_contrast_c...') #4 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(576): Drupal\Core\Form\FormValidator->validateForm('high_contrast_c...', Array, Object(Drupal\Core\Form\FormState)) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(319): Drupal\Core\Form\FormBuilder->processForm('high_contrast_c...', Array, Object(Drupal\Core\Form\FormState)) #6 /var/www/html/drupal8/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\high_contrast\Form\HighContrastConfigurationForm), Object(Drupal\Core\Form\FormState)) #7 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #8 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #9 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #10 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #11 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #12 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #13 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #14 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #23 {main}.

And (during click of /high-contrast/enable?destination=/node )
Warning: filemtime(): stat failed for public://css/high_contrast.css w high_contrast_library_info_build() (linia 23 w /home/xxx/modules/high_contrast/high_contrast.module) #0 /var/www/html/drupal8/core/includes/bootstrap.inc(587): _drupal_error_handler_real(2, 'filemtime(): st...', '/home/xxx...', 23, Array) #1 [internal function]: _drupal_error_handler(2, 'filemtime(): st...', '/home/xxx...', 23, Array) #2 /home/xxx/modules/high_contrast/high_contrast.module(23): filemtime('public://css/hi...') #3 [internal function]: high_contrast_library_info_build() #4 /var/www/html/drupal8/core/lib/Drupal/Core/Extension/ModuleHandler.php(392): call_user_func_array('high_contrast_l...', Array) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(314): Drupal\Core\Extension\ModuleHandler->invoke('high_contrast', 'library_info_bu...') #6 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(86): Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo('high_contrast', 'sites/all/modul...') #7 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('high_contrast') #8 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('high_contrast') #9 /var/www/html/drupal8/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('high_contrast') #10 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\Core\Cache\CacheCollector->get('high_contrast') #11 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('high_contrast') #12 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(54): Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('high_contrast', 'high_contrast') #13 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(31): Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) #14 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/AssetResolver.php(104): Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) #15 /var/www/html/drupal8/core/lib/Drupal/Core/Asset/AssetResolver.php(116): Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object(Drupal\Core\Asset\AttachedAssets)) #16 /var/www/html/drupal8/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(315): Drupal\Core\Asset\AssetResolver->getCssAssets(Object(Drupal\Core\Asset\AttachedAssets), false) #17 /var/www/html/drupal8/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(161): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array) #18 /var/www/html/drupal8/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\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #20 /var/www/html/drupal8/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)) #21 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(191): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent)) #22 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(173): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1) #23 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #24 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #33 {main}.

🐛 Bug report
Status

Active

Component

Code

Created by

🇮🇳India Bunty Badgujar Delhi

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.

  • 🇺🇿Uzbekistan biarr

    I confirm the error,
    I'm getting this error after user the module for some time. Only reinstalling temporarily solves the problem, but it starts again.

    Error message
    Warning: filemtime(): stat failed for public://css/high_contrast.css in high_contrast_library_info_build() (line 28 of modules/contrib/high_contrast/high_contrast.module).
    
    high_contrast_library_info_build()
    call_user_func_array(Object, Array) (Line: 400)
    Drupal\Core\Extension\ModuleHandler->invoke('high_contrast', 'library_info_build') (Line: 374)
    Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo('high_contrast', 'modules/contrib/high_contrast') (Line: 130)
    Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('high_contrast') (Line: 87)
    Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('high_contrast') (Line: 66)
    Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('high_contrast') (Line: 149)
    Drupal\Core\Cache\CacheCollector->get('high_contrast') (Line: 44)
    Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('high_contrast') (Line: 58)
    Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('high_contrast', 'high_contrast') (Line: 68)
    Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 41)
    Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 87)
    Drupal\Core\Asset\LibraryDependencyResolver->getMinimalRepresentativeSubset(Array) (Line: 113)
    Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object) (Line: 131)
    Drupal\Core\Asset\AssetResolver->getCssAssets(Object, , Object) (Line: 321)
    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)
    
    
Production build 0.69.0 2024