[eluser]PvOostrom[/eluser]
While using OFAPI(
http://code.google.com/p/ofapi/) with phpBB3 together with CodeIgniter, I ran into some annoying problems and errors.
Here is what I did:
Code:
$this->load->library('xmlrpc');
$this->xmlrpc->set_debug(TRUE);
$this->xmlrpc->server(site_url('forums/ofapi/ofapi.php'), 80);
$this->xmlrpc->method('logging.login');
$loginInfo = array('Cayren','xxxxxxx');
$request = $loginInfo;
//$request = array('auth' => $loginInfo);
$this->xmlrpc->request($request);
if ( ! $this->xmlrpc->send_request())
{
$data["response"] = $this->xmlrpc->display_error();
}
else
{
$this->xmlrpc->method('members.getMembersList');
$request = array('auth' => $loginInfo);
$this->xmlrpc->request($request);
if ( ! $this->xmlrpc->send_request())
{
$data["response"] = $this->xmlrpc->display_error();
}
else
{
$data["response"] = $this->xmlrpc->display_response();
}
}
and the error I get:
Code:
Severity: Notice
Message: Undefined offset: 0
Filename: libraries/Xmlrpc.php
Line Number: 627
Fatal error: Call to a member function serialize_class() on a non-object in /usr/home/mmo/framework/libraries/Xmlrpc.php on line 646
Any idea what the problem could be?