Closed (fixed)
Project:
Vitals
Version:
2.5.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
30 Sep 2025 at 12:47 UTC
Updated:
24 Jul 2026 at 03:50 UTC
Jump to comment: Most recent
This warning occurs if the extension info has no recommended version data:
Warning: Undefined array key "recommended" in Drupal\vitals\Plugin\VitalsCheck\Updates->getUpdates() (line 52 of modules/contrib/vitals/src/Plugin/VitalsCheck/Updates.php).
Install&Configure a module as usual -> visit the vitals endpoint /vitals/{token}
Just saw this for such extensions as: admin_toolbar, drupal (core itself), better_exposed_filters, config_ignore, etc.
Show a message that no recommended version was found.
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 #3
quadrexdevPlease review
Comment #4
karavkars commentedHello @quadrexdev,
I review your issue. I could not able to reproduce this issue with drupal 10 & 11 both.
I installed all mentioned modules dev versions and tested. and found that the non recommended module is ignored by listing of extension method.
Could you please share specific module with clean site.
E.g. https://www.drupal.org/project/better_exposed_filters/releases/7.0.x-dev
Regards,
Sagar K
Comment #5
daceej commented@quadrexdev - I'm also having trouble replicating this issue. Would you be able to provide more details as to how to replicate? Was this an existing install or fresh? Were there any patches in play for core or vitals?
Comment #6
opiGot this again in my watchdog, but can't reproduce..
Looking at
update_calculate_project_update_status()function, thisrecommendedkey is not always set if no available release exists.If you do think that handling this rare case in the Vitals Update check is the good path to follow, I can provide the corresponding merge request.
Comment #7
daceej commentedI have finally caught this issue in the wild!
While working on updated to get ready for D12, I started seeing the error in the pipelines. - https://git.drupalcode.org/project/vitals/-/jobs/10837975
It looks like this is happening in cases where there is no recommended version for a specific module based on your site's current core version.
A fix for this will be coming out with the next release. The timeline for that release is TBD, but it will be pretty soon (likely in next couple of weeks).
Comment #8
daceej commentedComment #9
daceej commentedComment #11
daceej commented