phorum_db_add_forum()
Posted by clintcan
|
phorum_db_add_forum() June 05, 2007 10:50PM |
Registered: 18 years ago Posts: 7 |
Hi there,
this is my question.
I made a function to create a forum for a user that has registered by using phorum_db_add_forum.
The problem comes when I try to add a topic inside the created forum.
The thread will be seen but, there is an error: Division by zero in /var/www/web1/web/forum/list.php on line 314
and
implode() [function.implode]: Bad arguments. in /var/www/web1/web/forum/list.php on line 322
Is there any procedure to make this error go away?
Thanks
this is my question.
I made a function to create a forum for a user that has registered by using phorum_db_add_forum.
The problem comes when I try to add a topic inside the created forum.
The thread will be seen but, there is an error: Division by zero in /var/www/web1/web/forum/list.php on line 314
and
implode() [function.implode]: Bad arguments. in /var/www/web1/web/forum/list.php on line 322
Is there any procedure to make this error go away?
Thanks
|
June 06, 2007 03:28AM |
Admin Registered: 21 years ago Posts: 8,532 |
read_length seems to be 0, so I guess you did not set that field for the new forum. The second error is a side effect from the first one.
To fix this, go into the admin interface and configure the read length for the forum through there (or directly update the field in the database).
For an example of how to create a forum reliably, see the test forum install code in include/admin/install.php
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
To fix this, go into the admin interface and configure the read length for the forum through there (or directly update the field in the database).
For an example of how to create a forum reliably, see the test forum install code in include/admin/install.php
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: phorum_db_add_forum() June 09, 2007 07:41PM |
Registered: 18 years ago Posts: 7 |
Sorry, only registered users may post in this forum.