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.
After recently installing OM Maximenu, we started noticing these error messages showing up on some pages:
Notice: Undefined property: stdClass::$custom in om_maximenu_blocks_visibility() (line 382 of /home/newad/public_html/sites/all/modules/om_maximenu/inc/om_maximenu.render.inc).
Notice: Undefined property: stdClass::$visibility in om_maximenu_blocks_visibility() (line 395 of /home/newad/public_html/sites/all/modules/om_maximenu/inc/om_maximenu.render.inc).
Notice: Undefined property: stdClass::$pages in om_maximenu_blocks_visibility() (line 405 of /home/newad/public_html/sites/all/modules/om_maximenu/inc/om_maximenu.render.inc).
After some digging, it was determined this was an interaction between OM Maximenu and Node Level Blocks. Evidently, if a block in placed in a node via Node Level Blocks, the custom, visibility, and pages properties end up missing for that block in the block list. The code needs to check if these properties exist before using them.
Comments
Comment #1
highestblue CreditAttribution: highestblue commentedHas anyone come up with a fix for this one?