Click on Page Wizards | Node template:

Fatal error: Call to undefined function node_get_types() in /var/aegir/platforms/ff-0.4/sites/all/modules/panels/plugins/page_wizards/node_override.inc on line 75

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anavarre’s picture

Weird behavior for me too. When I click on Page Wizards > Node template, I just get a blank page and nothing happens. I guess an error would be more helpful...

Config : Drupal 7.0-beta3 + ctools, Views and Panels (latest versions from November, 20th)

das-peter’s picture

I guess line 75 of /panels/plugins/page_wizards/node_override.inc should use $types = node_type_get_types(); since node_get_types() is gone as of D7.

das-peter’s picture

Status: Active » Needs review
FileSize
550 bytes

Patch attached.

Jamie Holly’s picture

FileSize
1.15 KB

Attaching a new patch that uses node_type_get_names() instead of node_type_get_types().

merlinofchaos’s picture

Status: Needs review » Fixed

Intoxination's patch ignores that we do not offer this for node types that already have a page attached, so using das-peter's patch.

Status: Fixed » Closed (fixed)

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

  • Commit 495fd71 on 7.x-3.x, master, pipelines, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    #967734 by das-peter and intoxination: Upgrade node_get_types() in...
  • Commit c31c1b2 on 7.x-3.x, master, pipelines, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    #967734 by das-peter and intoxination: Upgrade node_get_types() in...