Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently when I try to delete a quiz node, I get Fatal error: Class name must be a valid object or a string in /sites/all/modules/contrib/quiz/question_types/quiz_question/quiz_question.module on line 652
Here is line 652:
$to_return = new $constructor($result_id, $question, $answer);
When I output the values, $result_id is the only variable with a value.
I have the same error when I try to delete a group or a user. Any assistance would be appreciated.
Comments
Comment #2
djdevinHi,
Can you confirm the version you are on? 6.x is not stable.
I cannot reproduce the error.
Comment #3
robpowellSorry, I think that defaulted to the top value, we are actually on 7.x-5.0-rc1. Please let me know if you need any more information.
Comment #4
djdevinWe also have OG groups, but we can delete them (and users). Could you try a newer release? 5.0 is final and stable :)
Comment #5
robpowellgreat, I'll try that and let you know how it goes. What I find interesting is that when I delete a group node, quiz node or a user- I get the error message above.
Comment #6
Da_Cloud CreditAttribution: Da_Cloud at INDICIA commentedThe error message itself has something in common with
#2624264: Fatal Error: Class name must be a valid object or a string in ../quiz/question_types/quiz_question/quiz_question.module on line 646
which has been fixed since 7.x-5.0-rc3
Comment #7
David_Rothstein CreditAttribution: David_Rothstein commentedThanks @Da_Cloud - very helpful. I'm working with Rob on this, and the patch there seems to have fixed it, so tentatively marking this issue as a duplicate.