When I try and add a pane that uses nodecomment_form it breaks on that panel with the following error message:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in .../drupal/includes/form.inc on line 371.

Looking at the nodecomment_form.inc file the problem seems to be on with this code on line 29:

$comment_type = variable_get('comment_type_'. $node->type, variable_get('default_comment_type', ''));

I believe that the variable 'comment_type' should actually be 'node_comment_type' and adding changing that seems to fix the problem. I've attached a simple patch.

CommentFileSizeAuthor
comment_form_ctools.patch791 byteshadsie

Comments

zmove’s picture

Status: Active » Reviewed & tested by the community

Hi,

I confirm the issue and I confirm that the patch correctly fix it.

jthomasbailey’s picture

confirmed, patch works

crea’s picture

Status: Reviewed & tested by the community » Fixed

I belive this was fixed already without marking the issue fixed. Please reopen if the problem exists in latest beta/dev.

Status: Fixed » Closed (fixed)

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