We sometimes get a notice from the module:
Notice: Undefined variable: entity_type in og_subgroups_children_load_multiple() (line 416 of /sites/all/modules/contrib/og_subgroups/og_subgroups.common.inc).

When I look at the code I see that in some cases the entity_type var is not filled at all (caused by the if/else). I'm not sure how to reproduce, but maybe at least a check for the entity_type var could be added?

Comments

strings6’s picture

I also get this error from time to time. I saw it on the People admin page last, but then it went away. It always comes back though at random times.

orbrob’s picture

Same here. It's not been a nuisance enough to explore in depth yet. This only happens on one of my Atrium 2 installs. Both installs I have going were migrations from A1 so I chalked it up to something I broke or missed during the migration.

  • hefox committed a20f486 on 7.x-2.x
    Issue #2315815: Fix documentation and undefined entity_type
    
hefox’s picture

Status: Active » Fixed

Need to have a group reference to a non-existant group to reproduce, it's just setting the ache to an array so the missing entity type means that cache isn't set each time so has to recalculate the empty array, so doesn't cause much damage outside of the warning.

thanks.

Status: Fixed » Closed (fixed)

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