Firefox PHP

phorum_db_add_forum()

Posted by clintcan 
phorum_db_add_forum()
June 05, 2007 10:50PM
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
Re: phorum_db_add_forum()
June 06, 2007 03:28AM
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
Re: phorum_db_add_forum()
June 09, 2007 07:41PM
Thanks, that worked.
Sorry, only registered users may post in this forum.

Click here to login