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 |
State ⇒ Stalled
guess my PHP knowledge is not good enough :( Looking forward if anyone
still has a cure.
New Attachment: Form.php.patch
older PHP versions, it would help a lot if you could identify the
places where we need to cast the negative array key.
And it seems that it works on PHP 4.3.9 (RHEL4)
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?
http://lists.horde.org/archives/dev/Week-of-Mon-20060807/020374.html
State ⇒ Feedback
this isn't lost - thanks.
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.
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.
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.
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
State ⇒ Not A Bug
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.
Error: Parent project Invalid data submitted.
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. */
Summary ⇒ Can't create forum
State ⇒ Feedback
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Agora
Type ⇒ Bug
Summary ⇒ Cant create forum
Error on "New Forum" page is: "parent forum: invalid data submitted"
after selecting -- Top Level --