When running the following command drush aa --html --bootstrap --detail --skip=insights > report.html I got a drush error:

Unrecognized message type: php.
Recognized types are: access denied, cron, mail, page not found, user.

I don't have any PHP watchdog messages on my site, and it looks like this is coming from drush core_watchdog_query() (see api docs) but the errors just not being caught at http://cgit.drupalcode.org/site_audit/tree/Check/Watchdog/Php.php#n67

I don't know drush well, so not sure if you can catch the drush_set_error() or you need to check drush_watchdog_message_types() first and skip if necessary. Or since core_watchdog_query() is so basic just skip it outright for this case.

I haven't looked at the other watchdog checks either, but they might have same problems.

Comments

  • FluxSauce committed 12a8f2c on 7.x-1.x
    Issue #2466461: Unrecognized message type: php
    
FluxSauce’s picture

Assigned: Unassigned » FluxSauce
Status: Active » Fixed

Sorry about that, good catch! The simplest way to handle this was to check the types. If PHP isn't in there, no reason to try to do the query either. I resequenced it and everything is right as rain.

Status: Fixed » Closed (fixed)

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