Joomdle 1.0 Installation

Received empty response from Moodle

  • Seán Ó Séaghdha
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago - 4 years 8 months ago #1 by Seán Ó Séaghdha
Received empty response from Moodle was created by Seán Ó Séaghdha
I’ve tried all the possible combinations of protocols & setups, but I cannot get a tick on Joomdle Web Services. All the other system checks are fine (at least with file_get_contents and REST). Auth tokens are correct. The Joomla site is multi-language and Joomla SEF is checked in Joomdle/Moodle.

Joomla is installed in the webroot and Moodle in a subfolder. I’d like to use Moodle through a subdomain, but it changing to the explicit subfolder URL doesn’t work either.

The URLs are entered in this format — Joomla component: https://site/folder | Moodle plugin: https://site — and those URLs work consistently for accessing either site.

This setup is on shared hosting, so if there is something in the providers configuration that needs changing it would be good to know, but at the moment I don’t feel like there would be much point opening a support ticket since I don’t really know what’s going wrong.
Last edit: 4 years 8 months ago by Seán Ó Séaghdha.

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

More
4 years 8 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Received empty response from Moodle
Hi.

Empty response from Moodle can be caused by many things: security measures, DNS problems, connectivity issues, Moodle problems....

As you say other check items are green, the first thing I would try is connecting to Moodle from a test script, located outside the server.
Assuming you can use XMLRPC, you can download this (I have not yet prepared one for REST*):
www.joomdle.com/aux/joomdle_moodle_ws_client.php.zip

Put the file in a webserver (better not the same as the site, can be localhost), edit the details, and call the script to see what you get.

* If you cannot use XMLRPC let me know and I will create a testing file for REST when I can.

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

  • Seán Ó Séaghdha
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #3 by Seán Ó Séaghdha
Replied by Seán Ó Séaghdha on topic Received empty response from Moodle
Code:
Reply: Array ( [joomdle_auth] => 1 [mnet_auth] => 1 [joomdle_configured] => 1 [test_data] => [release] => 2.0.0-beta1 )

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

More
4 years 8 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Received empty response from Moodle
Ok, that means Moodle side is fine.

Upload the file to your Joomla root, and execute it from there, to see if you get different results.

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

  • Seán Ó Séaghdha
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #5 by Seán Ó Séaghdha
Replied by Seán Ó Séaghdha on topic Received empty response from Moodle
That was the next thing I did, with the same result.

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

More
4 years 8 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Received empty response from Moodle
Read this:
www.joomdle.com/wiki/System_health_check#Raw_replies

And check joomla_folder/logs/joomdle_system_check.xml to see the raw reply from Moodle.

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

  • Seán Ó Séaghdha
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago - 4 years 8 months ago #7 by Seán Ó Séaghdha
Replied by Seán Ó Séaghdha on topic Received empty response from Moodle
[Joomla]/logs/joomdle_system_check.xml just shows the same stuff.

Code:
<?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <struct> <member> <name>joomdle_auth</name> <value> <int>1</int> </value> </member> <member> <name>mnet_auth</name> <value> <int>1</int> </value> </member> <member> <name>joomdle_configured</name> <value> <int>1</int> </value> </member> <member> <name>test_data</name> <value> <string/> </value> </member> <member> <name>release</name> <value> <string>2.0.0-beta1</string> </value> </member> </struct> </value> </param> </params> </methodResponse>

moodledata/temp/joomdle_system_check.xml is empty

When configured to use XMLRPC though I get the error “Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle”.
Last edit: 4 years 8 months ago by Seán Ó Séaghdha.

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

More
4 years 8 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Received empty response from Moodle
Ok, then the problem is not Moodle, but Joomla.

Try doing the same operation with this script:
www.joomdle.com/aux/joomdle_joomla_ws_client.zip

As you get an incorrect response from Joomla,we need to see if we get a different results when connecting from outside the server.

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

  • Seán Ó Séaghdha
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #9 by Seán Ó Séaghdha
Replied by Seán Ó Séaghdha on topic Received empty response from Moodle
I seem to get an empty response.
Code:
R: D:

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

More
4 years 8 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Received empty response from Moodle
Are you running any security extensions in Joomla? If so, try disabling them.
It is not very common to get an empty reply from Joomla....

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