R0.24 No Longer Supported

Joomdle Web Services

More
15 years 11 months ago #21 by Richard Henline
Replied by Richard Henline on topic Re: Joomdle Web Services
Looks like it is failing at this line.

$response = file_get_contents($joomla_xmlrpc_url, false, $context);


If I go directly to moodle/mnet/xmlrpc/server.php

I get faultcode 713

If I go directly to xmlrpc/index.php

I get faultcode 105

It must have something to do with my insallation of PHP-XMLRPC

I will keep digging any more suggestions that might help me figure this one out?

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #22 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Web Services
Fisrts thing is to be sure XML-RPC is enabled.

Paste the xmlrpc block found in phpinfo.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago - 15 years 11 months ago #23 by Richard Henline
Replied by Richard Henline on topic Re: Joomdle Web Services
Here is php_info capture
Last edit: 15 years 11 months ago by Richard Henline.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #24 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Web Services
Sorry, if that is really the line that is failing, xmlrpc is not the problem. file_get_contents function may be.

Ensure allow_url_fopen is on on php info.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #25 by Richard Henline
Replied by Richard Henline on topic Re: Joomdle Web Services
allow_url_fopen is on for local and master.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #26 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Web Services
Then I don't know what is happening.

It seems an empty response is coming from Moodle, which is weird, as it should be an error, if it does not work.

Echo the $joomla_xmlrpc_url just in case...

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #27 by Richard Henline
Replied by Richard Henline on topic Re: Joomdle Web Services
auth/joomdle/auth.php/system_check

It is like it is not accessing auth/joomdle/auth.php at all. Is the auth.php/system_check correct? Seems like it should be something like auth.php?task=system_check or something like that.

I also tried turning of the restrict access and that did not work either.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #28 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Web Services
I don't know what you did to get that,

What I meant is that you returned $joomla_xmlrpc_url in auth.php, so we could see it in joomla.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #29 by Richard Henline
Replied by Richard Henline on topic Re: Joomdle Web Services
What I am saying is that it does not even get that far. I put

echo "I am in system check";
exit();

just after the system_check () function and get nothing. So it is not calling auth.php at all as far as I can tell.

Here is where I got this line auth/joomdle/auth.php/system_check

function call_method_debug ($method, $params = '', $params2 = '')
{

$moodle_xmlrpc_server_url = JoomdleHelperContent::_get_xmlrpc_url ();
echo $request = xmlrpc_encode_request("auth/joomdle/auth.php/$method", array ($params, $params2));
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-type: text/xml",
'content' => $request
)));

$file = file_get_contents($moodle_xmlrpc_server_url , false, $context);
$response = xmlrpc_decode($file);

return $response;
}

Which is called in function check_joomdle_system() where you had me ad the print_r ($response)

I am still trying to decipher the code a little but it looks like my xml-rpc is not working. I am going to see if I can find a xml-rpc for php test script to see if that is the problem.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #30 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Web Services
Was that url you printed the full one? It does not have a the host part.

Please Log in or Create an account to join the conversation.