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.
On taking a quiz, I get the following message in the log: Theme key "node_form" not found.
It seems similar to this issue (http://drupal.org/node/1218028), however it occurs on taking a quiz rather than adding a new one.
I have a the Quiz-core module with Quiz-question and MultiChoice modules enabled, and the testquiz consists of merely MC-questions.
Comment | File | Size | Author |
---|---|---|---|
#2 | quiz-theme_key_node_form_not_found-1874736-2.patch | 1.39 KB | idebr |
#1 | theme_node_form-1874736-1.patch | 455 bytes | ultimike |
Comments
Comment #1
ultimikeI'm seeing the same thing in my site logs and I think it has to do with the fact that there is no theme_node_form default function. Here's some background (https://drupal.org/node/775012), but I think the solution is to simply remove the
return theme('node_form', array('form' => $form));
line fromtheme_quiz_node_form($variables)
in quiz/quiz.admin.incIn my quick testing of this, there were no ill effects (since the theme hook doesn't exist anyway) and the error no longer appears in the log.
I've attached a patch.
Thanks,
-mike
Comment #2
idebr CreditAttribution: idebr commentedThis issue still occurs in the latest 7.x-5.x version on every Quiz-form (node/%node/edit).
This is probably a leftover from previous Quiz-versions, considering theme_node_form has been removed in Drupal 7: #596582: Remove remnants of theme_node_form() Assigned to: sun
Attached patch removes the theme implementation.
Comment #3
djdevinFixed!