R0.25 No Longer Supported

[Solved] Web Service

More
15 years 9 months ago - 15 years 9 months ago #1 by Ernst
[Solved] Web Service was created by Ernst
Hi, I am a newbie and I doctored the last 48 hours at the same problem as a lot of users in these forum. But i can´t find any solution to fix the problem.
I use the latest version of Joomla and Joomdle. Moodle run perfect. But the connection Joomdle-Moodle does´nt work.

Joomdle:
Configuration --> connection method: cUrl (when i use fil_get_contents I get error messages like "file_get_contents.... failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error....)

System Check: Joomdle web services = red cross error message: "Received empty response from Moodle"


Moodle:
Authentification--> Joomdle enabled -->Preferences--> connection method: cURL
Authentification -->Mnet enabled
Networking enabled
Network-->xmprlc -->IP 127.0.0.1/32 and 127.0.0.1/32


Hope these information can help to fix the problem

Many thanks for helping
Ernst
Last edit: 15 years 9 months ago by Antonio Durán.
The topic has been locked.
More
15 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Web Service
Hi.

I guess you are on a hosted domain.

Best chance is that it is limiting connection from the host to the host, using cURL and similar.

You should ask your provider if that is the case.
The topic has been locked.
More
15 years 9 months ago #3 by Ernst
Replied by Ernst on topic Re: Web Service
Thank yo for the answer. But I dont understand what you mean exactly.
Yes it´s correct that I am on a hosted domain. There I have a own managed server, so that I am able to change a lot of preferences. What must be changed?

In the last years I had never any problems with limiting connections. But it is the first time that I am installed a projekt like this. So I have no experience with connection methodes like "cURL" or "file_get_contents"

I hope there is any chance to help a dummy like me. :-)
The topic has been locked.
More
15 years 9 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Web Service
I don't know if you can change it, or even if that is the problem.

Let's try to find out with a couple of tests script:
Code:
<?php $ch = curl_init("http://www.google.com/"); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); # return into a variable $response = curl_exec($ch); curl_close($ch); echo $response; ?>


Code:
<?php $ch = curl_init("http://www.yoursite.com/"); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); # return into a variable $response = curl_exec($ch); curl_close($ch); echo $response; ?>

The first one should work with no problems, showing you moodle page.

The second one may give you a blank page.
The topic has been locked.
More
15 years 9 months ago #5 by Ernst
Replied by Ernst on topic Re: Web Service
I had put the scripts in the root directory of my homepage. Under this root are directly the moodle and the joomla directorys.

First script: white page with message "302 Moved The document has moved here." linked to google.

Second script: Opened my homepage
The topic has been locked.
More
15 years 9 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Web Service
If the second script opened the home page, then the problem is not the one I have thought :(
The topic has been locked.
More
15 years 9 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Re: Web Service
Just to complete: finally the problem was with PHP configuration, that enabled XMLRPC for only some folders.
The topic has been locked.