Issue Details (XML | Word | Printable)

Key: MDL-11833
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Minor Minor
Assignee: Tim Hunt
Reporter: Jose Trompiz
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Quiz appear a blank. I put in debug mode and received the following message "Fatal error Class name must be a valid object or a string in C \moodle\moodle\lib\pagelib.php on line 67".

Created: 19/Oct/07 10:05 AM   Updated: 19/Oct/07 05:52 PM
Return to search
Component/s: Quiz
Affects Version/s: 1.8.3
Fix Version/s: None

Environment: windows 2003
Issue Links:
Duplicate
 

URL: http://www.cursostelecom.lastingnet.com/mod/quiz/index.php?id=2
Participants: Jose Trompiz and Tim Hunt
Security Level: None
Resolved date: 19/Oct/07
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
"After finishing to prepare a quiz, when you go to see quiz, only appear a blank page. I put in debug mode and received the following message "Fatal error Class name must be a valid object or a string in C \moodle\moodle\lib\pagelib.php on line 67". You can see the error visiting "http //www.cursostelecom.lastingnet.com/mod/quiz/index.php?id=2" in this link, click on Test1 see the message."

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jose Trompiz added a comment - 19/Oct/07 11:28 AM
Some settings in my config.php are:

?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';

$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';

$CFG->wwwroot = '';
$CFG->dirroot = 'C:\moodle\moodle';
$CFG->dataroot = 'e:\moodle/moodledata';

The $CFG->wwwroot = ''; is empty because was the only way that my site work over internet


Tim Hunt added a comment - 19/Oct/07 04:25 PM
Setting $CFG->wwwroot to '' is not the only way to get your site working over the internet.

As you found, it does not work at all.

Also, this bug with $CFG->wwwroot set incorrectly causing strange errors has been reported several tiems before. Please search for duplicate bug reports before filing new ones.


Jose Trompiz added a comment - 19/Oct/07 05:52 PM
Thanks Tim.

Last nigt I solved it. Sorry by reported as a new bugs, but when I search in bug tracking I didn´t find it. I think that if bugs reports including a debugging messages from moodle it could be easier to find it.

Thanks again for your fast answer.

Regards
Jose Trompiz