- Posts: 7902
Joomla URL misconfigured in Joomdle auth plugin...
- Antonio Durán
-
- Offline
- Moderator
-
Please Log in or Create an account to join the conversation.
- iadefy
- Topic Author
- Offline
- New Member
-
- Posts: 11
antonio wrote: did you set joomdle config in moodle to use Joomla 1.6?
Yes. In Moodle->Settings->Site administration->Plugins->Authentication->Joomdle, I set the Joomla URL to: h t t p://mydomain.com/j16/ and selected Joomla 1.6.x.
Not having much luck with Moodle 2...
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7902
Please Log in or Create an account to join the conversation.
- iadefy
- Topic Author
- Offline
- New Member
-
- Posts: 11
antonio wrote: When you tried J1.5 + Moodle 2.0, did you get the same error?
I forgot exactly which Joomdle Web Services error message that I was getting with J1.5+ Moodle 2, I deleted Moodle 2 after not getting it success to work and test it with Moodle 1.9 which works just fine. I'll reinstall it at later time and report back the error message...
Please Log in or Create an account to join the conversation.
- iadefy
- Topic Author
- Offline
- New Member
-
- Posts: 11
Please Log in or Create an account to join the conversation.
- Baito
- Offline
- New Member
-
- Posts: 6
I also had the same problem when I tried with the previous Joomdle version on Joomla 1.5 with Moodle 2.0, which I didn't look very much into because I was busy with something else at the moment and was waiting for Joomla 1.6 anyways.
I did replace the few <? short tags with proper <?php ones, which didn't fix it for me either.
My setup is:
Joomla! 1.6.0
Moodle 2.0.1+ (Build: 20110209)
PHP 5.3.3
MySQL 5.1.36 (though I don't think it has anything to do with the database at all)
Anything else you can think of? Or anything I can try to do or find out to help you figure out what the problem is?
Please Log in or Create an account to join the conversation.
- iadefy
- Topic Author
- Offline
- New Member
-
- Posts: 11
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7902
I explain: Joomdle is set to control access to Joomla web services based on IP restriction. If the IP address your server is using to communicate is not the public one, you may receive this error.
To check if this is the issue, open /plugins/xmlrpc/joomdle.php
In check_origin function, add:
return true;
Just before:
return ($request_ip == $moodle_ip);
That will avoid the IP check, so we can see if this is the problem.
Please Log in or Create an account to join the conversation.
- iadefy
- Topic Author
- Offline
- New Member
-
- Posts: 11
I have J1.5 and J1.6 installed on:
mydomain.com/j15
mydomain.com/j16
I have moodle1.9 and moodle2 installed on:
mydomain.com/moodle
mydomain.com/moodle2
with different moodledata path on root: /moodledata and /moodledata2
I installed JoomdleAlpha2's auth folder in Moodle2.
In Moodle2->Plugins->Authentication, If I set the Joomla URL as mydomain.com/j15 and Joomla version: 1.5.x, but I logged into J1.6->Joomdle->System Check, I saw all the green checkmark!
But if in Moodle2, the Joomla URL set as mydomain.com/j16, version 1.6, and logged into J1.6->Joomdle->System Check, the "Joomdle Web Services" appeared as red cross (error: Joomla URL misconfigured)!
I think I will have to do new installation with J1.6 + Moodle 2 only on a new account and do all the test again as you suggested.
Please Log in or Create an account to join the conversation.
- iadefy
- Topic Author
- Offline
- New Member
-
- Posts: 11
antonio wrote: To check if this is the issue, open /plugins/xmlrpc/joomdle.php
In check_origin function, add:
return true;
Just before:
return ($request_ip == $moodle_ip);
I checked J1.5 and it has /plugins/xmlrpc/joomdle.php, but for J1.6, the xmlrpc folder is missing under /plugins/ folder...
Please Log in or Create an account to join the conversation.