Odoo Help


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

Hans van den Elsen
on 1/2/16, 8:50 AM 987 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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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