Error creating wiki link page

Re: Error creating wiki link page

by DANIEL BERNAL -
Number of replies: 0

The problem continues. This is horrible, I've updated to the latest version available. The problem arises when the user has already created and has used his wiki, it is detected that the problem started when he tries to check the wiki another user which is empty and you receive the following error:

Debug info:
Error code: nocontent
Stack trace:
line 467 of / lib / setuplib.php: moodle_exception thrown
line 200 of / mod / wiki / view.php: call to print_error ()

after that it is impossible to re-enter your wiki and show the following error:

 

Debug info: Duplicate entry '657-0-9078' for key 'mdl_wikisubw_wikgrouse_uix'
INSERT INTO mdl_wiki_subwikis (wikiid,groupid,userid) VALUES(?,?,?)
[array (
0 => '657',
1 => '0',
2 => 9078,
)]
Error code: dmlwriteexception

Stack trace:

  • line 410 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 1050 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1092 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
  • line 104 of /mod/wiki/locallib.php: call to mysqli_native_moodle_database->insert_record()
  • line 952 of /mod/wiki/pagelib.php: call to wiki_add_subwiki()
  • line 115 of /mod/wiki/create.php: call to page_wiki_create->create_page()


The configuration used is: Wiki single, Forcing HTML format and mode Group Groups Visible, Visible: show

Ubuntu Server 11.10 64 bits.

Moodle 2.3.2+ (Build: 20121018)
Mysql 5.1.63.0.0.11.10.1
PHP 5.3.6.13.3.9



Help!