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

Issue fork site_audit-3528125

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

joshi.rohit100 created an issue. See original summary.

craigra’s picture

Status: Active » Needs review
StatusFileSize
new659 bytes

Changed site_audit:list to fetch best_practices plugin from the checklist manager rather than the check manager.

the_g_bomb’s picture

Status: Needs review » Reviewed & tested by the community

I 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.

froboy made their first commit to this issue’s fork.

  • froboy committed 465107ee on 4.x
    [#3528125] Changed site_audit:list to fetch best_practices plugin from...
froboy’s picture

Tested and confirmed. Thanks for the patch. Merged to 4.x, release pending.

froboy’s picture

Version: 4.1.1 » 4.1.2
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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