Forum OpenACS Development: error on contact add person/organization

I've browsed all over contacts package and I got the error mesage, which seems to be a permission issue, but I already set all permission up to adminstrator, but i still get the error. Could that be OS permissions on the directory related?

[01/Aug/2006:22:43:27][17737.14][-sched:17-] Notice: contacts::sweeper creating content_item and content_revision for party_id: 0
[01/Aug/2006:22:43:27][17737.14][-sched:17-] Error: Ns_PgExec: result status: 7 message: ERROR: -20000: This folder does not allow subfolders to be created
CONTEXT: PL/pgSQL function "content_folder__new" line 7 at return
PL/pgSQL function "contact__folder_id" line 11 at assignment
PL/pgSQL function "contact_party_revision__item_id" line 12 at SQL statement
PL/pgSQL function "contact_party_revision__new" line 11 at assignment

[01/Aug/2006:22:43:27][17737.14][-sched:17-] Error: Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR: -20000: This folder does not allow subfolders to be created
CONTEXT: PL/pgSQL function "content_folder__new" line 7 at return
PL/pgSQL function "contact__folder_id" line 11 at assignment
PL/pgSQL function "contact_party_revision__item_id" line 12 at SQL statement
PL/pgSQL function "contact_party_revision__new" line 11 at assignment

SQL:

select contact_party_revision__new('0',NULL,'now()',NULL,NULL)

Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR: -20000: This folder does not allow subfolders to be created
CONTEXT: PL/pgSQL function "content_folder__new" line 7 at return
PL/pgSQL function "contact__folder_id" line 11 at assignment
PL/pgSQL function "contact_party_revision__item_id" line 12 at SQL statement
PL/pgSQL function "contact_party_revision__new" line 11 at assignment

SQL:

select contact_party_revision__new('0',NULL,'now()',NULL,NULL)


while executing
"ns_pg_bind 0or1row nsdb1 {

select contact_party_revision__new(:party_id,:party_revision_id,'now()',:creation_user,:creation_ip)

}"
("uplevel" body line 1)
invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql]"
("postgresql" arm line 2)
invoked from within
"switch $driverkey {
oracle {
return [uplevel $ulevel [list ns_ora $type $db $sql] $args]
}
..."
invoked from within
"db_exec 0or1row $db $full_statement_name $sql"
invoked from within
"if {[regexp -nocase -- {^\s*select} $test_sql match]} {
# ns_log Debug "PLPGSQL: bypassed anon function"
set selection..."
("uplevel" body line 6)
invoked from within
"uplevel 1 $code_block "
invoked from within
"db_with_handle -dbn $dbn db {
# plsql calls that are simple selects bypass the plpgsql
# mechanism for creating anonymous fun..."
(procedure "db_exec_plsql" line 57)
invoked from within
"db_exec_plsql create_object {}"
(procedure "package_instantiate_object" line 113)
invoked from within
"package_instantiate_object -extra_vars $extra_vars contact_party_revision"
(procedure "contact::revision::new" line 5)
invoked from within
"contact::revision::new -party_id $person_id"
("uplevel" body line 3)
invoked from within
"uplevel 1 $code_block "
("1" arm line 1)
invoked from within
"switch $errno {
0 {
# TCL_OK
}
1 {
# TCL_ERROR
..."
("while" body line 20)
invoked from within
"while { [db_getrow $db $selection] } {
incr counter
if { [info exists array_val] } {
unset array_val
..."
("uplevel" body line 5)
invoked from within
"uplevel 1 $code_block "
invoked from within
"db_with_handle -dbn $dbn db {
set selection [db_exec select $db $full_statement_name $sql]

set counter 0
while { [db_getrow $..."
(procedure "db_foreach" line 36)
invoked from within
"db_foreach get_persons_without_items {} {
ns_log notice "contacts::sweeper creating content_item and content_revision for party_id: $person_id"
cont..."
(procedure "contacts::sweeper" line 2)
invoked from within
"contacts::sweeper"
("eval" body line 1)
invoked from within
"eval [concat [list $proc] $args]"
(procedure "ad_run_scheduled_proc" line 46)
invoked from within
"ad_run_scheduled_proc {t f 300 contacts::sweeper {} 1154462607 0 f}"