Closed (fixed)
Project:
Omega
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Feb 2011 at 02:01 UTC
Updated:
1 Mar 2011 at 22:21 UTC
Jump to comment: Most recent file
Hi,
I'm getting a bunch of php E_NOTICE errors after installing beta1 on a clean Drupal 7.0...
* Notice: Undefined index: menu_data in include() (Zeile 178 von /var/www/bf_d7test/public_html/sites/all/themes/omega/omega/preprocess/preprocess-page.inc).
* Notice: Undefined index: menu_data in include() (Zeile 178 von /var/www/bf_d7test/public_html/sites/all/themes/omega/omega/preprocess/preprocess-page.inc).
[...]
Cheers,
Ben
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1060732.patch | 694 bytes | himerus |
Comments
Comment #1
adrian drupal commentedMe too.
Here's an example.
Notice: Undefined index: menu_data in include() (line 178 of /---/sites/all/themes/omega/omega/preprocess/preprocess-page.inc).
--- here line 178 --- 'menu_data' => $vars['menu_data'],
Comment #2
himerus commentedCrap... I'll submit a patch for this tomorrow...
I tested this on now 5 sites updated today to beta 1 without issue as the menus were being built as expected (in my multiple use cases)...
That variable may not even need to be passed through preprocess page and zone now with the recent changes.
I'll need to setup a clean install with my install profile in the a.m., and then potentially release a new version after the fix is tested. I thought I had caught all those damn notices!!
Comment #3
joostvdl commentedsubscribe
Comment #4
asrobsubscribe
Comment #5
medden commentedsubscribe
getting these errors with the beta and the dev version of omega2
Comment #6
himerus commentedPlease check the attached patch to see if that will fix the error appropriately.
Comment #7
bitkid commentedHey Himerus.
It sure did fix that problem. Unfortunately it also exists in preprocess-zone.inc line 223. It requires the same fix.
Comment #8
nerilka commentedworks for me
thanks
Comment #9
rod35 commentedworks for me
But with this alert on terminal : /Users/himerus/Desktop/Dropbox/Development/www/himerus/sites/all/themes/omega/omega/preprocess/preprocess-page.inc
thanks
Comment #10
lewis.octavius commentedPatch worked for me. Thanks
Comment #11
rggoode commentedsubscribe
Comment #12
smbell commentedsubscribe
Comment #13
bforchhammer commentedPatch #6 works for me as well, thanks.
Comment #14
bforchhammer commentedActually, considering bitkid's comment (#7) this probably isn't ready yet...
Comment #15
himerus commentedRe: #7, there shouldn't be a reason (other than just pure safety) that it needs to be declared in preprocess-zone.inc as well, since preprocess-page is passing the var to zone, it will always be set by this prior fix, either to the menu data as expected, or as FALSE.
So preprocess zone should never throw error.
Comment #16
himerus commentedMarking this as fixed.
This has been committed to the beta2 release, being packaged now. The "issue" was also applied to zone-preprocess.inc (for safety only).
Please update to beta2 and verify everything works as expected.
Comment #17
bforchhammer commentedI can confirm that the issue is fixed in beta2, thanks!