Ir al contenido
Menú
Se marcó esta pregunta

I've created an app with PHP5-xmlrpc and I'm using ripcord to connect to my Odoo webservice.
It worked fine with php5, but since my update to php7, the following happens:

$common = ripcord::client(ODOO_URL . "/xmlrpc/2/common") //create a connection
$uid = $common->authenticate(ODOO_DB, $user, $pass, []); //this call fails

The error I'm getting is Fatal error: xmlrpc_encode_request(): XML-RPC doesn't support circular references in [PATH]/ripcord_client.php on line 226

This line is $request = xmlrpc_encode_request( $name, $args, $this->_outputOptions ); and the values are:

$name => 'authenticate'  
$args => Array (
            [0] => [db_name]
            [1] => [login]
            [2] => [password]
            [3] => Array ()
         )

$this->_outputOptions => Array (
            [output_type] => xml
            [verbosity] => pretty
            [escaping] => Array (
                    [0] => markup
                )
            [version] => xmlrpc
            [encoding] => utf-8
        )

Some suggestions would be appreciated.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 17
2746
0
sept 17
3818
2
jun 17
12764
2
jun 15
6403
3
jun 20
4025