Using D7.14 and OG 7.x-2.x-dev and Panels

After adding a new homebox page:

Notice: Undefined offset: 1 in homebox_build() (line 384 of /home/groups/public_html/sites/all/modules/homebox/homebox.module).
Notice: Undefined offset: 2 in homebox_build() (line 384 of /home/groups/public_html/sites/all/modules/homebox/homebox.module).
Notice: Undefined offset: 3 in homebox_build() (line 384 of /home/groups/public_html/sites/all/modules/homebox/homebox.module).
CommentFileSizeAuthor
#6 homebox-check_widths-1634486-6.patch481 bytesmaximpodorov

Comments

kapep’s picture

Same issue here, but I don't have OG.
Explicitly setting a width for each used column in the settings tab fixed this problem for me.

The line in question is calculating the sum of column widths, even though I haven't touched the settings.

mcdoolz’s picture

I solved this by entering numbers for the coloumns at http://example.com/admin/structure/homebox/settings/[homebox]

Countzero’s picture

The width trick in #1 worked for me, again without OG. Thanks.

garbo’s picture

This issue still exists with version 7.x-2.x-dev of August 10, 2013.

setting column widths at http://example.com/admin/structure/homebox/settings/[homebox] makes the errors disappear.

Maybe, if no widths are set some default widths could be created? percentage = n columns / 100

pimok3000’s picture

this solves the problem here too....

maximpodorov’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new481 bytes

The patch solves this problem by checking array item existence.

schifazl’s picture

The patch works for me!

  • drumm committed a7fbf53 on 7.x-2.x
    Issue #1634486: Fix Undefined offset notice.
    
drumm’s picture

Status: Needs review » Fixed

I committed a different version of this, since it conflicted with the commit for #955072: Make Homebox only equalize heights of columns within the same row.. Please re-open if it does not solve the problem.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.