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.
Notice:
Trying to get property of non-object
LINE: 110
FUNCTION: _context_menu_block_active_values()
FILE: ...\sites\all\modules\context_menu_block\context_menu_block.module
Comment | File | Size | Author |
---|---|---|---|
#3 | 2214215-warning-property-of-non-object.patch | 610 bytes | david_garcia |
#1 | 2214215-warning-property-of-non-object.patch | 579 bytes | david_garcia |
Comments
Comment #1
david_garcia CreditAttribution: david_garcia commentedComment #2
welly CreditAttribution: welly commentedHi David,
I'll take a look at this asap and merge the patch in if all is good. Thanks for finding (and resolving!) this issue. Just out of interest, can you let me know how you found/what caused this error?
welly
Comment #3
david_garcia CreditAttribution: david_garcia commentedPatch updates, I was still getting the issue. Looks like $context can sometimes be NULL. Although this problem is "foreign" to this module, it should be robust as to when such situations happen.
Comment #4
welly CreditAttribution: welly commentedThanks very much for your patch, I've rolled that into a new dev release. Will get it into a new beta as soon as I've figured out how (and how to credit you with the patch!) :) I'm new round here!