Error in afcs.php

Avatar

Avatar

mitrichaka

Avatar

mitrichaka

mitrichaka

20-04-2010

          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?

Replies

Avatar

Avatar

DeanXC

Avatar

DeanXC

DeanXC

19-05-2010

Hi, I ran your example, see following code, and it ran fine (see screen shot).  However, I did put the getNodeConfiguration with separate call (separate request), because setNodeConfiguration will take time to update the node, calling it immediately after setNodeConfiguration might not reflecting latest change.  Also btw, we are updating more example code.

thanks

Dean

    $configuration = array("persistItems"=>"true",

                            "userDependentItems"=>"true",

                               "publishModel"=>10, 

                               "allowPrivateMessages"=>"true",

                               "lazySubscription"=>"false",

                               "allowPrivateMessages"=>"true", 

                               "accessModel"=>20, 

                               "modifyAnyItem"=>"false",  

                               "itemStorageScheme"=>2,  

                               "sessionDependentItems"=>"true",

                               "p2pDataMessaging"=>"false");     

             $afcs->subscribeCollection($roomname,$collectionname);

        $afcs->createNode($roomname, $collectionname, $nodename);

             $afcs->setNodeConfiguration($roomname,$collectionname,$nodename,$configuration);

        echo "<h1> Create Node Sent </h1> ";

and separete request for getNodeConfigruation

result.jpg