Posts made by Peter Ruthven-Stuart

Picture of Plugin developers

Hello,

I am trying to connect two moodle 2.4.3+ systems, which are both on the same server following the Peer to Peer Network instructions on the MNet page in the MoodleDocs:

http://docs.moodle.org/24/en/MNet

When we get to test the connection (section 2.6 in the above instructions) the user gets this error message.

Ooops! Your MNET communication has failed! Here's that error message to pass on to your administrator: connect() timed out!ERROR 28:
28:connect() timed out!

Trying in the other direction also gets this error.

Any suggestions will be greatly appreciated.

Average of ratings: -
Picture of Plugin developers

Hello Ann,

The Template has to be added when you set up the OU Wiki for the first time. Here are the instructions, which are visible when you click on the 'Template' help button in the OU Wiki set up page:

A template is a predefined set of wiki pages. When a template is set, the wiki starts off with the content defined in the template.

The template applies to each subwiki; in "One wiki per group" mode, for example, each group's wiki is initialised with the pages in the template.

To create a template, write the pages you want on any wiki, then visit the Index page and click the "Save wiki as template" button. (You can also manually create templates in other software; it is an extremely simple XML format. Look at a saved template to see the format.)

You cannot change the template after the wiki has been created. If you want to do this, delete the wiki entirely, then create a new one using the template.

 So, to be clear, if you create an OU WIki without a template it is not possible to add a template later on. The add a template option that you see in the screenshot below is only visible the first time you set up the wiki.

If you don't know what the correct xml format is for a template, create an OU Wiki and then make a single wiki page in that Wiki, save that page as a template, and then upload that template to a new Wiki when you set it up. If necessary, the xml template can be edited in a text editor before uploading to new OU Wikis.

Attachment OUWiki_template_setup.png
Picture of Plugin developers

Thank you Tim,

The upgrade seems to have done the trick; I've managed to upgrade all the quizzes.

However, with a few quizzes I got the following error:

Coding error detected, it must be fixed by a programmer: Question type randomsamatch is missing important code (the file /Library/WebServer/Documents/moodle/question/type/randomsamatch/db/upgradelib.php) required to run the upgrade to the new question engine

... an issue which I believe you are already aware of: MDL-28256 & MDL-27414

Picture of Plugin developers

Hello,

I have just successfully upgraded from 2.0 to 2.2 via 2.1, and would now like to partially upgrade the quizzes still to be upgraded.

During the upgrade to 2.1 I used Tim Hunt's qeupgradehelper and the partialupgrade.php script to upgrade just some of the 600+ quizzes we have on our site. Having checked that the upgrade to 2.1 was OK, I then upgraded to version 2.2, and everything seems to be in order.

I now want to upgrade the remaining 500 or so quizzes (=39,311 attempts & 393,157 question sessions) that were not upgraded in the upgrade from 2 to 2.1. However, whenever the cron is run, the upgrade process seems to take an inordinately long time or even stall on the 90 or so quizzes that have > 1,000 question sessions. For example, a quiz with 53 attempts and 1060 question sessions took 40 minutes to update.

So, I have tried to use the partialupgrade.php script to upgrade only the 400+ quizzes that have < 1,000 question sessions. I have tried using this code in the partialupgrade.php script

function tool_qeupgradehelper_get_quizzes_to_upgrade() {
    return array(54, ... here I list only quizzes to be updated);
}

but when the cron is run, it seems to ignore these partial upgrade 'instructions'. Using Terminal to run the cron I can see that it is attempting to upgrade even the 'large' quizzes.

So, is there a way to use partialupgrade.php after upgrading to 2.2?

Or, what could be the cause the upgrade failing on quizzes with > 1,000 question sessions?

I realise that I can manually upgrade each quiz via the Question engine upgrade helper in the Site Admin, but I'd like to avid this.

  • now using moodle 2.2.1
  • mysql 5.5.9
  • php 5.3.3
  • Apache 2.2.15
Average of ratings: -