6.0.0-beta1
9/6/25

[#1388] Can't create forum
Summary Can't create forum
Queue Agora
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester israel (at) gmx (dot) de
Created 02/16/2005 (7507 days ago)
Due
Updated 11/04/2006 (6881 days ago)
Assigned 08/09/2006 (6968 days ago)
Resolved 11/04/2006 (6881 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/04/2006 06:02:50 PM Chuck Hagenbuch State ⇒ Resolved
 
11/04/2006 08:29:55 AM vilius (at) lnk (dot) lt Comment #21 Reply to this comment
This is not an issue in a new agora anymore.
08/19/2006 04:46:03 PM Chuck Hagenbuch Comment #20
State ⇒ Stalled
Reply to this comment
Someone who can reproduce this needs to come up with a generalized fix.
08/19/2006 08:59:15 AM vilius (at) lnk (dot) lt Comment #19 Reply to this comment
Sorry, but I tried to fix this problem the other way and failed. I 
guess my PHP knowledge is not good enough :( Looking forward if anyone 
still has a cure.
08/10/2006 05:13:14 PM Chuck Hagenbuch Comment #18 Reply to this comment
What about non-integer array indices, though?
08/10/2006 07:41:21 AM vilius (at) lnk (dot) lt Comment #17
New Attachment: Form.php.patch Download
Reply to this comment
This patch works for me.
08/10/2006 07:30:06 AM Jan Schneider Comment #16 Reply to this comment
Seems to have been a bug in PHP then. If we should still fix it for 
older PHP versions, it would help a lot if you could identify the 
places where we need to cast the negative array key.
08/10/2006 06:46:49 AM vilius (at) lnk (dot) lt Comment #15 Reply to this comment
I'm using PHP 4.3.2 (RHEL3)



And it seems that it works on PHP 4.3.9 (RHEL4)
08/09/2006 09:22:27 PM Chuck Hagenbuch Comment #14 Reply to this comment
I can create new top-level forums without a problem, both when there 
are other forums and with no forums at all. I'm using PHP 5; are the 
people with the problem all using a particular version?
08/09/2006 03:42:48 PM vilius (at) lnk (dot) lt Comment #13 Reply to this comment
08/09/2006 03:34:20 PM Chuck Hagenbuch Comment #12
State ⇒ Feedback
Reply to this comment
Please add context from the conversation between you and Ben K. so 
this isn't lost - thanks.
08/09/2006 02:19:17 PM vilius (at) lnk (dot) lt Comment #11 Reply to this comment
Reproducable here with latest Horde/Agora CVS (2006-08-09).
01/15/2006 03:54:15 PM Chuck Hagenbuch Comment #10 Reply to this comment
Here's the thing: this works fine with Horde HEAD, and Agora is not a 
FRAMEWORK_3 app. So saying this should be reopened because it doesn't 
work with Horde 3.0.9 is incorrect; you are welcome to _try_ to use 
HEAD applications with Horde 3.x, but they are not supported.
01/14/2006 06:43:50 PM ben (at) alkaloid (dot) net Comment #9 Reply to this comment
The problem appears to be related to the type of variable submitted by 
form.  When no forums are present the form only lists one option in 
the dropdown box: "-- Top Level--" with a value of "-1".  When this is 
submitted by form back to the server this becomes the STRING "-1".   
The array however is populated with the INTeger -1.  This behavior is 
documented on php's website at

http://us3.php.net/manual/en/language.types.array.php#37535



I verified this by gettype()ing the two variables $value and the keys 
of $this->_values in HORDE_BASE/lib/Horde/Form.php on line 2081.   
Since this could theoretically be a larger problem in forms which use 
enums with negative array indices I'm not sure how to proceed.  To 
solve this problem for me for now I am coercing the value to an int in 
AGORA_BASE/editforum.php on line 49 with the following ugly workaround:

$vars->set('forum_parent_id', (int) $vars->get('forum_parent_id'));



I leave it to the Horde team to decide the proper corrective action.
01/14/2006 05:58:15 PM ben (at) alkaloid (dot) net Comment #8 Reply to this comment
I can reproduce this problem.  Clean install of Horde 3.0.9.  Only 
other module installed is IMP.  Preferences and authentication 
backends are LDAP.  Datatree driver is MySQL.  Agora from CVS as of 
01/14/2006



I have as yet been unable to find the problem but I am still looking.
07/04/2005 02:07:14 PM padox (at) gmx (dot) net Comment #7 Reply to this comment
Hi,



i got exactly the same problem on creating the first Forum,

with ParentForum as TopLevel:

"Parent forum. Invalid data submitted."



Agora is latest CVS-Version (07/04/2005)

Horde: 3.0.4 release

Data Tree is SQL-DB with horde defaults



its the absolutly first time for module agora
04/22/2005 10:17:27 AM Jan Schneider Comment #6
State ⇒ Not A Bug
Reply to this comment
No feedback.
03/06/2005 12:43:49 PM Jan Schneider Comment #5 Reply to this comment
I still can't reproduce this, even with a completely clean database. 
You need to debug on your own what's going wrong there.



Some starting points in editforum.php:

- Check the content of $forums_list before and after submitting.

- Try to run $form->getInfo after the validate() if-clause and check 
the content of $info.
02/17/2005 09:43:43 AM israel (at) gmx (dot) de Comment #4 Reply to this comment
Same problems appears when adding a new project in thor (HEAD-2005-2-16).



Error:  Parent project Invalid data submitted.
02/16/2005 05:46:20 PM israel (at) gmx (dot) de Comment #3 Reply to this comment
I installed horde-3.0.3 with database access, DataTreeSystem is SQL 
Database. This works fine with nag. agora Version is 
agora-HEAD-2005-02-16



Steps to reproduce this error:

- Log in as admin

- Launch Agora

- Click on "New Forum"

- Enter something as Forum Name

- Select "-- Top Level --" as Parent Forum

- Enter something as Forum Description

- Click on Create-Button

- Error Message is: "Parent Forum Invalid data submitted" in front of 
Parent Forum SelectBox



agora config is:

<?php

/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */

// $Horde: agora/config/conf.xml,v 1.17 2004/08/14 09:53:28 mdjukic Exp $

$conf['forums']['enable_attachments'] = '1';

$conf['threads']['track_views'] = true;

$conf['menu']['apps'] = array();

/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
02/16/2005 04:46:05 PM Jan Schneider Comment #2
Summary ⇒ Can't create forum
State ⇒ Feedback
Reply to this comment
Works fine here. Please provide exact steps to reproduce this error.
02/16/2005 03:56:43 PM israel (at) gmx (dot) de Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Agora
Type ⇒ Bug
Summary ⇒ Cant create forum
Reply to this comment
After installing agora-HEAD-2005-02-16.tar.gz I cant create the first forum.

Error on "New Forum" page is: "parent forum: invalid data submitted" 
after selecting  -- Top Level --

Saved Queries