Moodle
  1. Moodle
  2. MDL-11833

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".

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.8.3
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      windows 2003
    • Rank:
      12221

      Description

      "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."

        Issue Links

          Activity

          Jose Trompiz created issue -
          Hide
          Jose Trompiz added a comment -

          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

          Show
          Jose Trompiz added a comment - 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 made changes -
          Field Original Value New Value
          Link This issue duplicates MDL-11061 [ MDL-11061 ]
          Hide
          Tim Hunt added a comment -

          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.

          Show
          Tim Hunt added a comment - 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.
          Tim Hunt made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Hide
          Jose Trompiz added a comment -

          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

          Show
          Jose Trompiz added a comment - 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
          Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          QA Assignee nobody
          Martin Dougiamas made changes -
          Workflow jira [ 23034 ] MDL Workflow [ 57598 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 57598 ] MDL Full Workflow [ 86746 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: