Posts made by Peter Ruthven-Stuart

Picture of Plugin developers

approve Problem solved.

The problem was that although the user fields in both Moodle systems, including customs fields, were the same, there was a field in SystemB that was required but was not required in SystemA. So when a user tried to login into SystemB from SystemA via Mnet, they were met with the 'Your user account is incomplete' error message.

I didn't notice the cause of the error quicker because until a few weeks ago students were able to login to SystemB via Mnet without problem. It seems that the user filed in question was made required very recently and so then prevented users from logging into SystenB. The lesson in all this is to check the obvious things first black eye.


Picture of Plugin developers

Hello,

I have just recently upgraded two Moodle systems: SystemA from 3.1 to 3.4, and SystemB from 3.0 to 3.4.

Prior to the upgrades students assigned the system role of 'Mnet user' were able to login into SystemA and then access courses in SystemB via Mnet.

However, since the upgrades of these two moodle systems, Mnet users are able to access the top page of SystemB having logged into SystemA, their name appears at the top right of SystemB, but when  they try to access a course to which they have been enrolled or click on anything else, e.g. their Profile, they get the following error:

//////////////////////////////

Your user account is incomplete. You need to go back to your provider and ensure your profile is completed there. You may need to log out and in again for this to take effect.

More information about this error

×Debug info:
Error code: usernotfullysetup

×Stack trace:
line 482 of /lib/setuplib.php: moodle_exception thrown
line 78 of /user/edit.php: call to print_error()

//////////////////////////////

Returning to the provider (i.e. SystemA) and editing their profile does not fix the problem.

Also, the profile fields in both systems are the same. We are using the default settings for fields to import and export (i.e. city, country, lang, timezone, picture, description, mailformat, maildigest, maildisplay, htmleditor).

Both moodle systems are running on the same server which is configured as following:

moodle: 3.4.2+ (Build: 20180329) --> both systems
database: mysql (5.6.10)
php: version 7.1.13

Any hints or suggestions will be gratefully received.

Average of ratings: -
Picture of Plugin developers

Hello,

I have been trying to release the grades of an assignment to the Gradebook using the Workflow feature; i.e. going from 'Not marked' to 'Released'. Every time, I get the following error:

Debug info: Deadlock found when trying to get lock; try restarting transaction
UPDATE mdl_grade_items SET needsupdate = ? WHERE (itemtype='course' OR id=?) AND courseid=?
[array (
0 => 1,
1 => '10981',
2 => '402',
)]
Error code: dmlwriteexception
Stack trace:

    line 482 of /lib/dml/moodle_database.php: dml_write_exception thrown
    line 1559 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 928 of /lib/grade/grade_item.php: call to mysqli_native_moodle_database->set_field_select()
    line 1289 of /lib/gradelib.php: call to grade_item->force_regrading()
    line 2014 of /lib/grade/grade_item.php: call to grade_regrade_final_grades()
    line 284 of /lib/gradelib.php: call to grade_item->update_raw_grade()
    line 1290 of /mod/assign/lib.php: call to grade_update()
    line 1332 of /mod/assign/lib.php: call to assign_grade_item_update()
    line 7515 of /mod/assign/locallib.php: call to assign_update_grades()
    line 464 of /mod/assign/locallib.php: call to assign->process_set_batch_marking_workflow_state()
    line 55 of /mod/assign/view.php: call to assign->view()

Every time I try to change the Workflow status, 4 or 5 students get updated, and then the error above appears.

Our IT person has increased 'max_allowed_packet' from 4 MB to 16 MB as advised here, but to no avail.

A colleague of mine has also been getting a similar error (dmlwriteexception) when trying to upload grades to an Assignment in another course. Note that the Gradebooks in both courses have a very similar structure.

Note that this error only appears when attempting to release the grades to the Gradebook or trying to upload grades to an assignment. For example, going from 'Not marked' to 'Ready for release' works as expected.

In the past, when uploading grades to an assignment we were getting dmlwriteexception errors because there was an error in an equation used in the Gradebook. This is not the case now, because we are not using equations in the Gradebook.

Any advice would be greatly appreciated.

Moodle Environment:

300+ users in the two problem courses
Moodle version: 3.2.2
MySQL: 5.5.43
PHP: 5.6.7

Average of ratings: -

来月、公立はこだて未来大学で、2016年北海道ムードルサマーワークショップ(研究会)を実施することになりました。

You can find English information about the 2016 Hokkaido Moodle Summer Workshop here:

日付:9月12日(月)~13日(火)

場所:公立はこだて未来大学
地図:https://www.google.com/maps/d/viewer?mid=1aQ152p8X6d9nq8VC7C6_kexJG6s
URL:http://vle.c.fun.ac.jp/workshop/course/view.php?id=277
ゲストスピーカー:喜多 敏博(熊本大学)、ジェンキンス • アダム(静岡理工科大学)
参加費:無料(500円 飲み物の実費)
主催者:日本ムードル協会、北海道支部 https://moodlejapan.org/

発表スケジュールは来週末公表します。

発表を希望される方は、是非「8月31日」までに発表登録を行ってください。
発表申請フォームは、下記のURLです:
http://vle.c.fun.ac.jp/workshop/mod/data/view.php?id=2782

発表形式は自由で(ワークショップだけではなく)、発表時間は10分~90分まで選ぶことができます。
Moodleに関する発表を行いたい方は、是非ご申請ください。
現在のMoodle活用事例なども大歓迎です。

また、参加登録は必須ではなく、当日参加も大歓迎ですが、
参加する可能性がある方は、下記より登録して頂けると、大会運営上大変助かります。
参加登録フォームは、下記のURLです:
http://vle.c.fun.ac.jp/workshop/mod/data/view.php?id=2873

どうぞよろしくお願いいたします。

ルースベン・スチュアート・ピーター
Peter Ruthven-Stuart

〒041-8655
北海道函館市亀田中野町116番地2
公立はこだて未来大学
http://www.fun.ac.jp/

Average of ratings: お役立ち度: ★★★★★★★ (1)