In a lot of places Omega doesn't seem to consider the fact the subthemes may unset certain variables in preprocess/process hooks. Omega just assumes that everything is set. It do a lot more isset() checking in general. The attached patch (to follow) fixes the few places that have hit me, but I suspect that as other variables get unset in base themes, similar problems wil occur.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Status: Active » Needs review
FileSize
2.63 KB
Cellar Door’s picture

Assigned: Unassigned » himerus

This would be a good 3.1 fix I think

himerus’s picture

Status: Needs review » Needs work

patch fails to apply, and of the logic isn't sound (the way I see it)

<?php if (isset($block->subject) && $block->subject): ?> would still throw a notice error should $block->subject not exist by being unset

davidseth’s picture

Here is a cleaner patch.

@himerus, the logic is sound. This is tested on a few large sites we are running and indeed removes the warning.

davidseth’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1331014.4-omega-undefined-index-warnings.patch, failed testing.

mrfelton’s picture

Status: Needs work » Needs review
FileSize
1.31 KB

Patch updated against latest dev.

LeDucDuBleuet’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #7 worked for me.
Thx a lot!