Skip to Content
Menu
This question has been flagged
2 Replies
5793 Views

  Hello sir

          I am using odoo 10.  I am trying to connect my php code to access the  odoo database through xml-rpc with ripcord library. But it throw a error like this.


error:


PHP Warning: require_once(/home/srija/html/html/Ripcord/ripcord.php): failed to open stream: No such file or directory in /home/srija/html/login.php on line 8 PHP Fatal error: require_once(): Failed opening required '/home/srija/html/html/Ripcord/ripcord.php' (include_path='.:/usr/share/php') in /home/srija/html/login.php on line 8 

Avatar
Discard
Author Best Answer

               ya I change my the folder path of the ripcord again it throw the same error. I include my ripcord packages and xmlrpc packages. Here I attached my code.

  <?php

$url = "localhost:8061";

$db = "test";

$username = "admin";

$password = "123";


#include('/home/srija/html/Ripcord/ripcord.php');

require_once __DIR__.'/Ripcord/ripcord.php';

$common = ripcord::client(ODOO_URL . "/xmlrpc/2/common");

$info = ripcord::client('https://demo.odoo.com/start')->start();

list($url, $db, $username, $password) =

  array($info['host'], $info['database'], $info['user'], $info['password']);

?>

          

Error:


PHP Warning: require_once(/home/srija/html/Ripcord/ripcord.php): failed to open stream: No such file or directory in /home/srija/html/login.php on line 8 PHP Fatal error: require_once(): Failed opening required '/home/srija/html/Ripcord/ripcord.php' (include_path='.:/usr/share/php') in /home/srija/html/login.php on line 8


        

Avatar
Discard
Best Answer

Well nothing look like odoo xmlrpc error on your code, just files not found on you system

(/home/srija/html/html/Ripcord/ripcord.php)

may be the second html ...

Avatar
Discard