Did a search, but couldn't find a similar issue, so am submitting a bug report. I'm getting the following error messages on viewing the homebox:
Notice: Undefined index: module in homebox_build() (line 360 of /home/sammyd56/public_html/drupal7/sites/all/modules/homebox/homebox.module).
Notice: Undefined index: delta in homebox_build() (line 360 of /home/sammyd56/public_html/drupal7/sites/all/modules/homebox/homebox.module).
Notice: Undefined index: module in homebox_build() (line 360 of /home/sammyd56/public_html/drupal7/sites/all/modules/homebox/homebox.module).
Notice: Undefined index: delta in homebox_build() (line 360 of /home/sammyd56/public_html/drupal7/sites/all/modules/homebox/homebox.module).
Comment | File | Size | Author |
---|---|---|---|
#3 | homebox-undefined_propert_module_delta-1088242-3.patch | 727 bytes | JaakkoL |
#2 | homebox-undefined_propert_module_delta-1088242-2.patch | 724 bytes | JaakkoL |
Comments
Comment #1
JaakkoL CreditAttribution: JaakkoL commentedGetting a similar error in line 202 of 2.0-beta6.
Seems to be caused by the switch statement in homebox_forms() hook. In my case, I have a url alias, where the
$args[1]
is the user object. Therefore the second test returns true, while there's no such properties as module or delta in the user object. That produces the error.Comment #2
JaakkoL CreditAttribution: JaakkoL commentedOk. Actually the two errors are not related. I see that now. Your error comes from a totally different block of code.
Anyways, created a quick patch for the problem I was faced with.
Comment #3
JaakkoL CreditAttribution: JaakkoL commentedHere's the same patch that follows Drupal coding standards. Had tabs instead of spaces in the previous one.
Comment #4
Yuri CreditAttribution: Yuri commentedhas this patch been committed? I guess not since it still appears.
Although it points to a different line:
Notice: Undefined property: stdClass::$module in homebox_forms() (line 202 of /home/groups/public_html/sites/all/modules/homebox/homebox.module).
Comment #5
rv0 CreditAttribution: rv0 commented#1, #2, #3 and #4 are unrelated to the original issue.
They are related to this issue:
#1167978: Error Editing Profile Type
I will post the patch from #3 there.
Comment #6
andrea.cavattoni CreditAttribution: andrea.cavattoni commentedthe patch it not fixing the problem for me...
changing the line in this way yes:
hope it helps
Comment #7
drummLine 360 is a comment in the current version. Please re-open with details if this is still an issue.