Problem/Motivation
Site Audit fails to run from local environment with error message:
$ ddev composer require --dev 'drupal/site_audit:^4.0@RC'
$ ddev drush @site1.ddev en site_audit
$ ddev drush @site1.ddev audit --format=html --bootstrap --detail > site1.html
The "report" argument does not exist.
Failed to run drush @site1.ddev audit --format=html --bootstrap --detail: exit status 1
There is no "report" argument passed, so I'm not certain what this error message actually means.
Steps to reproduce
Ddev 1.23.0
Composer 2
Php 8.2
Drupal 10.2 multisite.
Site Audit 4.0.0-rc5.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
jwilson3Comment #3
jwilson3Comment #4
jwilson3I'm bumping this to critical because the bug here renders the module useless.
Comment #5
jrochate commentedSame here, but not multi-site.
Comment #6
jwilson3I hit this snag using site_audit:4.0.0-rc5
Site Audit module now has a 4.1.1 version, which may have resolved this issue, but needs additional testing.
I have an internal ticket to pick this up during maintenance cycle, but it may be some time before we can come back around to this.
Comment #7
redbrickone commentedFWIW I am seeing this report flag error on 4.1.1 after installing the module, submodules and trying to run some audit drush commands as outlined in the readme.
Comment #8
craigra commentedChanged "report" argument to "checklist" for site_audit:audit command interaction hook.
Comment #9
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:
### After Applying Patch:
The error is resolved. The patch correctly updates the argument name from 'report' to 'checklist' to match the current command signature. Site_audit drush commands now execute successfully.
Comment #13
froboyThanks folks. Patch applied and merged to 4.x. Release pending.
Comment #14
froboy