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.
I have quiz_question an diff enabled in a site, and I see these errors
Notice: Undefined index: #node en diff_node_view_alter() (línea 306 de diff/diff.module). Notice: Trying to get property of non-object en diff_node_view_alter() (línea 307 de diff/diff.module).
I see that node_view
in node.module ensures that the key exists in the the build array passed to drupal_alter
, so maybe we should do the same before calling drupal_alter(array('node_view', 'entity_view'), ...
in quiz_question_answering_form
and QuizQuestionResponse::getFeedback
.
Comment | File | Size | Author |
---|---|---|---|
#2 | undefined_index_node-2578631-2.patch | 1.95 KB | mpv |
Comments
Comment #2
mpv CreditAttribution: mpv at gcoop Cooperativa de Software Libre commentedHere's a patch that ensures that '#node' and '#language' are defined before calling drupal_alter.
Comment #3
meramo CreditAttribution: meramo at Bright Solutions GmbH commentedConfirm the issue. Thanks for the patch! I think it can go rtbc directly.
Comment #4
djdevinThanks, this is fixed in #2594511: WSOD when trying to take quiz or view quiz results.