I just freshly installed features-7.x-1.0-rc3, with no features installed or available, and get the following messages on

Notice: Undefined index: feature in features_get_info() (line 625 of ../features.module).
Warning: array_keys() expects parameter 1 to be array, null given in features_get_info() (line 625 of ../features.module).
Warning: Invalid argument supplied for foreach() in features_get_info() (line 626 of ../features.module).
Warning: array_unique() expects parameter 1 to be array, null given in features_get_info() (line 631 of ../features.module).
Warning: Invalid argument supplied for foreach() in features_get_info() (line 632 of ../features.module)./features.module).

In features.module, line 590, replace

  if (empty($cache) || $reset) {
    $data = array();


  if (empty($cache) || $reset) {
    $data = array('feature' => array(), 'module' => array());

Otherwise, 'feature' can be left empty.

#1 features-1635662-1.patch527 bytesdonquixote
Members fund testing for the Drupal project. Drupal Association Learn more


donquixote’s picture

Status: Active » Needs review
527 bytes


Note: The 'module' => array() is not really required, but just looks more robust.

szantog’s picture

Status: Needs review » Reviewed & tested by the community

Patch cannot applied to the latest dev, but the solution is ok, when I applied it manually.

juampynr’s picture

Version: 7.x-1.0-rc3 » 7.x-1.x-dev
Priority: Normal » Major

@szantog's comment at #2 is wrong. I could apply the patch cleanly and confirmed that it fixes the issue.

Changing priority to major, as this error will happen to anyone installing features for the first time.

Andi-D’s picture

Applied Patch on rc3 and it works

mpotter’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to a77b4d3

IshanComBr’s picture

patch #1 works for me also


joachim’s picture

Might this warrant a new RC release? It's a bit alarming for new users!

caspercash’s picture

same here.. patch in #1 works.. and i think it would be better to fix the current RC release with this patch..

langworthy’s picture

certainly warrants a new RC release.

sylvain_a’s picture

I support this!

adamelleston’s picture

I would support having a new RC

scuba_fly’s picture

I also support having a new RC with only this fixed if that speeds up releasing this fix in the RC. other fixes can wait I guess?

aggentle’s picture

Confirming that I've found the same issue with ...rc3 on D7; is this a cosmetic fault or is this a sign that the installed Features is "broken"?

I can live with the error message on install but please let me know if I need to install the patch.


arshadcn’s picture

+1 for new RC please.

quantos’s picture

+1 for me too. I get nervous when I see those error messages and don't know what they mean!

joachim’s picture

Filed #1697606: make a new release as a critical to hopefully get the attention of maintainers.

Please feel free to follow that one to lend weight to it :)

mpotter’s picture

Posting here is all you need to do to get attention. Creating separate issues is not the proper way to handle this. A new release is planned for this week.

imp7’s picture

Thanks mpotter, I can now drush make an error free drupal, features is awesome :)

Status: Fixed » Closed (fixed)

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