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

CommentFileSizeAuthor
#4 drush_189750.patch604 bytesjscheel

Comments

moshe weitzman’s picture

Status: Active » Closed (fixed)

drupal5 has lots of notices. please lower your level of error_reporting.

prodosh’s picture

Title: Help: Installed latest drush but can't start it » PHP Notices and fatal error running Drush

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

jscheel’s picture

Hmm, 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 ;)

jscheel’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new604 bytes

Ok, 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.

moshe weitzman’s picture

Status: Needs review » Closed (works as designed)

we are going to be consistent with Drupal and not care about NOTICE errors in D5. We start caring in D6.