Blank Page showing up after clciking to view the quiz

Blank Page showing up after clciking to view the quiz

por Sya Rahim -
Number of replies: 14
Hi,
I hope someone out there could help or guide me in my quest to find the answer on why the quiz in which i could preview while editing. Upon clicking on the quiz at the main page, only blank page is displayed. I'm so confused...help...
Average of ratings: -
In reply to Sya Rahim

Re: Blank Page showing up after clciking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
An incomplete of blank page normally means an error has occurred. To find out what the error was, go to Admin -> Server -> Debugging and turn debugging to ALL, and turn on Display errors if there is a separate option for that. Then reload the problem page and you should get an error message.
In reply to Tim Hunt

Re: Blank Page showing up after clciking to view the quiz

por Jaime Villate -
Thanks for the tip, Tim. On the same subject, but unrelated to quizzes, how can I turn debugging on during the installation? I've noticed that when I install the most recent CVS version, if I choose a language pack, the installation gets stuck giving a blank page.
In reply to Jaime Villate

Re: Blank Page showing up after clciking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
I think the only way to do that is to hack it. Try doing adding

error_reporting(E_ALL);

to config.php, near the top.
In reply to Tim Hunt

Re: Blank Page showing up after clciking to view the quiz

por Sya Rahim -
Dear Tim,
thank you so much for the guidance.... but, now i am a bit concerned that the students will be able to view the debugging messages...is there anyway i could hide this from the students/other than administrator's view?
In reply to Sya Rahim

Re: Blank Page showing up after clciking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
Well you asked for how to make errors show up during install. So do the hack I suggested, install moodle, turn on debugging properly using the admin interface, then undo the hack.
In reply to Tim Hunt

Re: Blank Page showing up after clicking to view the quiz

por Sya Rahim -
Dear Tim,
After setting the debug option on, the following message was generated:

Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()


Notice: Undefined property: id in /var/www/html/lib/weblib.php on line 4549
Error: Invalid context creation request for level "70", instance "".
line 1685 of lib/accesslib.php: call to debugging()
line 1842 of lib/accesslib.php: call to create_context()
line 4549 of lib/weblib.php: call to get_context_instance()
line 4389 of lib/weblib.php: call to navmenulist()
line 82 of mod/quiz/pagelib.php: call to navmenu()
line 63 of mod/quiz/view.php: call to page_quiz->print_header()

Is there something wrong with the weblib.php? Hope we could get your advise. Thanks.
In reply to Sya Rahim

Re: Blank Page showing up after clicking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
You have not supplied the other vital bit of information, which is the version of Moodle you are using. And without that information, the line numbers in the error messages are pretty meaningless. The problem is probably not in weblib, but higher up the call stack. mod/quiz/view.php, or pagelib seem more likely.
In reply to Tim Hunt

Re: Blank Page showing up after clicking to view the quiz

por Sya Rahim -
Dear Tim,
I found out from our IT administrator that we are currently using moodle 1.8
In reply to Sya Rahim

Re: Blank Page showing up after clicking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
Looks like you are hitting the problem that this commit fixed:

http://cvs.moodle.org/moodle/lib/weblib.php?r1=1.812.2.71&r2=1.812.2.72

(Oh, cool that's a bug I fixed!)

From which I deduce that you have not upgraded to 1.8.3 or 1.8.4. You should really consider doing that. There have been loads of bug fixes and performance improvements on the 1.8 branch.
In reply to Tim Hunt

Re: Blank Page showing up after clicking to view the quiz

por Ken Tuley -
I'm having the same issue.... click on quiz, get blank screen.

here's the debug error..

Page class mapping requested for unknown type: http:--mhsclassroom.aps.edu:16080-mod-quiz-view
  • line 100 of lib/pagelib.php: call to debugging()
  • line 65 of lib/pagelib.php: call to page_map_class()
  • line 50 of lib/pagelib.php: call to page_create_object()
  • line 51 of mod/quiz/view.php: call to page_create_instance()


Notice: Undefined index: http:--mhsclassroom.aps.edu:16080-mod-quiz-view in /Library/WebServer/moodle/lib/pagelib.php on line 103

Notice: Undefined index: http:--mhsclassroom.aps.edu:16080-mod-quiz-view in /Library/WebServer/moodle/lib/pagelib.php on line 104
Page class mapping for id "http:--mhsclassroom.aps.edu:16080-mod-quiz-view" exists but class "" is not defined
  • line 104 of lib/pagelib.php: call to debugging()
  • line 65 of lib/pagelib.php: call to page_map_class()
  • line 50 of lib/pagelib.php: call to page_create_object()
  • line 51 of mod/quiz/view.php: call to page_create_instance()


Notice: Undefined index: http:--mhsclassroom.aps.edu:16080-mod-quiz-view in /Library/WebServer/moodle/lib/pagelib.php on line 107

Fatal error: Class name must be a valid object or a string in /Library/WebServer/moodle/lib/pagelib.php on line 67

i have upgraded to 1.8.4+
Moodle 1.8.4+ (2007021540)

From the config.php
$CFG->wwwroot = 'http://mhsclassroom.aps.edu';

which brings up the mismatch in the port number.
but it seems to be that when I add the port number to the config line..... the turn editing on breaks. (teachers get a blank page) but the quiz works.

Thoughts?

And Thanks in advance!

Ken
In reply to Ken Tuley

Re: Blank Page showing up after clicking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
Ah, this looks like MDL-11061.
In reply to Tim Hunt

Re: Blank Page showing up after clicking to view the quiz

por Ken Tuley -
Tim-Thanks for the response...

MDL-11061 talks about an ISA server, I have an Apache server on a Mac OS X box.

however, I do have a mismatch between the wwwroot and apparently the $_server variable.

What's the best way to fix this... in the variable or config?

and then which way... ie, should the port number be in both places or without the port number?

Thanks for helping with this.

Ken


In reply to Ken Tuley

Re: Blank Page showing up after clicking to view the quiz

por Tim Hunt -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers
The key thing is to get both places the same, however, I don't really know the best way to do that.