Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you have a content type with an image field and you add or remove the image you get an exception thrown:
Notice: Undefined property: stdClass::$storage in og_menu_form_node_form_alter() (line 331 of /var/www/html/sites/all/modules/og_menu/og_menu.module).
The issue appears to be that in this case the og_context is not set but the result from og_context() is an empty array. Will supply a patch shortly that I think resolves this issue.
Comment | File | Size | Author |
---|---|---|---|
#1 | og_menu-undefined_property_expection-1993718-1.patch | 819 bytes | pgillis |
Comments
Comment #1
pgillis CreditAttribution: pgillis commentedComment #2
rv0 CreditAttribution: rv0 commentedI dont see this happening in the 3.x branch, in fact, there's no $storage variable there.
This could have happened in 2.x branch, though I think there's a safety for it already (in dev perhaps)
Comment #3
heddnThis is very much applicable in 3.0. I don't see it as an issue in HEAD though, so I'm flipping this over to fixed instead of unable to reproduce.
Comment #4
rv0 CreditAttribution: rv0 commentedThanks for this info.
I should find some time to roll a new release (and commit some other stuff)