Steps -
- Add the module using composer - composer require drupal/site_audit
- Enable the module - drush en site_audit
- Run command to list all audits - drush audit-list
- Notice the error
-
The "best_practices" plugin does not exist. Valid plugin IDs for Drupal\site_audit\Plugin\SiteAuditCheckManager are: content_field_count, users_who_is_number_one, dat
abase_size, best_practices_sites, block_enabled, extensions_unrecommended, cache_bins_all, users_count_all, views_cache_results, database_row_count, cache_default_bin
s, users_roles_list, watchdog_age, content_field_unused, best_practices_sites_superflouous, watchdog_404, best_practices_services, watchdog_count, status_system, watc
hdog_syslog, content_entity_types, content_field_enabled, cache_preprocess_css, best_practices_folder_structure, extensions_count, database_fragmentation, extensions_
duplicate, best_practices_sites_default, content_vocabularies_unused, content_enity_types_unused, extensions_dev, views_count, content_vocabularies, content_duplicate
_titles, cache_page_expire, best_practices_fast_404, best_practices_multisite, best_practices_settings, watchdog_enabled, content_field_instances, database_engine, cr
on_last, cron_enabled, content_taxonomy, watchdog_php, security_menu_router, cache_bins_used, views_enabled, database_collation, cache_preprocess_js, users_blocked_nu
mber_one, codebase_sizeall, users_count_blocked, views_cache_output
Comments
Comment #2
craigra commentedChanged site_audit:list to fetch best_practices plugin from the checklist manager rather than the check manager.
Comment #3
the_g_bomb commentedI have applied this patch as a part of a patch cocktail to get site_audit working locally.
I can confirm this patch resolves the issue we were experiencing.
### Environment:
- Drupal 10.4.8
- Site Audit: 4.0.x-dev
### Error Before Patch:
When running site_audit without this patch, the best_practices plugin fails to load correctly, preventing the audit from completing successfully.
### After Applying Patch:
The error is resolved. The best_practices report now runs successfully and provides the expected output. The patch has been stable in our environment.
Comment #7
froboyTested and confirmed. Thanks for the patch. Merged to 4.x, release pending.
Comment #8
froboy