Modlos 1.5.2: editing avatar ownership fails
roel
投稿数: 7
Environment: Ubuntu Lucid, amd64
modlos 1.52
moodle 1.9.10+ (Build: 20110112)
When I try to edit an avatar listed in Avatar List so that I can assign an owner to it, it displays
* Owner Name (Roel Cantada)
* User not Found in Moodle (Roel Cantada)
In addition when an avatar logs in OpenSim in-world, the Avatars List becomes blank.
PHP error logs below appears to reveal that some modlos php code are trying to search a wrong database.
My opensim database is named osim and my moodle database is mdlquest. The error states the ff:
Table 'osim.mdlq_user' doesn't exist
Table 'osim.mdlq_modlos_users' doesn't exist
Shouldn't the above be mdlquest.mdlq_user and mdlquest.mdlq_modlos_users. Whichever modlos code is searching, it should be searching the moodle database instead of the opensim database.
I have included the relevant phperrors log snippets below so that the modlos php files may be traced.
php error log files
/var/www/quest/moodle/blocks/modlos/actions/php_errors.log
/var/www/quest/moodle/blocks/modlos/admin/actions/php_errors.log
php error log snippet
a search of osim.mdlq_user instead of mdlquest.mdlq_user
[28-Jan-2011 08:12:24] PHP Notice: Table 'osim.mdlq_user' doesn't exist<br /><br />SELECT * FROM mdlq_user WHERE firstname = 'Roel' AND lastname = 'Cantada' AND deleted = '0'<ul style="text-align: left"><li>line 686 of lib/dmllib.php: call to debugging()</li><li>line 481 of lib/dmllib.php: call to get_recordset_sql()</li><li>line 421 of lib/dmllib.php: call to get_record_sql()</li><li>line 95 of blocks/modlos/include/moodle.func.php: call to get_record()</li><li>line 155 of blocks/modlos/class/edit_avatar.class.php: call to get_userinfo_by_name()</li><li>line 18 of blocks/modlos/actions/edit_avatar.php: call to EditAvatar->execute()</li></ul> in /var/www/quest/moodle/lib/weblib.php on line 7036
[28-Jan-2011 08:12:24] PHP Stack trace:
[28-Jan-2011 08:12:24] PHP 1. {main}() /var/www/quest/moodle/blocks/modlos/actions/edit_avatar.php:0
[28-Jan-2011 08:12:24] PHP 2. EditAvatar->execute() /var/www/quest/moodle/blocks/modlos/actions/edit_avatar.php:18
[28-Jan-2011 08:12:24] PHP 3. get_userinfo_by_name() /var/www/quest/moodle/blocks/modlos/class/edit_avatar.class.php:155
also a searchl to osim.mdlq_modlos_users instead of mdlquest.mdlq_modlos_users
[28-Jan-2011 08:12:11] PHP Notice: Table 'osim.mdlq_modlos_users' doesn't exist<br /><br />SELECT * FROM mdlq_modlos_users WHERE uuid = '3269d4ea-0db2-4905-b759-26d89f8e8ee2'<ul style="text-align: left"><li>line 686 of lib/dmllib.php: call to debugging()</li><li>line 481 of lib/dmllib.php: call to get_recordset_sql()</li><li>line 421 of lib/dmllib.php: call to get_record_sql()</li><li>line 259 of blocks/modlos/include/modlos.func.php: call to get_record()</li><li>line 260 of blocks/modlos/class/avatars_list.class.php: call to modlos_get_avatar_info()</li><li>line 19 of blocks/modlos/actions/avatars_list.php: call to AvatarsList->execute()</li></ul> in /var/www/quest/moodle/lib/weblib.php on line 7036
modlos 1.52
moodle 1.9.10+ (Build: 20110112)
When I try to edit an avatar listed in Avatar List so that I can assign an owner to it, it displays
* Owner Name (Roel Cantada)
* User not Found in Moodle (Roel Cantada)
In addition when an avatar logs in OpenSim in-world, the Avatars List becomes blank.
PHP error logs below appears to reveal that some modlos php code are trying to search a wrong database.
My opensim database is named osim and my moodle database is mdlquest. The error states the ff:
Table 'osim.mdlq_user' doesn't exist
Table 'osim.mdlq_modlos_users' doesn't exist
Shouldn't the above be mdlquest.mdlq_user and mdlquest.mdlq_modlos_users. Whichever modlos code is searching, it should be searching the moodle database instead of the opensim database.
I have included the relevant phperrors log snippets below so that the modlos php files may be traced.
php error log files
/var/www/quest/moodle/blocks/modlos/actions/php_errors.log
/var/www/quest/moodle/blocks/modlos/admin/actions/php_errors.log
php error log snippet
a search of osim.mdlq_user instead of mdlquest.mdlq_user
[28-Jan-2011 08:12:24] PHP Notice: Table 'osim.mdlq_user' doesn't exist<br /><br />SELECT * FROM mdlq_user WHERE firstname = 'Roel' AND lastname = 'Cantada' AND deleted = '0'<ul style="text-align: left"><li>line 686 of lib/dmllib.php: call to debugging()</li><li>line 481 of lib/dmllib.php: call to get_recordset_sql()</li><li>line 421 of lib/dmllib.php: call to get_record_sql()</li><li>line 95 of blocks/modlos/include/moodle.func.php: call to get_record()</li><li>line 155 of blocks/modlos/class/edit_avatar.class.php: call to get_userinfo_by_name()</li><li>line 18 of blocks/modlos/actions/edit_avatar.php: call to EditAvatar->execute()</li></ul> in /var/www/quest/moodle/lib/weblib.php on line 7036
[28-Jan-2011 08:12:24] PHP Stack trace:
[28-Jan-2011 08:12:24] PHP 1. {main}() /var/www/quest/moodle/blocks/modlos/actions/edit_avatar.php:0
[28-Jan-2011 08:12:24] PHP 2. EditAvatar->execute() /var/www/quest/moodle/blocks/modlos/actions/edit_avatar.php:18
[28-Jan-2011 08:12:24] PHP 3. get_userinfo_by_name() /var/www/quest/moodle/blocks/modlos/class/edit_avatar.class.php:155
also a searchl to osim.mdlq_modlos_users instead of mdlquest.mdlq_modlos_users
[28-Jan-2011 08:12:11] PHP Notice: Table 'osim.mdlq_modlos_users' doesn't exist<br /><br />SELECT * FROM mdlq_modlos_users WHERE uuid = '3269d4ea-0db2-4905-b759-26d89f8e8ee2'<ul style="text-align: left"><li>line 686 of lib/dmllib.php: call to debugging()</li><li>line 481 of lib/dmllib.php: call to get_recordset_sql()</li><li>line 421 of lib/dmllib.php: call to get_record_sql()</li><li>line 259 of blocks/modlos/include/modlos.func.php: call to get_record()</li><li>line 260 of blocks/modlos/class/avatars_list.class.php: call to modlos_get_avatar_info()</li><li>line 19 of blocks/modlos/actions/avatars_list.php: call to AvatarsList->execute()</li></ul> in /var/www/quest/moodle/lib/weblib.php on line 7036
投票数:266
平均点:4.70
投稿ツリー
-
Modlos 1.5.2: editing avatar ownership fails
(roel, 2011-1-28 17:55)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(iseki, 2011-1-31 18:58)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(roel, 2011-2-2 17:32)
- Re: Modlos 1.5.2: editing avatar ownership fails (roel, 2011-2-3 8:27)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(roel, 2011-2-2 17:32)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(iseki, 2011-1-31 18:58)