When enabling "Node add/edit form" page template, the edit page is not shown, instead an error message appears:
Fatal error: Call to undefined function drupal_render_form()

It is caused by ctools\page_manager\plugins\tasks\node_edit.inc which calls an old drupal 6 function.

Using drupal_build_form() instead works - at least when no actual page variant is used, because panels also does call drupal_render_form. I'll make a patch for that later if there isn't any.

It's my first patch, please tell me if I did anything wrong.

CommentFileSizeAuthor
#1 ctools-node-edit-959016-1.patch869 byteskapep
node-edit-page.patch886 byteskapep
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kapep’s picture

Apparently I already did something wrong by misreading the naming conventions. Let's try again.

merlinofchaos’s picture

I'm not sure this is right; the comment makes me think that using drupal_build_form() will mess up the IDs. In D7, we don't actually need to render the form at all. Maybe just $output = $context->form should work?

OnkelTem’s picture

Subscribing

MChall’s picture

Subscribing

merlinofchaos’s picture

Status: Needs review » Fixed

Fixed and pushed this.

Status: Fixed » Closed (fixed)

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