Nwiki 1.9 installed, but not opening

Nwiki 1.9 installed, but not opening

by Mark Penny -
Number of replies: 22
I've just installed NWiki 1.9. The installation seems to have been successful. No warnings. But whenever I go to open a wiki (new or from previous versions), I get this message:

No entries have been created for this wiki.

And that's it. Anybody know what's going on?
Average of ratings: -
In reply to Mark Penny

Set up

by Mark Penny -
In reply to Mark Penny

Notices

by Mark Penny -
Notice: Undefined property: stdClass::$disablecamelcase in /home/targetei/public_html/courseportal/mod/wiki/view.php on line 81

Notice: Undefined property: stdClass::$wtype in /home/targetei/public_html/courseportal/mod/wiki/lib.php on line 438

Notice: Undefined variable: wentry in /home/targetei/public_html/courseportal/mod/wiki/lib.php on line 502
In reply to Mark Penny

Re: Notices

by Jordi Piguillem -
Hi Mark,

this variables (and errors) are from standard wiki. Did you really installed NWiki correctly? Try to copy our code into you server another time, it's possible that it were an upload error... You have to replace all files (remove all files and upload NWiki would be better wink)

DFWikiTeam, Pigui.
In reply to Jordi Piguillem

Progress

by Mark Penny -
Hola, Jordi.

Did as directed. Deleted all previous wiki files and folders. Extracted NWiki in site root. Now get this error (see file).

Not sure how to proceed. Need the table. Shouldn't the module create it?
In reply to Mark Penny

But not

by Mark Penny -
Pasted the code into SQL. Got this error (see file).


In reply to Mark Penny

More of the same

by Mark Penny -
Hello again.

This time I removed all wiki tables from the database, deleted all wiki folders and files from the installation, downloaded the latest version of NWiki, uploaded the zip file to the installation root, unzipped the file and navigated to Home.

Got this error (see file).
In reply to Mark Penny

Back to square 2

by Mark Penny -
So I replaced all the wiki tables and got this error (see file).
In reply to Mark Penny

Back to square 1

by Mark Penny -
This time I deleted Wiki through the admin/modules.php, combed through all the relevant folders to make sure not a speck of anything wiki remained anywhere in the installation, downloaded, uploaded and unzipped the latest version of NWiki, and navigated to admin. I got this error (see file).

All files and folders have been installed. No tables have been created.

The site appears to be functioning normally. This was not the case after previous attempts. However, when I log out, I get this error report:

Context id 723 does not have valid path, please use build_context_path()
  • line 380 of lib/accesslib.php: call to debugging()
  • line 388 of lib/pagelib.php: call to has_capability()
  • line 261 of index.php: call to page_course->user_allowed_editing()
Context id 724 does not have valid path, please use build_context_path()
  • line 380 of lib/accesslib.php: call to debugging()
  • line 388 of lib/pagelib.php: call to has_capability()
  • line 261 of index.php: call to page_course->user_allowed_editing()
It doesn't appear to have anything to do with NWiki, but one never knows.

In reply to Mark Penny

Back to square 0

by Mark Penny -
Tried a whole new installation, extracting moodle, deleting original wiki files and folders, uploading nwiki to root and extracting, verifying that all files and folders were in place, creating and assigning whole new database, navigating to installation process, and getting this error:

wiki

Errors found in XMLDB file: Some TABLES previous/next values are incorrectScroll to continue button

wiki tables could NOT be set up successfully!


What am I doing wrong?
In reply to Mark Penny

Re: Back to square 0

by Jordi Piguillem -
Hi Mark,

I've found an error in NWiki setup that throws this error. I going to fix it and release a new zip in few hours.

I'll need more time to fix ewiki-nwiki migration(other bugs you have reported).

DFWikiTeam, Pigui
In reply to Mark Penny

Re: Back to square 0

by Jordi Piguillem -
Hi Mark,

I've created a new release that solves your problem above.

There was a problem in new installations of NWiki, the ones that not migrate ewiki content.

DFWikiTeam, Pigui.
In reply to Jordi Piguillem

Please release me

by Mark Penny -
Thanks, Pigui.
In reply to Mark Penny

Say it isn't so

by Mark Penny -
The new release works great in the new installation, but it's not quite taking in the old one.

I removed all previous wiki files and folders, extracted the 20080401 release, and got these errors (see file).

Is this to do with the ewiki to nwiki migrations you mentioned? Seems like it shouldn't be. I've been using nwiki exclusively for the last two years.

Some rows in the tables are different. Is that the source of the problem?
In reply to Mark Penny

Say what?

by Mark Penny -
Okay. By manually adding nwiki (wiki) to the modules table, I was able to get nwiki running for creating new wikis on the old site. The module is also able to number and list courses containing wikis created using previous versions of nwiki. But previous versions of nwiki are not displayed in the courses they are contained in. The resources link for nwikis reads modulenameplural and goes to an internal server error.

After creating a new wiki in one of the old wiki-containing courses, I get both Wikis and modulenameplural under resources and this error log in the Wikis resource view:

Notice: Undefined property: stdClass::$intro in /home/targetei/public_html/courseportal/mod/wiki/index.php on line 74

Notice: Undefined property: stdClass::$introformat in /home/targetei/public_html/courseportal/mod/wiki/index.php on line 74

The situation vaguely reminds me of an upgrade a year or two ago, but I'm fuzzy on the details and can't recall how I got the upgrade (or update) to draw in all the old nwikis (or dfwikis: I've never used ewiki).

Finally, when I open the newly created wiki, I get all this:


Notice: Undefined property: stdClass::$intro in /home/targetei/public_html/courseportal/mod/wiki/lib/wiki.class.php on line 96

Notice: Undefined property: stdClass::$introformat in /home/targetei/public_html/courseportal/mod/wiki/lib/wiki.class.php on line 97

Notice: Undefined property: stdClass::$votemode in /home/targetei/public_html/courseportal/mod/wiki/lib/wiki.class.php on line 109

Notice: Undefined property: stdClass::$listofteachers in /home/targetei/public_html/courseportal/mod/wiki/lib/wiki.class.php on line 110
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2440 of mod/wiki/locallib.php: call to has_capability()
  • line 2422 of mod/wiki/locallib.php: call to wiki_can_edit()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2495 of mod/wiki/locallib.php: call to has_capability()
  • line 2423 of mod/wiki/locallib.php: call to wiki_can_do()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2495 of mod/wiki/locallib.php: call to has_capability()
  • line 2424 of mod/wiki/locallib.php: call to wiki_can_do()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2526 of mod/wiki/locallib.php: call to has_capability()
  • line 2425 of mod/wiki/locallib.php: call to wiki_can_discuss()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2440 of mod/wiki/locallib.php: call to has_capability()
  • line 2426 of mod/wiki/locallib.php: call to wiki_can_edit()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2440 of mod/wiki/locallib.php: call to has_capability()
  • line 2427 of mod/wiki/locallib.php: call to wiki_can_edit()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()
Capability "mod/wiki:editanywiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 2495 of mod/wiki/locallib.php: call to has_capability()
  • line 2428 of mod/wiki/locallib.php: call to wiki_can_do()
  • line 210 of mod/wiki/locallib.php: call to wiki_load_permissions()
  • line 54 of mod/wiki/lib/main.lib.php: call to wiki_main_setup()
  • line 11 of mod/wiki/lib/main.lib.php: call to wiki_setup_content()
  • line 34 of mod/wiki/view.php: call to wiki_config()

Capability "mod/wiki:editawiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 83 of mod/wiki/lib/web.lib.php: call to has_capability()
  • line 72 of mod/wiki/view.php: call to wiki_header()

Wiki

Capability "mod/wiki:editawiki" was not found! This should be fixed in code.
  • line 364 of lib/accesslib.php: call to debugging()
  • line 39 of mod/wiki/lib/tabs.lib.php: call to has_capability()
  • line 165 of mod/wiki/lib/web.lib.php: call to wiki_print_tabs()
  • line 72 of mod/wiki/view.php: call to wiki_header()

I get none of that on the new site (brand new site with only latest moodle and nwiki ever installed), even with developer debugging.

So what next?


In reply to Mark Penny

The way we were

by Mark Penny -
Now I remember. Instructions here: http://moodle.org/mod/forum/discuss.php?d=53070#p242263. But a messy solution. There must be something simpler and quicker.

It involves creating a new wiki in the course, deleting the new wiki and giving its id to an old wiki.
In reply to Mark Penny

There've been some changes made

by Mark Penny -
Couldn't bear the thought of renumbering all those wikis, so I altered the old tables to match the new ones, but left in the obsolete rows.

No change in performance.

Get the error below in one of the courses in which I used wikis extensively, one in which I have been able to create a new wiki and now have two Wiki links under Activities (not Resources, as mistakenly reported earlier)
Notice: Undefined variable: mod in /home/targetei/public_html/courseportal/course/lib.php on line 945

Notice: Trying to get property of non-object in /home/targetei/public_html/courseportal/course/lib.php on line 945
Missing lib.php in lib/ - please reinstall files or uninstall the module
  • line 945 of course/lib.php: call to debugging()
  • line 27 of blocks/recent_activity/block_recent_activity.php: call to print_recent_activity()
  • line 240 of blocks/moodleblock.class.php: call to block_recent_activity->get_content()
  • line 264 of blocks/moodleblock.class.php: call to block_base->is_empty()
  • line 338 of lib/blocklib.php: call to block_base->_print_block()
  • line 276 of course/format/weeks/format.php: call to blocks_print_group()
  • line 214 of course/view.php: call to require()
I keep thinking the module id for the wiki module must be key somehow, but I can't find it listed anywhere except the modules table. It seems like I ought to be able to make things work by returning the id to the old value (which I have, of course, forgotten).

Is lib.php looking for the module by id? If so, where do I go to change the value? Not a file, surely. Must be a table somewhere.
In reply to Mark Penny

It's the end of the world as we know it and I feel fine

by Mark Penny -
Got it. course_modules. Problem is, when I deleted old and new wikis (several times) from admin/modules, I removed all wiki-related data from the database.

Strategy? Create dummy database. Load pre-upgrade backup. Dump relevant tables. Upload pre-upgrade relevant tables to site database. Voilà.
In reply to Mark Penny

It Ain't Over 'Til It's Over

by Ray Lawrence -
What? Problem solved? No more song references???
In reply to Ray Lawrence

Re: It Ain't Over 'Til It's Over

by Jordi Piguillem -
In reply to Jordi Piguillem

It ain't over till the fat lady sings

by Mark Penny -
It's a long, long road with many a winding turn that leads us to who knows where.

I'm in the process of manually rebuilding the lost rows of course_modules based on entries in _wiki. Much could go wrong. There may still be a few laughs in the old pony yet.
In reply to Mark Penny

How sweet the sound

by Mark Penny -
We now have proof of concept. Of course, this will have been no secret to you old dab hands, but for me it's cause to say I've had a good day and I'll do the rest tomorrow.

The relevant relational tables are _wiki, _course_modules and _course_sections.

First, you add an entry for the wiki instance (wiki id) in _course_modules. Second, you assign the _course_module id a place in the desired section in course_sections.

I may write all this up more cogently tomorrow or the next day, after I've successfully repeated the process a few times and can be sure I haven't misconcatenated or otherwise garbled the process.

Just to repeat for my own benefit,

  1. The tables are
  • _wiki
  • _course_modules
  • _course_sections
The ids are
  • wiki
  • module
  • course
  • section
The tables and pairs are To be continued.
In reply to Mark Penny

Re: How sweet the sound

by Doug Holton -
I'm seeing the same errors.

Installing the NWiki module was a mistake.