We are using 1.9. I have set up a quiz and added questions to it - all is fine until I go to preview and then I get a blank page - not even an error message. I have tried doing this several times with the same result - other quizzes I have done are fine. I cannot find anything in my selections to indicate a difference between the old quizzes and the new ones
More on this problem. I have discovered that the problem occurs when I use essay questions. Essay questions are not working and when I add them to a quiz they cause the whole quiz not to work.
Turn on debugging and that should show you an error message instead of a blank page.
I too have this problem but it seems broader than just essay questions. My test quiz was a true/flase. I am on a Dreamhost server and used their easy install feature, version 1.9.2 I replaced my actual domain with domain.
This is the error message:
Notice: Undefined index: http:--domain-mod-quiz-view in domain/moodle/lib/pagelib.php on line 103
Notice: Undefined index: http:--domain-moodle-mod-quiz-view in domain/moodle/lib/pagelib.php on line 104
Notice: Undefined index: http:--domain-moodle-mod-quiz-view in domain/moodle/lib/pagelib.php on line 107
Fatal error: Class name must be a valid object or a string in domain/moodle/lib/pagelib.php on line 67
This is the error message:
Page class mapping requested for unknown type: http:--domain-moodle-mod-quiz-view
- line 100 of /moodle/lib/pagelib.php: call to debugging()
- line 65 of /moodle/lib/pagelib.php: call to page_map_class()
- line 50 of /moodle/lib/pagelib.php: call to page_create_object()
- line 49 of /moodle/mod/quiz/view.php: call to page_create_instance()
Notice: Undefined index: http:--domain-mod-quiz-view in domain/moodle/lib/pagelib.php on line 103
Notice: Undefined index: http:--domain-moodle-mod-quiz-view in domain/moodle/lib/pagelib.php on line 104
Page class mapping for id "http:--domain-moodle-mod-quiz-view" exists but class "" is not defined
- line 104 of /moodle/lib/pagelib.php: call to debugging()
- line 65 of /moodle/lib/pagelib.php: call to page_map_class()
- line 50 of /moodle/lib/pagelib.php: call to page_create_object()
- line 49 of /moodle/mod/quiz/view.php: call to page_create_instance()
Notice: Undefined index: http:--domain-moodle-mod-quiz-view in domain/moodle/lib/pagelib.php on line 107
Fatal error: Class name must be a valid object or a string in domain/moodle/lib/pagelib.php on line 67
Known issue, as Googling for 'Page class mapping requested for unknown type' would have told you. MDL-11061.
Thank you Tim. I tried searching for some of what was in the error message, but apparently my search skills are subpar.
For those who stumble on this, my problem was in config.php in the top moodle directory:
BAD:
$CFG->wwwroot = 'http://domain/moodle/.';
GOOD:
$CFG->wwwroot = 'http://domain/moodle';
For those who stumble on this, my problem was in config.php in the top moodle directory:
BAD:
$CFG->wwwroot = 'http://domain/moodle/.';
GOOD:
$CFG->wwwroot = 'http://domain/moodle';
James,
What I find curious is that you have the trailing dot in your config file..... I wonder if this is an artifact of a later version of the install program......
btw, please contact DH support and whine about the need for added php extensions and vote for the exsting suggestins to add zip, xmlrpc and sockets to the shared php5 build.
What I find curious is that you have the trailing dot in your config file..... I wonder if this is an artifact of a later version of the install program......
btw, please contact DH support and whine about the need for added php extensions and vote for the exsting suggestins to add zip, xmlrpc and sockets to the shared php5 build.