Guys,
I am on 2.0.1, and Oracle 11g.
I am trying to move the block from one position to another position, and I always got the following error message from the log file. However, if I extract the INSERT SQL STATEMENT out, and excuted in oracle directly, it succeeded, but, the block position still stayed at the original place, and did not move at all. Anyone met this problem also?
[Thu Feb 24 10:13:58 2011] [error] [client 128.119.164.178] Default exception handler: Error writing to database Debug: ORA-00001: unique constraint (MOODLEUSER.M_BLOCPOSI_BLOCONPAGSUB_UIX) violated\nINSERT INTO m_block_positions (region,weight,blockinstanceid,contextid,pagetype,subpage,visible) VALUES (:region,:weight,:blockinstanceid,:contextid,:pagetype,:subpage,:visible) RETURNING id INTO :oracle_id\n[array (\n 'region' => 'side-post',\n 'weight' => -1,\n 'blockinstanceid' => '185',\n 'contextid' => '793',\n 'pagetype' => 'course-view-weeks',\n 'subpage' => '',\n 'visible' => '1',\n)]\n* line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown\n* line 268 of /lib/dml/oci_native_moodle_database.php: call to moodle_database->query_end()\n* line 1147 of /lib/dml/oci_native_moodle_database.php: call to oci_native_moodle_database->query_end()\n* line 1190 of /lib/dml/oci_native_moodle_database.php: call to oci_native_moodle_database->insert_record_raw()\n* line 752 of /lib/blocklib.php: call to oci_native_moodle_database->insert_record()\n* line 1394 of /lib/blocklib.php: call to block_manager->reposition_block()\n* line 1041 of /lib/blocklib.php: call to block_manager->process_url_move()\n* line 1178 of /lib/pagelib.php: call to block_manager->process_url_actions()\n* line 702 of /lib/pagelib.php: call to moodle_page->starting_output()\n* line 600 of /lib/outputrenderers.php: call to moodle_page->set_state()\n* line 196 of /course/view.php: call to core_renderer->header()\n, referer: http://moodlexxx.yyy.uwww.edu/course/view.php?id=31&sesskey=doLNH1Xg4S&bui_moveid=185