I am getting the following error when I type drush at the command line:
PHP Notice: Undefined index: host in /srv/www/htdocs/drupal/sites/all/modules/contrib/drush/drush.php on line 50
PHP Notice: Undefined property: stdClass::$theme in /srv/www/htdocs/drupal/includes/theme.inc on line 45
PHP Fatal error: require_once(): Failed opening required '/drush.inc' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/htdocs/drupal/sites/all/modules/contrib/drush/drush.php on line 131
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drush_189750.patch | 604 bytes | jscheel |
Comments
Comment #1
moshe weitzman commenteddrupal5 has lots of notices. please lower your level of error_reporting.
Comment #2
prodosh commentedThanks for the tip. How and where can I lower the level of "error_reporting"? Does this mean that these messages can be ignored?
Thanks a lot.
Comment #3
jscheel commentedHmm, it would be nice if drush.php could lower the error reporting level automatically. This really gets in the way when doing things like sql dumps. I don't want to lower my level across the board, because I'm working on a dev server, so I like to see them when they are there ;)
Comment #4
jscheel commentedOk, here is an pitifully simple patch to suppress everything except fatal errors. Another option would be to add a --silent option, or even an --error-level option. But for now, here's a simple fix.
Comment #5
moshe weitzman commentedwe are going to be consistent with Drupal and not care about NOTICE errors in D5. We start caring in D6.