Courses with instances of the questionnaire activity, if there is an instance that has a "realm" of "template" will cause the page mod/questionnaire/index.php to throw a coding_error.
- Add a questionnaire activity.
- Create and view activity.
- Click "Advanced settings" tab.
- Set "Questionnaire Type" = "Template"
- Save settings
- Go to course site/sections view
- Click "Quesitonnaires" in the course menu block.