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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3512382-2.patch | 441 bytes | qusai taha |
Issue fork varbase_core-3512382
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
Comment #2
qusai taha commentedComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #12
rajab natshah✅ Released varbase_core-10.0.45
Comment #13
rajab natshah✅ Released varbase-10.0.5