Problem/Motivation

After updating Varbase to 10.0.4, a warning appears due to an incorrect file path in the varbase_admin module’s library definition. The admin-toolbar library points to theme/varbase-admin.admin-toolbar.theme.css, but the file is actually located in the css folder.

Steps to reproduce

Update Varbase to version 10.0.4.
Navigate to the admin interface or clear the cache.
Observe the following warning:

Warning: file_get_contents(modules/contrib/varbase_core/modules/varbase_admin/css/theme/varbase-admin.admin-toolbar.theme.css): 
Failed to open stream: No such file or directory in Drupal\system\Controller\CssAssetController->generateHash() 
(line 43 of core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php).

Proposed resolution

  • Option 1: Move the file to the theme folder to match the library definition.
  • Option 2: Update the library path to point to the correct css folder

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.0.5, varbase_core-10.0.45

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3512382 by qusai taha: Fixed Incorrect path for varbase-admin.admin-toolbar.theme.css causes warning after updating
CommentFileSizeAuthor
#2 3512382-2.patch441 bytesqusai taha
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

qusai taha created an issue. See original summary.

qusai taha’s picture

StatusFileSize
new441 bytes

rajab natshah’s picture

Title: Fix warrning file_get_contents(modules/contrib/varbase_core/modules/varbase_admin/css/theme/varbase-admin.admin-toolbar.theme.css): » Fix Incorrect path for varbase-admin.admin-toolbar.theme.css causes warning after updating
Assigned: qusai taha » Unassigned
Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

rajab natshah’s picture

Assigned: Unassigned » s.halawani
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-10.0.5, +varbase_core-10.0.45
rajab natshah’s picture

Assigned: s.halawani » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-10.0.5