One of the menu router items that forum_menu() registers is not used anymore. Moreover, it returns a WSOD when trying to access it:

  $items['admin/structure/forum/edit/%forum_term'] = array(
    'page callback' => 'forum_form_main',
    'access arguments' => array('administer forums'),
    'type' => MENU_CALLBACK,
    'file' => 'forum.admin.inc',
  );

is a left-over for what is now

  $items['admin/structure/forum/edit/forum/%forum_term'] = array(
    'title' => 'Edit forum',
    'page callback' => 'forum_form_main',
    'page arguments' => array('forum', 5),
    'access arguments' => array('administer forums'),
    'type' => MENU_CALLBACK,
    'file' => 'forum.admin.inc',
  );

A clean-up for D7 head is attached.

CommentFileSizeAuthor
forum_menu_wsod.patch644 bytesTUc

Comments

TUc’s picture

This is the error message

# Warning: Missing argument 1 for forum_form_main() in forum_form_main() (line 9 of ***/modules/forum/forum.admin.inc).
# Notice: Undefined variable: type in forum_form_main() (line 14 of ***/modules/forum/forum.admin.inc).
TUc’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch failed testing.

larowlan’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Needs backport to D7
jn2’s picture

Status: Needs work » Closed (cannot reproduce)

None of this code exists in current D7 or D8. Must have been fixed/changed since October 2009. Not sure I chose the right status, but it should be closed in some form.