- Posts: 4
R0.22 and earlier: No Longer Supported
[Solved] XML-RPC problem
- sogi
- Topic Author
- Offline
- New Member
-
Less
More
15 years 9 months ago - 15 years 9 months ago #1
by sogi
[Solved] XML-RPC problem was created by sogi
Hello guys.
At first - good job
I have a problem with integration Joomla/Moodle with your project.
Versions:
Joomla - 1.5.11
Moodle - 1.9.7+ (weekly build)
Problem:
I set up everything like in your HOW-TOs but it don't working.
When I try to integrate moodle into joomla (option=com_joomdle&view=coursecategories), it fives error Error XML-RPC (702): Unable to locate function, or function prohibited for RPC.
If you want, i can also send you selects from database.
Thank you in advance for your help.
At first - good job
I have a problem with integration Joomla/Moodle with your project.
Versions:
Joomla - 1.5.11
Moodle - 1.9.7+ (weekly build)
Problem:
I set up everything like in your HOW-TOs but it don't working.
When I try to integrate moodle into joomla (option=com_joomdle&view=coursecategories), it fives error Error XML-RPC (702): Unable to locate function, or function prohibited for RPC.
If you want, i can also send you selects from database.
Thank you in advance for your help.
Last edit: 15 years 9 months ago by Chris.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC problem
Hi. It seems it is a common problem I am trying to locate.
Just know I thought of one possible solution:
- Modify jooomdle/land.php in moodle/auth. Two lines are:
$user = get_complete_user_data('username', $username, 1);
- Change by:
$user = get_complete_user_data('username', $username);
If that does not work, you can send the SQL selects in the other post. That way I will have more info.
Regards,
Antonio
Just know I thought of one possible solution:
- Modify jooomdle/land.php in moodle/auth. Two lines are:
$user = get_complete_user_data('username', $username, 1);
- Change by:
$user = get_complete_user_data('username', $username);
If that does not work, you can send the SQL selects in the other post. That way I will have more info.
Regards,
Antonio
The topic has been locked.
- sogi
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
15 years 9 months ago - 15 years 9 months ago #3
by sogi
Replied by sogi on topic Re: XML-RPC problem
Hello.
It didn't help.
Any other thoughts?
I will prepare dumps for you and will send it.
Thanks in advance.
It didn't help.
Any other thoughts?
I will prepare dumps for you and will send it.
Thanks in advance.
Last edit: 15 years 9 months ago by sogi.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC problem
Yes, sorry, I am a little slow today
That was for a SSO related issue.
Send the selects and I then I think I will be able to know what is the problem.
Antonio
Send the selects and I then I think I will be able to know what is the problem.
Antonio
The topic has been locked.
- sogi
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
15 years 9 months ago #5
by sogi
Replied by sogi on topic Re: XML-RPC problem
select * from mdl_config where name = 'mnet_localhost_id' ;
Output:
id name value
197 mnet_localhost_id 1
==
SELECT count(r.id) FROM mdl_mnet_host2service h2s, mdl_mnet_service2rpc s2r, mdl_mnet_rpc r WHERE h2s.serviceid = s2r.serviceid AND s2r.rpcid = r.id AND r.xmlrpc_path = 'auth/joomdle/auth.php/list_courses' AND h2s.hostid in (0, 2) AND h2s.publish = '1' LIMIT 1;
Output:
count(r.id)
0
==
select * from mdl_mnet_service2rpc;
Output:
id serviceid rpcid
1 1 1
2 1 2
3 1 3
4 1 4
5 1 5
6 1 6
7 1 7
8 2 8
9 2 9
10 3 10
11 3 11
12 3 12
13 3 13
14 3 14
15 4 15
16 4 16
17 4 17
18 4 18
19 4 19
20 4 20
21 4 21
22 4 22
23 4 23
24 4 24
25 4 25
26 4 26
27 4 27
28 4 28
29 4 29
30 4 30
31 4 31
32 4 32
33 4 33
34 4 34
35 4 35
36 4 36
37 4 37
38 4 38
39 4 39
==
select * from mdl_mnet_rpc where parent='joomdle';
Output: nothing
==
select * from mdl_mnet_host2service;
Output: nothing
Hope this help.
Thanks in advance.
Output:
id name value
197 mnet_localhost_id 1
==
SELECT count(r.id) FROM mdl_mnet_host2service h2s, mdl_mnet_service2rpc s2r, mdl_mnet_rpc r WHERE h2s.serviceid = s2r.serviceid AND s2r.rpcid = r.id AND r.xmlrpc_path = 'auth/joomdle/auth.php/list_courses' AND h2s.hostid in (0, 2) AND h2s.publish = '1' LIMIT 1;
Output:
count(r.id)
0
==
select * from mdl_mnet_service2rpc;
Output:
id serviceid rpcid
1 1 1
2 1 2
3 1 3
4 1 4
5 1 5
6 1 6
7 1 7
8 2 8
9 2 9
10 3 10
11 3 11
12 3 12
13 3 13
14 3 14
15 4 15
16 4 16
17 4 17
18 4 18
19 4 19
20 4 20
21 4 21
22 4 22
23 4 23
24 4 24
25 4 25
26 4 26
27 4 27
28 4 28
29 4 29
30 4 30
31 4 31
32 4 32
33 4 33
34 4 34
35 4 35
36 4 36
37 4 37
38 4 38
39 4 39
==
select * from mdl_mnet_rpc where parent='joomdle';
Output: nothing
==
select * from mdl_mnet_host2service;
Output: nothing
Hope this help.
Thanks in advance.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC problem
Hi. Here the problem seems clear: something did not go well during installation, as the mdl_mnet_host2service table should have one value that it inserted by the plugin.
When you visited Notifications Page in Moodle to install the plugin, did you see that some SQL was executed? To confirm that they were not executed, see if the table joomdle_dummytable is present in your Moodle database.
Just to be sure, Joomdle plugin is enabled in Moodle, isn't it?
Regards,
Antonio
When you visited Notifications Page in Moodle to install the plugin, did you see that some SQL was executed? To confirm that they were not executed, see if the table joomdle_dummytable is present in your Moodle database.
Just to be sure, Joomdle plugin is enabled in Moodle, isn't it?
Regards,
Antonio
The topic has been locked.
- sogi
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
15 years 9 months ago - 15 years 9 months ago #7
by sogi
Replied by sogi on topic Re: XML-RPC problem
You are talking about Joomla authentication module for moodle?
If yes, my installation consisted only from copy files from archive into moodle appropriate directory.
Then I endabled it through moodle administrator.
Or it must be installed some way?
Joomdle_dummy table is not present.
If yes, my installation consisted only from copy files from archive into moodle appropriate directory.
Then I endabled it through moodle administrator.
Or it must be installed some way?
Joomdle_dummy table is not present.
Last edit: 15 years 9 months ago by sogi.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC problem
The procedure to install the Moodle side is:
- Copy joomdle/ folder to auth/joomdle (this is what you did, right?)
- Visit Notifications Page in Moodle to complete installation
- Enable the plugin in Manage Authentication page
As I understand it, you did not visit Notifications page. Try doing it and running the SQLs again.
As the table is not present, it is sure that the SQLs were never executed.
- Copy joomdle/ folder to auth/joomdle (this is what you did, right?)
- Visit Notifications Page in Moodle to complete installation
- Enable the plugin in Manage Authentication page
As I understand it, you did not visit Notifications page. Try doing it and running the SQLs again.
As the table is not present, it is sure that the SQLs were never executed.
The topic has been locked.
- Marc Etka
- Offline
- New Member
-
Less
More
- Posts: 5
15 years 9 months ago #9
by Marc Etka
Replied by Marc Etka on topic Re:XML-RPC problem
Hi @ all,
it seems to be the same probleme wdth my joomdle integration.
Modules are working fine, all courses are in the list.
But click the course link, only an empty page is shown.
Also auto login Joomla/Moddle doesn't work.
Perhaps the probleme is:
The joomdle_dummytable is not in my moodle database.
Can i install in manually?
Greetz,
Northpole
it seems to be the same probleme wdth my joomdle integration.
Modules are working fine, all courses are in the list.
But click the course link, only an empty page is shown.
Also auto login Joomla/Moddle doesn't work.
Perhaps the probleme is:
The joomdle_dummytable is not in my moodle database.
Can i install in manually?
Greetz,
Northpole
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #10
by Antonio Durán
Replied by Antonio Durán on topic Re:XML-RPC problem
Hi. I think it is not the same problem, as the one described by the other user reported that nothing worked.
If course listing is showing in module, web services are working.
To try to diagnose your problem:
- Is Joomdle plugin enabled in Joomla?
- When you click on module links you get to a blank page. How does the URL look like?
- When you click on links as a guest, you get to Moodle without problems, don't you?
Antonio
If course listing is showing in module, web services are working.
To try to diagnose your problem:
- Is Joomdle plugin enabled in Joomla?
- When you click on module links you get to a blank page. How does the URL look like?
- When you click on links as a guest, you get to Moodle without problems, don't you?
Antonio
The topic has been locked.