Hi all, after doing an otherwise successful upgrade from 6.x-3.4 to 4 RC7, whenever I visit my website home page I am presented with the following error.

Fatal error: Class 'MultichoiceQuestion' not found in sites/all/modules/quiz/question_types/quiz_question/quiz_question.module on line 634. I haven't debugged this yet was wondering if anyone else has had this/had a quick solution?

Comments

djdevin’s picture

Status: Active » Closed (duplicate)

Hi,

There's an issue with Autoloader and Spaces, try the solution in #777408: Autoload needs a lower weight in the system table?

chrism2671’s picture

Status: Closed (duplicate) » Closed (fixed)

I had a quick check over this, and this issue was fixed in Autoloader 1.4 which is what we're using. I double checked the weight in the system table to be sure. I think this may have been related to a caching issue unique to our site, closing for now, will debug and reopen if it reappears.

blazetech’s picture

Issue summary: View changes

Ho to solve Fatal error: Class 'MultichoiceQuestion' not found in sites/all/modules/quiz/question_types/quiz_question/quiz_question.module on line 634

/**
 * Implementation of hook_autoload_info().
 */

// Change this:
function quiz_question_autoload_info() {
  return array(
  // Base interfaces and classes:
    'QuizQuestion' => array('file' => 'quiz_question.core.inc'),
    'AbstractQuizQuestion' => array('file' => 'quiz_question.core.inc'),
    'QuizQuestionResponse' => array('file' => 'quiz_question.core.inc'),
    'AbstractQuizQuestionResponse' => array('file' => 'quiz_question.core.inc'),
  );
}

// whit this: 
function quiz_question_autoload_info() {
  return array(
  // Base interfaces and classes:
    'QuizQuestion' => array('file' => 'quiz_question.core.inc'),
    'AbstractQuizQuestion' => array('file' => 'quiz_question.core.inc'),
    'QuizQuestionResponse' => array('file' => 'quiz_question.core.inc'),
    'AbstractQuizQuestionResponse' => array('file' => 'quiz_question.core.inc'),
    'TrueFalseQuestion' => array('file' => 'truefalse.classes.inc'),
    'TrueFalseResponse' => array('file' => 'truefalse.classes.inc'),
  );
}

For me work.