- Posts: 74
Joomdle 2.x Installation
[SOLVED] Joomdle Web Services error message
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
3 years 3 months ago #11
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
But first I had a typo in the url : mysite/ndex.php?option=com_joomdle&task=ws.server&format=json and it did return that message :
Code:
{"error":true,"code":404,"message":"Page not found"}
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
3 years 3 months ago #12
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Web Services error message
I am not sure what can be happening....if you want, you can send me Joomla and Moodle urls and admin info to antonio at joomdle email address, and I'll take a quick look.
Please Log in or Create an account to join the conversation.
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
3 years 3 months ago #13
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
Actually, this is a testing version of my main website (before having joomdle live on it)
Since I was stuck, I just started another testing version to test everything progressively.
Let me finish that new setup and if I come across the same bug again, I'll certainly take you offer gladly.
I'll keep this dev version in any case for the moment.
Since I was stuck, I just started another testing version to test everything progressively.
Let me finish that new setup and if I come across the same bug again, I'll certainly take you offer gladly.
I'll keep this dev version in any case for the moment.
Please Log in or Create an account to join the conversation.
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
3 years 3 months ago #14
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
OK, I found the problem.
In Joomla default language (auth_joomdle | joomla_lang) I put
since I have a multilingual joomla website (English and French) When I removed it, all checks are green again.
What format am I supposed to use here ?
In Joomla default language (auth_joomdle | joomla_lang) I put
Code:
en-GB
What format am I supposed to use here ?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
3 years 3 months ago #15
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Web Services error message
That setting is for making web services work. If system check is all green with that setting blank, it is safe to leave it like it is.
Please Log in or Create an account to join the conversation.
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
3 years 3 months ago #16
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic [SOLVED] Joomdle Web Services error message
OK, good to know. Thanks !
Please Log in or Create an account to join the conversation.
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
3 years 3 months ago #17
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
OK, so I might take on your offer after all, cause I don't know what to do anymore 
After an upgrade of LScache and setting it correctly so that cache wouldn't be applied on joomdle, all related weird IP6 error messages eventually caused by openlitespeed/cloudflare conflicts were solved (logs are squeaky clean now ).
However, now Joomdle Web Services gives this error message:
.
joomdle_system_check.json displays:
index.php?option=com_joomdle&task=ws.server&format=json displays:
SSO does not work at all now (not even partly) but I suppose it is logical if Web services
Can I send you my login details then ?
After an upgrade of LScache and setting it correctly so that cache wouldn't be applied on joomdle, all related weird IP6 error messages eventually caused by openlitespeed/cloudflare conflicts were solved (logs are squeaky clean now ).
However, now Joomdle Web Services gives this error message:
Code:
Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle
joomdle_system_check.json displays:
Code:
{"joomdle_auth":1,"mnet_auth":1,"joomdle_configured":1,"test_data":null,"release":"2.0.4"}
index.php?option=com_joomdle&task=ws.server&format=json displays:
Code:
"Invalid token:"
SSO does not work at all now (not even partly) but I suppose it is logical if Web services
Can I send you my login details then ?
Please Log in or Create an account to join the conversation.
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
3 years 3 months ago - 3 years 3 months ago #18
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Joomdle Web Services error message
Hmm... actually it could still be related to OpenLiteSpeed and LScache plugin because this is what joomdle_system_check.json displays: in the moodle data temp directory :
The one in my previous post was a message from Joomla admin/logs directory.
Now, after investigating this a bit, it seems that it is just a warning that the "user" is not using a regular browser, and I guess that is expected if it is a joomdle server connexion ? Well I don't know much about PHP, so not sure what to think.
Code:
<b>Warning</b>: Undefined array key "HTTP_USER_AGENT" in <b>plugins/system/lscache/lscache.php</b> on line <b>232</b><br />
"It works"
Now, after investigating this a bit, it seems that it is just a warning that the "user" is not using a regular browser, and I guess that is expected if it is a joomdle server connexion ? Well I don't know much about PHP, so not sure what to think.
Last edit: 3 years 3 months ago by Pierrick Le Brun.
Please Log in or Create an account to join the conversation.
- Pierrick Le Brun
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
3 years 3 months ago - 3 years 3 months ago #19
by Pierrick Le Brun
Replied by Pierrick Le Brun on topic [SOLVED] Joomdle Web Services error message
OK, It's fixed !
[strike]The last problems I described in last 2 posts probably came up after upgrading a bit too prematurely from Moodle 4.1 to Moodle 4.1+
No such problem when I reverted to Moodle 4.1[/strike]
Actually, I was wrong, although, yes, it is fixed !
I had the same error message pop up suddenly on my reverted Moddle 4.1. Except that this time I had not modified one tiny iota on my Moodle installation and I was certain of it. The only thing I had modified was not on Moodle, but on Joomla backend. I had just modified the error reporting level on Joomla server logs configuration from "None" to "Maximum". And when I set it back on "None", web service had its green light again.
So I tested on my Moodle 4.1+ (which I had kept on the side) and sure enough, Joomdle system check shows no error only if the error reporting level on Joomla server logs configuration is set on "None", if it is set on any other level, Joomdle system checks shows the following error for web services :
Maybe this odd behavior is only happening on my server for some odd reason ??
And I confirm that the language (auth_joomdle | joomla_lang) settings has to remain blank for the Web Services to function correctly.
[strike]The last problems I described in last 2 posts probably came up after upgrading a bit too prematurely from Moodle 4.1 to Moodle 4.1+
No such problem when I reverted to Moodle 4.1[/strike]
Actually, I was wrong, although, yes, it is fixed !
I had the same error message pop up suddenly on my reverted Moddle 4.1. Except that this time I had not modified one tiny iota on my Moodle installation and I was certain of it. The only thing I had modified was not on Moodle, but on Joomla backend. I had just modified the error reporting level on Joomla server logs configuration from "None" to "Maximum". And when I set it back on "None", web service had its green light again.
So I tested on my Moodle 4.1+ (which I had kept on the side) and sure enough, Joomdle system check shows no error only if the error reporting level on Joomla server logs configuration is set on "None", if it is set on any other level, Joomdle system checks shows the following error for web services :
Code:
Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle
Maybe this odd behavior is only happening on my server for some odd reason ??
And I confirm that the language (auth_joomdle | joomla_lang) settings has to remain blank for the Web Services to function correctly.
Last edit: 3 years 3 months ago by Pierrick Le Brun. Reason: Corrected wrong infos
Please Log in or Create an account to join the conversation.