Joomla cannot connect to Moodle

  • Wanda Bostock
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 7 months ago - 13 years 7 months ago #1 by Wanda Bostock
Joomla cannot connect to Moodle was created by Wanda Bostock
Just upgraded our Joomdle component to 0.82 (was previously 0.61). Also upgraded Moodle Joomdle integration (Moodle ver 2.2). Now get the following error when I run the System Check:

Moodle cannot connect to Joomla

There's another error that also appears, but it also existed before the upgrade. That error is: Received empty response from Moodle.

Looked through the threads in the forum and found a similar issue, and have double checked that the web services and xmlrpc in Moodle are enabled, and that the URL entered in the Joomdle config in Joomla contains "http://".

How can I resolve these errors?

Thanks....
Last edit: 13 years 7 months ago by Wanda Bostock.

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

More
13 years 7 months ago #2 by Igor Valle
Replied by Igor Valle on topic Joomla cannot connect to Moodle
Do u verify if the user has permission to use xml-rpc protocol?!

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

  • Wanda Bostock
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 7 months ago #3 by Wanda Bostock
Replied by Wanda Bostock on topic Joomla cannot connect to Moodle
The user had this permission before the upgrade, but I haven't verified that it still does since the upgrade. Would the upgrade affect the previously defined user permission?

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

More
13 years 7 months ago #4 by Fernando Acedo
Replied by Fernando Acedo on topic Joomla cannot connect to Moodle
This problem seems related with Joomdle update.

Did you check all the Joomdle files in moodle are updated?

Go to moodle administration / Notifications and check Joomdle is updated.

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

More
13 years 7 months ago - 13 years 7 months ago #5 by Fernando Acedo
Replied by Fernando Acedo on topic Joomla cannot connect to Moodle
I'm testing the new Joomla version 2.5.6 and I got the same error.

It's a new install so no previous errors. Only the VPS, located in OVH, could be the problem. The rest is done as usual.

Antonio, could you explain us when this error rise?

Thanks

PS: I attach the errors screenshot
Last edit: 13 years 7 months ago by Fernando Acedo.

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

  • Wanda Bostock
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 7 months ago #6 by Wanda Bostock
Replied by Wanda Bostock on topic Joomla cannot connect to Moodle
Thanks for all the replies. I did verify that the Joomdle files in moodle updated. I also verified that my joomdleconnector user for the web service has access to xml-rpc protocol. Rechecked System Check in Joomdle configuration in Joomla and still showing the same errors.

Any further help would be greatly appreciated... thanks!

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

More
13 years 7 months ago - 13 years 7 months ago #7 by Ron Wells
Replied by Ron Wells on topic Joomla cannot connect to Moodle
Just to help rule out the Joomla latest update causing Joomdle to not work, I'm currently running a development / test site with Joomdle 0.82, Joomla 2.5.6, Moodle 2.3.1 and no errors - on a VPS.

PHP Version 5.3.13
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT

General Config Setup in Joomdle
Moodle Version: Moodle 2.0.x
Moodle 2.0 auth Token: <copied from Moodle> **May want to double check and make sure it copied over correctly.**
Connection type: cURL
Use redirectless SSO: No
Internal IP address: <blank>

Are you using any sub domains in your configuration settings of Joomla/Joomdle, Moodle/Joomdle, or Moodle config php file? I was getting errors when using sub domains instead of the http://www... settings.
Last edit: 13 years 7 months ago by Ron Wells.

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

  • Wanda Bostock
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 7 months ago #8 by Wanda Bostock
Replied by Wanda Bostock on topic Joomla cannot connect to Moodle
I verified that the Moodle auth token was correct. Your comment about subdomains got me thinking tho - I checked the config.php that I had set up for Moodle and it was pointing to our alias domain name (e.g. myaliasdomain.com ) for the $CFG->wwwroot setting. When I checked the configuration in Joomla/Joomdle and in Moodle via Plugins->Authentication Joomla URL name - they were both pointing to our actual domain name (e.g. www.mydomain.com ). I modified both of the latter settings to point to the alias domain name and reran the System Check and it worked! All green check marks is a thing of beauty! :cheer:

Thank you SO much for all the help - it is greatly appreciated!!

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

More
13 years 7 months ago #9 by Fernando Acedo
Replied by Fernando Acedo on topic Joomla cannot connect to Moodle
Great!! It works!!

I never had this issue before. Just check in moodle config.php :

$CFG->wwwroot = ' domain.com/moodle ';

it should be the same that moodle URL in Joomla. Without www

Thanks!!

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

More
13 years 7 months ago #10 by Chris
Replied by Chris on topic Joomla cannot connect to Moodle
Great. Thanks for your help Ron & Fernando

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