I'm getting following error while performing drush rr:

Error: Call to undefined function current_path() in advagg_enabled() (line 3263 of /app/current/sites/all/modules/contrib/advagg/advagg.module).
Drush command terminated abnormally due to an unrecoverable error. 

An error disappears on second try.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tormi created an issue. See original summary.

tormi’s picture

Status: Active » Needs review
FileSize
394 bytes

Initial patch added.

joelpittet’s picture

@tormi, it would be nice to have a call stack on this error, maybe it shouldn't be called under this drush command to begin with

mikeytown2’s picture

https://api.drupal.org/api/drupal/includes%21common.inc/function/_drupal...
Looks like there are checks in place to prevent multiple calls, but putting this in an if statement would probably be better when looking at the code.

  • mikeytown2 committed 2c97436 on 7.x-2.x authored by tormi
    Issue #3156096 by tormi, mikeytown2: Error: Call to undefined function...
mikeytown2’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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