Joomdle Web Services fails system check on Joomdle ALPHA 4

  • Andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #1 by Andrew
Hi,
I'm getting this error in the system check, under Joomdle Web Services, 'Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle.' So in the system check wiki it says, that I need to enter the 'Joomla URL in Joomdle auth plugin configuration'. I've triple checked that this is the correct URL in the auth plugin. Its the only failed system check. What can I do? My setup is moodle.mydomain.com/ for my joomla site and moodle.mydomain.com/moodle/ for my moodle site. Is this ok? Thanks!

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

More
14 years 11 months ago #2 by Chris
hi there,

which version of Moodle are you using?

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

  • Andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #3 by Andrew
Joomdle R0.5 for Joomla 1.6.x ALPHA 4 and moodle 2.0

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

  • Helios Pastor Aracil
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #4 by Helios Pastor Aracil
Replied by Helios Pastor Aracil on topic Re: Joomdle Web Services fails system check on Joomdle ALPHA 4
Hello,

If you have already checked all URL's are ok configured then I have to ask this:

Have you enabled the "System - Cache" plugin? If you have, try disable ... Clean cache (Site -> Maintenance -> Clear cache) and if you have JAT3 Cache clean it too.

Then go and check again the Joomdle Web Service (without enabling the plugin).

Posts results please.
---
Helios

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

  • Andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #5 by Andrew
Just got back to working on my moodle install :)

So I didn't have the "System - Cache" plugin installed. But I did do a clean cache and went back into the system check and still it says "Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle"

Is it ok to have moodle in a subdirectory of your joomla install?

Could it be a file permission issue? I've got nothing in my error logs.

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

More
14 years 11 months ago #6 by Chris
Have you validated the urls against how they are finally resolved? Ie if you type without www but eventually they are resolved to www or vice versa. Is there any redirect in your .htaccess file?

Yes it is OK to have moodle in a subdirectory. Permissions are not likely to be an issue. There is one thread that talks about directory permissions - but just the one. Normally for the Moodle files, the directory permissions are set as per Moodle default installation which is 755. For Joomla, the permissions tend to only causes problems when installing extensions and where the owner of the directory is different than the owner who runs joomla (normally "nobody").

I can try to see how I can generate additional scenarios where that message is generated but it may take me a few days.

Out of curiosity which Joomla 1.6 are you running? 1.6.1, 1.6.2 or 1.6.3? Why? Somebody else is having problems on J1.6.3 with web services which I don't have an answer for yet either.

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

  • Andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #7 by Andrew
I'm on Joomla 1.6.3

I've gone ahead and did a little debugging myself. Maybe this will save you some time? What I've done is logged the results of the XMLRPC response by adding the following lines to helpers/content.php (at line 1225):
Code:
//added at line 1225 of helpers/content.php $fp = fopen('log.txt', 'a'); fwrite($fp, date("m/d/Y H:i:s A")." ".str_replace('\r','',var_export($response,true)." \n")); fclose($fp);

which gave me the following results:
Code:
04/27/2011 11:23:09 AM array ( 'joomdle_auth' => 1, 'mnet_auth' => 1, 'joomdle_configured' => 1, 'test_data' => '<?xml version="1.0" encoding="iso-8859-1"?> <methodResponse> <params> <param> <value> <string>It works</string> </value> </param> </params> </methodResponse> ', )

So it seems the 'test_data' still has XML on it, so this else/if statement might be conflicting, no?
Code:
else if ($response['test_data'] != 'It works')


Anyway, hope this helps! It looks like maybe my setup is working, just the system check thinks its not?



Andrew

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

More
14 years 11 months ago #8 by Chris
Thanks for your help Andrew. I'll get Antonio to have a look at this and get back to you.

Chris

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

More
14 years 11 months ago #9 by Antonio Durán
Hi.

Thanks for the additional info.

However, I cannot replicate your problem.

I just installed Joomla 1.6.3 and configured Joomdle, and system checks shows ok.

Applying your debug, I get:
04/28/2011 10:18:49 AM array (
'joomdle_auth' => 1,
'mnet_auth' => 1,
'joomdle_configured' => 1,
'test_data' => 'It works',
)

So I have no idea why you get a response with XML :(

As for knowing if everything is working aside from system check: test course listing (this I am sure will work) and creating a new user from Joomla (if the moodle user gets created with name and email ok, Joomdle is working fine)

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

  • Andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #10 by Andrew
Looks like I am having a XMLRPC error then. I got this error:

XML-RPC Error (0): Invalid external api response: firstname (Invalid external api response)

After I created a joomla user, I went into joomdle and selected my new user and pressed the 'sync joomla profiles'

And in moodle it created a new user, but the first name, last name and email are all '<' and thats it. So I'm guessing its not decoding XMLRPC on my server for some reason. Any ideas? Where would it be decoding it so I can check things out there. Thanks for your help!

Andrew

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