since ‎20-04-2010
‎10-12-2019
mitrichaka
Level 1
Re: Error in afcs.php
Avatar

mitrichaka

mitrichaka
- Adobe LiveCycle
Yeah!!! It works!My eyes lie me, it's wrong!It's my code:public function createNode(){ $roomname = "myfirstroom"; $collectionname = "myChat_ModeratedChatModel"; $nodename= "myprivatenode"; $configuration = array("persistItems"=>"true", "userDependentItems"=>"true", "publishModel"=>10, "allowPrivateMessages"=>"true", "lazySubscription"=>"false", "allowPrivateMessages"=>"true", "accessModel"=>20, "modifyAnyItem"=>"false", "itemStorageScheme"=>2, "sessionDependentItems"=>"true", "p2pDataMessaging"=...

Views

408

Likes

0

Replies

1
Re: Error in afcs.php
Avatar

mitrichaka

mitrichaka
- Adobe LiveCycle
Your example is good, but it's similar to my code and doesn't change configuration of nodes of the created Collection.Please give me some work example without POST and etc, which works and changes configuration.Here is part of my debug:Message was edited by: mitrichaka

Views

408

Likes

0

Replies

3
Re: Error in afcs.php
Avatar

mitrichaka

mitrichaka
- Adobe LiveCycle
Look, I don't need to create new rooms for chat, I need to create only new collectionNode with standart nodes for simplechat. I have to make automatic creation for private chat between users in room, but by default it's not allowed to create collectionNodes from flex with user role less than OWNER.So, I want to use php to create collectionNodes, but when I call to function createNode($room, $coll, $node, $configuration) it creates node, but don't apply my $configuration to it.Tell me please stri...

Views

408

Likes

0

Replies

5
Re: Error in afcs.php
Avatar

mitrichaka

mitrichaka
- Adobe LiveCycle
I found another one error in afcs.php in function subscribeCollection() on line 419-421while (list ($i, $n) = each($nodes)) { $params .= "&node={$v}"; }It makes GET request looks like http://connectnow............&node=node1&node=node2&node=node3.It doesn't work. So, to create new collectionNode for SimpleChat I need to make subscribeCollection(), then create new nodes with function createNode(). I have tried to do this, but createNode() don't change configuration for nodes. Here is my array for...

Views

408

Likes

0

Replies

8
Error in afcs.php
Avatar

mitrichaka

mitrichaka
- Adobe LiveCycle
I think there is the error in afcs.php file from serverIntegration folder of SDK on line 417. if (!is_array($nodes)) $nodes = array ( nodes // <------ here is 417 line of afcs.php );There should be $ symbol before "nodes" ?There are another errors in this function, it looks like it is not working.And there is another one error: I use amfphp on my server and if I don't set $USE_CURL=true in AFCS class, it causes error. Maybe, we need to use curl by default? Has anybode such errors?

Views

1.3K

Likes

0

Replies

10