Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Fatal error: xmlrpc_encode_request(): XML-RPC doesn't support circular references in ripcord_client.php

By
Hans van den Elsen
on 1/2/16, 8:50 AM 862 views

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/2/16, 8:50 AM
Seen: 862 times
Last updated: 1/2/16, 9:02 AM