Summary | Undefined index in Horde/Block/Layout.php |
Queue | Horde Base |
Queue Version | 3.0.4 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | selsky (at) columbia (dot) edu |
Created | 05/05/2005 (7399 days ago) |
Due | |
Updated | 05/25/2005 (7379 days ago) |
Assigned | 05/25/2005 (7379 days ago) |
Resolved | 05/25/2005 (7379 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
the time) row up back to one of the 2nd row positions right after
moving the last one down. Otherwise the empty row will have been
removed already.
Looks like when you're moving a block into a row that would be
removed, there are problems. I'm not sure exactly where the empty rows
get removed, though.
It's not specific to weather.com. If I have a layout like this:
Block | Block
Block | Block
and then I move the second row down to I have a layout like this:
Block | Block
blank | blank
Block | Block
When I go to move one of the lower Block elements back up to the
second row, I get the undefined index errors.
State ⇒ Feedback
weather.com block, the portal behaves as expected with Horde from CVS
HEAD.
The empty row is purged as soon as I enter the layout page (though not
saved after that, I'm gonna change this), and I can move the blocks
around without an error message.
State ⇒ Assigned
a:3:{i:0;a:2:{i:0;a:4:{s:3:"app";s:3:"imp";s:6:"height";i:1;s:5:"width";i:1;s:6:"params";a:2:{s:4:"type";s:7:"summary";s:6:"params";a:2:{s:11:"show_unread";s:2:"on";s:10:"show_total";s:2:"on";}}}i:1;a:4:{s:3:"app";s:5:"klutz";s:6:"height";i:1;s:5:"width";i:1;s:6:"params";a:2:{s:4:"type";s:7:"summary";s:6:"params";a:0:{}}}}i:1;a:2:{i:0;s:5:"empty";i:1;s:5:"empty";}i:2;a:2:{i:0;a:4:{s:3:"app";s:5:"horde";s:6:"height";i:1;s:5:"width";i:1;s:6:"params";a:2:{s:4:"type";s:6:"google";s:6:"params";a:2:{s:6:"offend";s:0:"";s:7:"fortune";a:1:{i:0;s:0:"";}}}}i:1;a:4:{s:3:"app";s:5:"horde";s:6:"height";i:1;s:5:"width";i:1;s:6:"params";a:2:{s:4:"type";s:7:"sunrise";s:6:"params";a:1:{s:8:"location";s:13:"51.517:-0.117";}}}}}
var_dump(unserialize($prefs->getValue('portal_layout'))):
array(3) {
[0]=>
array(2) {
[0]=>
array(4) {
["app"]=>
string(3) "imp"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(7) "summary"
["params"]=>
array(2) {
["show_unread"]=>
string(2) "on"
["show_total"]=>
string(2) "on"
}
}
}
[1]=>
array(4) {
["app"]=>
string(5) "klutz"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(7) "summary"
["params"]=>
array(0) {
}
}
}
}
[1]=>
array(2) {
[0]=>
string(5) "empty"
[1]=>
string(5) "empty"
}
[2]=>
array(2) {
[0]=>
array(4) {
["app"]=>
string(5) "horde"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(6) "google"
["params"]=>
array(2) {
["offend"]=>
string(0) ""
["fortune"]=>
array(1) {
[0]=>
string(0) ""
}
}
}
}
[1]=>
array(4) {
["app"]=>
string(5) "horde"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(7) "sunrise"
["params"]=>
array(1) {
["location"]=>
string(13) "51.517:-0.117"
}
}
}
}
}
Can you post $prefs->getValue('portal_layout') and
unserialize($prefs->getValue('portal_layout'))?
Notice: Undefined offset: 2 in
/opt/php-4.3.11/lib/php/Horde/Block/Layout.php on line 489
Notice: Undefined offset: 2 in
/opt/php-4.3.11/lib/php/Horde/Block/Layout.php on line 510
Notice: Undefined offset: 2 in
/opt/php-4.3.11/lib/php/Horde/Block/Layout.php on line 489
Notice: Undefined offset: 2 in /opt/php-4.3.11/lib/php/Horde/Array.php
on line 199
Warning: array_slice(): The first argument should be an array in
/opt/php-4.3.11/lib/php/Horde/Array.php on line 199
My layout:
Mail Folder: Sumary | Comics
Empty | Empty
Weather.com | Empty
I'm trying to move Weather.com up to the empty block above it.
State ⇒ Feedback
fixed several layout bugs since 3.0.4
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Undefined index in Horde/Block/Layout.php
Queue ⇒ Horde Base
State ⇒ Unconfirmed
I got the following warnings:
Notice: Undefined offset: 2 in
/etc/httpd/htdocs/horde/lib/Horde/Block/Layout.php on line 479
Notice: Undefined offset: 2 in
/etc/httpd/htdocs/horde/lib/Horde/Block/Layout.php on line 500
Notice: Undefined offset: 2 in
/etc/httpd/htdocs/horde/lib/Horde/Block/Layout.php on line 479
Notice: Undefined offset: 2 in
/etc/httpd/htdocs/horde/lib/Horde/Array.php on line 199
Warning: array_slice(): The first argument should be an array in
/etc/httpd/htdocs/horde/lib/Horde/Array.php on line 199
Let me know if the exact block layout is important.