- Posts: 60
R0.23 No Longer Supported
[Solved] Not getting the course lists
- Shyam
- Offline
- Senior Member
-
Less
More
16 years 2 months ago #21
by Shyam
Replied by Shyam on topic Re:Not getting the course lists
active both the plugins
► Users ► Authentication ► Joomdle
and
* Users ► Authentication ► Moodle Network authentication. if they are not
► Users ► Authentication ► Joomdle
and
* Users ► Authentication ► Moodle Network authentication. if they are not
The topic has been locked.
- raj
- Topic Author
- New Member
-
Less
More
16 years 2 months ago #22
by raj
Replied by raj on topic Re:Not getting the course lists
both are active
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
16 years 2 months ago #23
by Antonio Durán
Replied by Antonio Durán on topic Re:Not getting the course lists
Hi. If you are getting the 7015 error it means the IP in XML-RPC hosts is OK.
It seems that what went wrong is the BD setting up. Did you visit Notifications page in Moodle?
Did you get info on tables being created?
It seems that what went wrong is the BD setting up. Did you visit Notifications page in Moodle?
Did you get info on tables being created?
The topic has been locked.
- Maciek
- Offline
- New Member
-
Less
More
- Posts: 9
16 years 2 months ago #24
by Maciek
Replied by Maciek on topic Re:Not getting the course lists
Hi,
I get the same error: "XML-RPC Error (7015): Unable to locate function, or function prohibited for RPC". As antonio said, probably there is something wrong with the DB:
Both the plugins are active. On the Notification page there are many complains about "1062: Duplicate entry '...' for key 'mdl_mnethost_hosser_uix'" and "1062: Duplicate entry '...' for key 'mdl_confplug_plunam_uix'"
When I set
everything seems to be ok. Moreover,
The above commands include probably the only two combination of conditions taken from "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;" that give a non-zero result.
I am using Joomla 1.5.15, moodle 1.9.7 and joomdle 0.23
Best,
Maciek
I get the same error: "XML-RPC Error (7015): Unable to locate function, or function prohibited for RPC". As antonio said, probably there is something wrong with the DB:
Code:
mysql> select * from mdl_mnet_rpc where parent='joomdle';
Empty set (0.00 sec)
When I set
Code:
UPDATE mdl_config SET value='dangerous' WHERE name='mnet_dispatcher_mode';
Code:
mysql> SELECT count(r.id) FROM mdl_mnet_host2service h2s, mdl_mnet_service2rpc s2r, mdl_mnet_rpc r WHERE s2r.rpcid = r.id AND h2s.hostid in (0, 2) AND h2s.publish = '1' LIMIT 1;
+-------------+
| count(r.id) |
+-------------+
| 14 |
+-------------+
1 row in set (0.00 sec)
mysql> SELECT count(r.id) FROM mdl_mnet_host2service h2s, mdl_mnet_service2rpc s2r, mdl_mnet_rpc r WHERE h2s.hostid in (0, 2) AND h2s.publish = '1' LIMIT 1;
+-------------+
| count(r.id) |
+-------------+
| 196 |
+-------------+
1 row in set (0.00 sec)
I am using Joomla 1.5.15, moodle 1.9.7 and joomdle 0.23
Best,
Maciek
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
16 years 2 months ago #25
by Antonio Durán
Replied by Antonio Durán on topic Re:Not getting the course lists
Hi. If the fisrt query is giving you empty results, it is not even a matter of Joomdle creeating DB entries.
When the new plugin in installed, Moodle checks to add to the mdl_mnet_rpc table every new web service in the new auth method.
This is done by Moodle, Joomdle does not do anything here.
So, try this:
After enabling the Joomdle plugin in Moodle, visit Notifications again, and check the DB to see if this query gives you any results:
select * from mdl_mnet_rpc where parent='joomdle';
When the new plugin in installed, Moodle checks to add to the mdl_mnet_rpc table every new web service in the new auth method.
This is done by Moodle, Joomdle does not do anything here.
So, try this:
After enabling the Joomdle plugin in Moodle, visit Notifications again, and check the DB to see if this query gives you any results:
select * from mdl_mnet_rpc where parent='joomdle';
The topic has been locked.
- Maciek
- Offline
- New Member
-
Less
More
- Posts: 9
16 years 2 months ago #26
by Maciek
Replied by Maciek on topic Re:Not getting the course lists
Thanks for the reply. Unfortunately, this query still gives empty set
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
16 years 2 months ago #27
by Antonio Durán
Replied by Antonio Durán on topic Re:Not getting the course lists
Then, start over again:
- Delete joomdle folder in moodle/auth
- Visit notifications
- Copy folder again
- Visit notifications again
- Activate plugin
- Visit Notifications again
And check if soemthing appears in the query.
- Delete joomdle folder in moodle/auth
- Visit notifications
- Copy folder again
- Visit notifications again
- Activate plugin
- Visit Notifications again
And check if soemthing appears in the query.
The topic has been locked.
- Maciek
- Offline
- New Member
-
Less
More
- Posts: 9
16 years 2 months ago #28
by Maciek
Replied by Maciek on topic Re:Not getting the course lists
Nothing have changed
In fact, I've already run this procedure a few times
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
16 years 2 months ago #29
by Antonio Durán
Replied by Antonio Durán on topic Re:Not getting the course lists
That is very strange 
As the Moodle installation process is quite low-tech (no installers or anything, just copy folder), we have little control over what happens when we install
Are you sure you have all MNET set up correctly as the doc states?
To check more inside, I took a look at how all this is proccessed in Moodle.
There is a function called upgrade_RPC_functions in moodle/admin/net/adminlib.php that inserts new functions in table. If you know some PHP you can try to put some debug there to know why it is not working.
As the Moodle installation process is quite low-tech (no installers or anything, just copy folder), we have little control over what happens when we install
Are you sure you have all MNET set up correctly as the doc states?
To check more inside, I took a look at how all this is proccessed in Moodle.
There is a function called upgrade_RPC_functions in moodle/admin/net/adminlib.php that inserts new functions in table. If you know some PHP you can try to put some debug there to know why it is not working.
The topic has been locked.
- Maciek
- Offline
- New Member
-
Less
More
- Posts: 9
16 years 2 months ago #30
by Maciek
Replied by Maciek on topic Re:Not getting the course lists
Yes, I followed step by step the instructions concerning setting up MNET
OK, I will look into adminlib.php and try to check what is going on there.
OK, I will look into adminlib.php and try to check what is going on there.
The topic has been locked.