× R0.22 and earlier: No Longer Supported

[Solved] XML-RPC problem

15 years 3 days ago 14 years 11 months ago by Chris.
sogi
Posts: 4
More
Topic Author
[Solved] XML-RPC problem #1
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.
The topic has been locked.
15 years 3 days ago
Antonio Durán
Posts: 7803
More
[Solved] XML-RPC problem #2
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
The topic has been locked.
15 years 3 days ago 15 years 3 days ago by sogi.
sogi
Posts: 4
More
Topic Author
[Solved] XML-RPC problem #3
Hello.

It didn't help.
Any other thoughts?

I will prepare dumps for you and will send it.

Thanks in advance.
The topic has been locked.
15 years 3 days ago
Antonio Durán
Posts: 7803
More
[Solved] XML-RPC problem #4
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
The topic has been locked.
15 years 3 days ago
sogi
Posts: 4
More
Topic Author
[Solved] XML-RPC problem #5
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.
The topic has been locked.
15 years 3 days ago
Antonio Durán
Posts: 7803
More
[Solved] XML-RPC problem #6
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
The topic has been locked.
15 years 3 days ago 15 years 3 days ago by sogi.
sogi
Posts: 4
More
Topic Author
[Solved] XML-RPC problem #7
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.
The topic has been locked.
15 years 3 days ago
Antonio Durán
Posts: 7803
More
[Solved] XML-RPC problem #8
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.
The topic has been locked.
14 years 11 months ago
Marc Etka
Posts: 5
More
[Solved] XML-RPC problem #9
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
The topic has been locked.
14 years 11 months ago
Antonio Durán
Posts: 7803
More
[Solved] XML-RPC problem #10
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
The topic has been locked.