Note that there are some explanatory texts on larger screens.

plurals
  1. POphp xmlrpc read
    primarykey
    data
    text
    <p>I wont to read lines from table to put theme in a list php scripte</p> <pre><code>$url_obj='http://'.$host.':8069/xmlrpc/object'; $sock=new xmlrpc_client($url_obj); $msg=new xmlrpcmsg('execute'); $arrVal=array('user_id', 'name'); $msg-&gt;addParam(new xmlrpcval($db, "string")); $msg-&gt;addParam(new xmlrpcval(1, "string")); $msg-&gt;addParam(new xmlrpcval($pwd, "string")); $msg-&gt;addParam(new xmlrpcval("res.partner", "string")); $msg-&gt;addParam(new xmlrpcval("read", "string")); $msg-&gt;addParam(new xmlrpcval(3, "int")); //$msg-&gt;addParam(new xmlrpcval($arrVal, "struct")); print_r("message msg="); print_r($msg); $resp= $sock-&gt;send($msg); $val=$resp-&gt;value(); $read=$val-&gt;scalarval(); echo $read; </code></pre> <p>I get the error PHP Fatal error: Call to a member function scalarval() on a non-object </p> <pre><code>message msg=xmlrpcmsg Object ( [payload] =&gt; [methodname] =&gt; execute [params] =&gt; Array ( [0] =&gt; xmlrpcval Object ( [me] =&gt; Array ( [string] =&gt; database ) [mytype] =&gt; 1 [_php_class] =&gt; ) [1] =&gt; xmlrpcval Object ( [me] =&gt; Array ( [string] =&gt; 1 ) [mytype] =&gt; 1 [_php_class] =&gt; ) [2] =&gt; xmlrpcval Object ( [me] =&gt; Array ( [string] =&gt; ****** ) [mytype] =&gt; 1 [_php_class] =&gt; ) [3] =&gt; xmlrpcval Object ( [me] =&gt; Array ( [string] =&gt; res.partner ) [mytype] =&gt; 1 [_php_class] =&gt; ) [4] =&gt; xmlrpcval Object ( [me] =&gt; Array ( [string] =&gt; read ) [mytype] =&gt; 1 [_php_class] =&gt; ) [5] =&gt; xmlrpcval Object ( [me] =&gt; Array ( [int] =&gt; 3 ) [mytype] =&gt; 1 [_php_class] =&gt; ) ) [debug] =&gt; 0 [content_type] =&gt; text/xml ) PHP Fatal error: Call to a member function scalarval() on a non-object in t./est.php on line 27 </code></pre> <p>PHP Fatal error: Call to a member function scalarval() on a non-object in t./est.php on line 27 !</p> <p>can you help me ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload