Closed (fixed)
Project:
Display Suite
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2010 at 23:47 UTC
Updated:
27 Feb 2010 at 02:50 UTC
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
Comment #1
swentel commentedShouldn'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 :)
Comment #2
butler360 commentedOK, I'll check it out after this weekend. Thanks!
Comment #3
g.k commentedI'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
Comment #4
swentel commentedAre you sure about that, because line 275 in the 6.x-1.0 version is this:
There is no foreach there .. :)
Comment #5
butler360 commentedI got this error again yesterday after upgrading a different site to 1.0, but everything still works fine.
Comment #6
Argus commentedI'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.
Comment #7
swentel commentedThis 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.