6.0.0-alpha12
6/8/25

[#5743] Invalid arguments in ListView.php
Summary Invalid arguments in ListView.php
Queue Turba
Queue Version HEAD
Type Bug
State No Feedback
Priority 1. Low
Owners Horde Developers (at)
Requester ville.heimonen (at) webille (dot) com
Created 09/26/2007 (6465 days ago)
Due
Updated 12/19/2007 (6381 days ago)
Assigned 10/19/2007 (6442 days ago)
Resolved 10/25/2007 (6436 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/19/2007 02:23:09 AM Chuck Hagenbuch Comment #7 Reply to this comment
Uninitialized string offset: 0 in
/var/www/newhorde/turba/lib/ListView.php on line 467.
This is a separate issue; please open a new ticket instead.



Also, how should items without names work with the alpha filter? I 
guess they would only show up on the * page.
12/19/2007 12:51:32 AM dewi (at) brentwood (dot) bc (dot) ca Comment #6 Reply to this comment
Still cannot reproduce and no feedback, will reopen if problem resurfaces.
I am getting similar error messages in Turba 2.2 RC1 after converting 
my horde database to the RC1 applications.

The error is thrown for me as this:-

Uninitialized string offset: 0 in 
/var/www/newhorde/turba/lib/ListView.php on line 467.



This line is in the function skip :-           if ($this->_alpha != 
'*' && String::lower($name[0]) != $this->_alpha) {



I did as suggested in the bug report and put in a print_r and I get a 
null value printed 245 times ( I guess the skip function is called 245 
times, then is finally starts printing out the names in my address 
book. I suspect it's because many of my address book entries don't 
have values for firstname or lastname.



I can prevent the error by putting an if statement on the ($name = 
Turba::formatName($ob)



anyway, I thought I should update the bug thread as I was getting a 
similar error.
10/25/2007 05:53:46 PM Michael Rubinsky Comment #5
Priority ⇒ 1. Low
State ⇒ No Feedback
Reply to this comment
Still cannot reproduce and no feedback, will reopen if problem resurfaces.
10/19/2007 02:38:06 PM Chuck Hagenbuch State ⇒ Feedback
 
10/19/2007 06:36:07 AM Michael Rubinsky Comment #4 Reply to this comment
I can't reproduce...can you see what the value is of $sortorder right 
before those lines? - just post the results of a print_r($sortorder);



Also, what are our name format prefs set to?


10/18/2007 05:54:04 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
09/26/2007 10:54:47 PM ville (dot) heimonen (at) webille (dot) com Comment #3 Reply to this comment
And are you sure that you didn't upgrade from an earlier version and
forgot to update your prefs.php file?
Yes, I am. I have even tested it with new copy of prefs.php.dist file. 
Warnings still exists.
09/26/2007 10:47:06 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
And are you sure that you didn't upgrade from an earlier version and 
forgot to update your prefs.php file?
09/26/2007 07:30:14 AM ville (dot) heimonen (at) webille (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Turba
Summary ⇒ Invalid arguments in ListView.php
Type ⇒ Bug
Reply to this comment
I get there warnings when I browse my contacts. Warning messages below:



Warning: Invalid argument supplied for foreach() in 
/..path../cvs/horde/turba/lib/ListView.php on line 307



Warning: Invalid argument supplied for foreach() in 
/..path../cvs/horde/turba/lib/ListView.php on line 337





I'm using very latest version of turba (CVS HEAD) on Linux 
(Debian4.0unstable) server with PHP 5.2.4 and Apache 2.2.6.

Saved Queries