Joomdle 2.x Installation

[SOLVED] Joomdle Web Services error message

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago #1 by Pierrick Le Brun
Joomdle Web Services error message was created by Pierrick Le Brun
Yesterday all system checks were green, but today, I got this error message :
Code:
Joomdle Web Services: Invalid response value detected test_data => Invalid response value detected: Scalar type expected, array or object received.

The only new things I did as far as I can see is that I installed the joomdleusercheck and experimented syncing some user between joomla and moodle ??

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

More
3 years 3 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Joomdle Web Services error message
Hi.

Something else must have changed if you are getting the error now....
Maybe you installed something in Joomla that is causing some conflict, like Admin Tools or something like that?

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

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago #3 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message

Maybe you installed something in Joomla that is causing some conflict, like Admin Tools or something like that?

Admin tools was installed before Joomdle. And I can't think of any other except joomdle usercheck plugin.

Otherwise, I activated Moodle debug but it didn't give any other message. What does this error message indicates ? Which DB should I check to spot those non-scalar values ?
Code:
Joomdle Web Services: Invalid response value detected test_data => Invalid response value detected: Scalar type expected, array or object received.

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

More
3 years 3 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Joomdle Web Services error message
This error means that the reply from Joomla is not an array as expected.

Try checking the raw reply in Moodle side:
www.joomdle.com/wiki/System_health_check#Raw_replies

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

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago #5 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message

Joomdle will write raw system check XMLRPC replies to files to help you troubleshoot connection issues.

Files written are:

joomla_folder/logs/joomdle_system_check.xml
moodledata_folder/temp/joomdle_system_check.xml

It seems these instructions apply to older version of Moodle. Those files are absent from my setup since I don't use XMLRPC.

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

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago #6 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message

joomla_folder/logs/joomdle_system_check.xml
.

I don't even have any /logs/ folder

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

More
3 years 3 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Joomdle Web Services error message
I think they changed it to /administrator/logs

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

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago - 3 years 3 months ago #8 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
Yes found it with a json extension.

In joomla_folder/administrator/logs/joomdle_system_check.json, it contains the very same error message:
Code:
{"exception":"invalid_response_exception","errorcode":"invalidresponse","message":"Invalid response value detected","debuginfo":"test_data => Invalid response value detected: Scalar type expected, array or object received."}

Otherwise in moodledata_folder/temp/system_check.json :
Code:
{"error":true,"code":404,"message":"Page not found"}
Last edit: 3 years 3 months ago by Pierrick Le Brun. Reason: more details

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

More
3 years 3 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic Joomdle Web Services error message
Well, the 404 you get on Moodle side is quite strange....

Try opening this url in the browser:
yoursite/index.php?option=com_joomdle&task=ws.server&format=json

You should see:
"Invalid token:"

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

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago - 3 years 3 months ago #10 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
Yes
Code:
"Invalid token:"
Last edit: 3 years 3 months ago by Pierrick Le Brun. Reason: mistake

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