After updating to the latest dev version, I got several of these warnings in drush:
"Invalid argument supplied for foreach() in sites/all/modules/ds/includes/ds.registry.inc on line 275"

Everything seems to work fine so I don't know if it's even an issue but I thought I'd report it just in case.

Comments

swentel’s picture

Status: Active » Fixed

Shouldn't be really a problem anymore now - make sure you also upgrade all other modules like nd and nd_contrib - or if you have your own hook_content_build_modes add the 'build modes' key - we've reverted back to the old way since a few days. Anyway, a release is now soon - probably this weekend :)

butler360’s picture

OK, I'll check it out after this weekend. Thanks!

g.k’s picture

I'm still getting the warning after upgrading to later version

Invalid argument supplied for foreach() in sites/all/modules/ds/includes/ds.registry.inc on line 275"

Thanks,
gp

swentel’s picture

Are you sure about that, because line 275 in the 6.x-1.0 version is this:

return $theme_functions; 

There is no foreach there .. :)

butler360’s picture

I got this error again yesterday after upgrading a different site to 1.0, but everything still works fine.

Argus’s picture

I'm getting similar messages (using 6.x-1.0) on two different Drupal installs.

warning: Invalid argument supplied for foreach() in ../modules/ds/includes/ds.registry.inc on line 296.
warning: Invalid argument supplied for foreach() in ../modules/ds/includes/ds.registry.inc on line 296.
warning: asort() expects parameter 1 to be array, null given in ../modules/ds/includes/ds.registry.inc on line 326.
warning: key() [function.key]: Passed variable is not an array or object in ../modules/ds/includes/ds.registry.inc on line 142.

swentel’s picture

This is related to build modes being invalid, see http://drupal.org/node/698534#comment-2590668
So either you're also a) using your own hook_content_build_modes which we changed about a week ago or b) using heartbeat (hds module)
Either way, it's connected with that hook.

Status: Fixed » Closed (fixed)

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