Hello,

My Drupal version is 9.4.8

After updating the module from v 2.0.3 to v 3.0.0 and after a drush cr, I get this error:

Error message
Warning: file_get_contents(libraries/dompurify/dist/purify.min.js): Failed to open stream: No such file or directory in _locale_parse_js_file() (line 1114 of core/modules/locale/locale.module).

_locale_parse_js_file('libraries/dompurify/dist/purify.min.js') (Line: 549)
locale_js_translate(Array) (Line: 509)
locale_js_alter(Array, Object, NULL) (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('js', Array, Object) (Line: 277)
Drupal\Core\Asset\AssetResolver->getJsAssets(Object, ) (Line: 319)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 158)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 94)
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: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.response') (Line: 192)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 180)
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: 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: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

lorseau created an issue. See original summary.

promo-il’s picture

  • dom. committed 439eb26e on 3.x
    Issue #3385936 by dom.: Error after updating the 3.0.0 version
    

  • dom. committed 439eb26e on 4.x
    Issue #3385936 by dom.: Error after updating the 3.0.0 version
    
dom.’s picture

Status: Active » Fixed

DOMPurify is an optional library, but indeed, if not present AND the JS aggregation is activated, then you have this error.
3.0.2 fixes it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.