Dropdown stops working if JS aggregation enabled

Created on 29 October 2023, about 1 year ago
Updated 14 December 2023, about 1 year ago

Dropdown stops working

Installed Drupal 10.1.5. PHP 8.1. Instal AT 3.4.2. Doesn't show dropdown. I installed many more modules for controlling menu access, JQuery etc. Then I uninstalled them one by one. Nothing worked. Then i disabled aggregation in "/admin/config/development/performance" and it started showing dropdown. Then i disabled just JS and kept CSS aggregation and it still work.

Got following error message once.

Error message
Warning: file_get_contents(libraries/dompurify/dist/purify.min.js): Failed to open stream: No such file or directory in Drupal\system\Controller\JsAssetController->generateHash() (line 43 of core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php).
Warning: file_get_contents(libraries/dompurify/dist/purify.min.js): Failed to open stream: No such file or directory in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() (line 179 of core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php).

I still think there is some conflict with some module.

🐛 Bug report
Status

Active

Version

3.4

Component

User interface

Created by

🇮🇳India vinaysamant Kudal, Maharashtra

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

Comments & Activities

  • Issue created by @vinaysamant
  • 🇮🇳India Jitender vaidh New Delhi

    Hi @vinaysamant I have verified locally with multiple themes, with aggregation enabled and disabled, and I have not encountered any such issues.

  • 🇮🇳India vinaysamant Kudal, Maharashtra

    i think the issue is with "libraries/dompurify/dist/purify.min.js" which is external JS a module uses for RSS feeds. If this library is unavailable then aggregator fails. But then can this be listed under aggregator module? Actually if some file is missing, then aggregator should ignore and still continue with other JS files isn't it?

  • 🇺🇸United States andrewjaykirkpatrick Oregon

    I can confirm I see this problem where Admin Toolbar 3.4.2 does not display proper CSS for itself while Performance -> Aggregate CSS & Javascript is checked, using the Bootstrap 8.x-3.29 theme. The Admin Toolbar works properly with Aggregate checked in the AT_Core 1.4.6 theme on the same multi-site server.

  • 🇨🇦Canada a.griff

    I believe it is related to this problem, specifically you can see this comment which may be helpful.
    https://www.drupal.org/project/advagg/issues/3270337#comment-14989874 📌 Remove JSqueeze as it is abandoned Active

    I was experiencing this issue after moving to Drupal 10. I changed from jsqueeze -> jshrink and this solved my problems.

  • I have tested locally and I could not reproduce the issue. But in any case I guess is more related with other kind of issues more that admin_toolbar module.

  • 🇺🇸United States philsward

    Anybody else who's had problems, have antibot installed?

    I updated antibot which caused problems logging into the site. I had to uninstall it (thanks D8+ for taking away disable) and re-install it.

    This cleared up my antibot issue but also cleared up the problem with admin_toolbar. For me, the only place it had an issue was on the home page. Everywhere else seemed to work fine.

    Disabling js aggregation would fix it for me as well before I reinstalled antibot.

Production build 0.71.5 2024