Joomdle 1.0 Installation

Connection method

More
10 years 7 months ago #1 by walid
Connection method was created by walid
hi to all
in my free host allow_url_fopen option is not enable ,and no way to change it in php.ini
i have this problem in check system :
"You need to set PHP option allow_url_fopen to On, on your PHP configuration"
so can you please explain in detail how we can use CURL Connection method instead of file_get_content to over come this problem
what should i do in moodle and joomla to use CURL connection method instead of file_get_content
and thanx in advance

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

More
10 years 7 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Connection method
You need to have cUrl support in your host.
Being it a free hosting, most probably it won't have curl support either.

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

More
10 years 7 months ago #3 by walid
Replied by walid on topic Connection method
Hello Antonio
thanx for your replay
let me explain my problem :
when using file_get_content i have this message in system check :
"You need to set PHP option allow_url_fopen to On, on your PHP configuration"
i request my host admin to enable allow_url_fopen option and he did that
now allow_url_fopen is enable on my site but the message "You need to set PHP option allow_url_fopen to On, on your PHP configuration" is still apper to me .
when i change connection method to curl i have these messages:
XMLRPC PHP Extension ok
Joomdlehooks User Plugin enabled ok
cURL Enabled ok
Joomla to Moodle HTTP connectivity "problem : Joomla cannot connect to Moodle "
Moodle to Joomla HTTP connectivity "problem :Moodle cannot connect to Joomla "
Joomdle Web Services "problem : Received empty response from Moodle "
and in tow cases ( file_get_content or Curl) , when i register user in joomla it not register in moodle (there is no synchronization between joomla and moodle )

so i hope you help me
and thanx in advance again

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

More
10 years 7 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Connection method
Seems curl is enabled in your host, so you should stick with it.

As for the connection problem: this indicates that the server cannot connect to the Moodle URL configured in Joomdle in Joomla.
Double check it is ok, inlcuding http://.
It also can fail because some hosting restriction is stopping the server to connect to itself: firewall, dns problems, ...

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

More
10 years 7 months ago #5 by walid
Replied by walid on topic Connection method
thank you for your reply
i check that http:// is include .
i using this link on my site:
http::/yoursite.com/index.php?option=com_joomdle&task=ws.server&format=xmlrpc
and i get this result:
XML-RPC Error (1): Invalid token:
so i repeat all the steps from begging and have the same results
XML-RPC Error (1): Invalid token:
so .. any issue to solve this connection problem?

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

More
10 years 7 months ago #6 by Chris
Replied by Chris on topic Connection method
Hi Walid,

Antonio is referring to the defined url in Moodle and Joomla. Eg assuming your site is www.mydomain.com and moodle is stored in a folder called moodle below the domain then
configure joodle in joomla = www.mydomain.com/moodle
configure joomdle in moodle = www.mydomain.com

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