6.0.0-beta1
7/28/25

[#2442] Error when trying to view forum
Summary Error when trying to view forum
Queue Agora
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester mikko.tillikainen (at) cop (dot) fi
Created 08/15/2005 (7287 days ago)
Due
Updated 08/16/2005 (7286 days ago)
Assigned 08/15/2005 (7287 days ago)
Resolved 08/16/2005 (7286 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/16/2005 09:30:42 AM Jan Schneider Comment #4
State ⇒ Not A Bug
Reply to this comment
You can't update single files and expect things to magically be fixes. 
Chances are high that this makes it even worse, which obviously is the 
case.



Agora requires Horde from CVS HEAD at the moment.
08/16/2005 08:17:14 AM mikko (dot) tillikainen (at) cop (dot) fi Comment #3 Reply to this comment
It prints datatree_sql.



I installed latest update for DataTree.php from CVS and now that 
specific error is gone.  But I get different errors this time.  These 
errors come after I have added new thread to forum:



Warning: Illegal offset type in 
/var/www/html/horde/lib/Horde/DataTree.php on line 980



Warning: Illegal offset type in 
/var/www/html/horde/lib/Horde/DataTree/sql.php on line 258



Warning: Illegal offset type in 
/var/www/html/horde/lib/Horde/DataTree/sql.php on line 258



Warning: Illegal offset type in 
/var/www/html/horde/lib/Horde/DataTree/sql.php on line 258



Warning: Illegal offset type in 
/var/www/html/horde/lib/Horde/DataTree/sql.php on line 258



Warning: Illegal offset type in 
/var/www/html/horde/lib/Horde/DataTree.php on line 989



Warning: Cannot modify header information - headers already sent by 
(output started at /var/www/html/horde/lib/Horde/DataTree.php:980) in 
/var/www/html/horde/agora/templates/common-header.inc on line 3



Warning: Cannot modify header information - headers already sent by 
(output started at /var/www/html/horde/lib/Horde/DataTree.php:980) in 
/var/www/html/horde/agora/templates/common-header.inc on line 4



These errors come when I'm trying to view contents of forum:



Warning: array_slice(): The first argument should be an array in 
/var/www/html/horde/agora/lib/Messages.php on line 406



Warning: Invalid argument supplied for foreach() in 
/var/www/html/horde/lib/Horde/DataTree.php on line 449



Warning: Cannot modify header information - headers already sent by 
(output started at /var/www/html/horde/agora/lib/Messages.php:406) in 
/var/www/html/horde/agora/templates/common-header.inc on line 3



Warning: Cannot modify header information - headers already sent by 
(output started at /var/www/html/horde/agora/lib/Messages.php:406) in 
/var/www/html/horde/agora/templates/common-header.inc on line 4



If I comment out sortByAttributes-call in Messages.php I don't get 
these errors but after that it still doesn't show threads or messages. 
  I'm using Horde 3.0.5 and 2005-08-12 dated snapshot of Agora.
08/15/2005 12:10:04 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
I can't reproduce this. Put an

echo(get_class($this->threads));

before that line and watch for the output.
08/15/2005 11:41:01 AM mikko (dot) tillikainen (at) cop (dot) fi Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Error when trying to view forum
Queue ⇒ Agora
Reply to this comment
When I have added new forum and one thread to it I get following error 
message when trying to view forum:



Fatal error: Call to undefined function: sortbyattributes() in 
/var/www/html/horde/agora/lib/Messages.php on line 402



Error occurs right after I have pressed "Send"-button in message editing form.

Saved Queries