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.

Files: 
CommentFileSizeAuthor
#2 quiz-theme_key_node_form_not_found-1874736-2.patch1.39 KBidebr
PASSED: [[SimpleTest]]: [MySQL] 2,565 pass(es).
[ View ]
#1 theme_node_form-1874736-1.patch455 bytesultimike

Comments

ultimike’s picture

Version:7.x-4.0-alpha12» 7.x-4.x-dev
Issue summary:View changes
Status:Active» Needs review
StatusFileSize
new455 bytes

I'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 from theme_quiz_node_form($variables) in quiz/quiz.admin.inc

In 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

idebr’s picture

Version:7.x-4.x-dev» 7.x-5.x-dev
StatusFileSize
new1.39 KB
PASSED: [[SimpleTest]]: [MySQL] 2,565 pass(es).
[ View ]

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

djdevin’s picture

Status:Needs review» Fixed

Fixed!

  • djdevin committed df202e5 on 7.x-5.x authored by idebr
    Issue #1874736 by ultimike, idebr: Theme key "node_form" not found on...

  • djdevin committed df202e5 on 7.x-6.x authored by idebr
    Issue #1874736 by ultimike, idebr: Theme key "node_form" not found on...

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.