dmlwriteexception error?

dmlwriteexception error?

by Rob Nielson -
Number of replies: 8

I'm on Moodle 2.0 and I'm having a problem with new users creating accounts. When they type in their information and click on "create new account" it kicks out a dml_write_exception error.

Can anyone tell me what might be causing that error (yes, I know it's having a problem writing to the database, but WHY?) and what I might be able to do to fix it?

Thanks!

Rob

Average of ratings: -
In reply to Rob Nielson

Re: dmlwriteexception error?

by Rob Nielson -

I was able to get an error log of the problem. Does this make sense to anyone:

 

 

[Fri Feb 25 13:02:09 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 31 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/signup.php
[Fri Feb 25 13:02:09 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 30 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/signup.php
[Fri Feb 25 13:02:09 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 29 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/signup.php
[Fri Feb 25 13:02:09 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 28 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/signup.php
[Fri Feb 25 13:02:09 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 24 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/signup.php
[Fri Feb 25 13:02:09 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 21 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/signup.php
[Fri Feb 25 13:01:38 2011] [error] [client 209.188.89.132] File does not exist: /home/westw8/public_html/500.shtml
[Fri Feb 25 13:01:38 2011] [alert] [client 209.188.89.132] /home/westw8/public_html/moodle/uploaddata/.htaccess: AllowOverride not allowed here
[Fri Feb 25 13:01:37 2011] [error] [client 209.188.89.132] File does not exist: /home/westw8/public_html/500.shtml
[Fri Feb 25 13:01:37 2011] [alert] [client 209.188.89.132] /home/westw8/public_html/moodle/uploaddata/.htaccess: AllowOverride not allowed here
[Fri Feb 25 13:01:37 2011] [error] [client 209.188.89.132] File does not exist: /home/westw8/public_html/500.shtml
[Fri Feb 25 13:01:37 2011] [alert] [client 209.188.89.132] /home/westw8/public_html/moodle/uploaddata/.htaccess: AllowOverride not allowed here
[Fri Feb 25 13:01:36 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 31 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/index.php
[Fri Feb 25 13:01:36 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 30 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/index.php
[Fri Feb 25 13:01:36 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 29 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/index.php
[Fri Feb 25 13:01:36 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 28 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/index.php
[Fri Feb 25 13:01:36 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 24 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/index.php
[Fri Feb 25 13:01:36 2011] [error] [client 12.119.156.178] PHP Notice:  parent does not exist!<ul style="text-align: left"><li>line 873 of /lib/adminlib.php: call to debugging()</li><li>line 21 of /admin/settings/misc.php: call to admin_category->add()</li><li>line 5615 of /lib/adminlib.php: call to require()</li><li>line 2693 of /lib/navigationlib.php: call to admin_get_root()</li><li>line 2601 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()</li><li>line 583 of /lib/pagelib.php: call to settings_navigation->initialise()</li><li>line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()</li><li>line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()</li><li>line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()</li><li>line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()</li><li>line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()</li><li>line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()</li><li>li in /home/westw8/public_html/moodle/lib/weblib.php on line 2871, referer: http://www.westwoodasl.com/moodle/login/index.php

In reply to Rob Nielson

Re: dmlwriteexception error?

by Rob Nielson -

In case anyone is interested (which I doubt, due to the lack of replies *grin*) - I solved the problem. The USER table had an extra field in it somehow called "providence." I don't know where it came from or how it got there. It was completely empty. So I simply deleted that field and the problem appears to be solved.

Rob

In reply to Rob Nielson

Re: dmlwriteexception error?

by Johnathan Leslie -

I think I have having the same problem with my upgrade. I get the dmlwriteexception. This is the debug information I received.

Debug info: Duplicate entry 'Manager' for key 3
UPDATE mdl_role SET name = ?,shortname = ?,description = ?,sortorder = ?,archetype = ? WHERE id=?
[array (
0 => 'Manager',
1 => 'manager2',
2 => 'Managers can access course and modify them, they usually do not participate in courses.',
3 => '0',
4 => 'manager',
5 => '1',
)]
Stack trace:
  • line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 980 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1012 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
  • line 2874 of /lib/db/upgrade.php: call to mysqli_native_moodle_database->update_record()
  • line 1383 of /lib/upgradelib.php: call to xmldb_main_upgrade()
  • line 252 of /admin/index.php: call to upgrade_core()

How do I access the area you did to see if I have the same empty field issue?

In reply to Johnathan Leslie

Re: dmlwriteexception error?

by Simon Co -

I am experiencing the same issue. Has anyone had any success with this?

In reply to Rob Nielson

Re: dmlwriteexception error?

by Debbie McDonald -

Rob where were you able to get the error log from? We are having both read and write errors.

In reply to Rob Nielson

Re: dmlwriteexception error?

by Sebastian H. -
Picture of Testers

Hello,

I also got this dmlwriteexception Error when I create a page containg phonetical symbols like: /iː/

In reply to Sebastian H.

Re: dmlwriteexception error?

by Vitor Bremgartner -
Verifiy if the NOTNULL property in mdl_user table is not checked.
In reply to Vitor Bremgartner

Re: dmlwriteexception error?

by Philippe Odent -

Solved this error by changing length of data to be imported and max length of each field in the table.

ie: departement was 35 characters in my CSV file and limited to 30 in the table.

Hope it helps...