Missing argument 2 for views_node_feed_edit_form()

CorpX - March 28, 2009 - 12:37
Project:Views Node Feed
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

warning: Missing argument 2 for views_node_feed_edit_form() in /xxx/sites/all/modules/views_node_feed/views_node_feed.module on line 90.

#1

andrewlevine - April 15, 2009 - 13:52
Title:error» Missing argument 2 for views_node_feed_edit_form()
Priority:critical» normal

Thanks for the report, can you give a little more info about when this happens?

#2

Sweetchack - April 15, 2009 - 17:26

In the hook_menu()
$items['admin/settings/views_node_feed/edit']
is MENU_NORMAL_ITEM, and visible in the Navigation block, but the identifier does not passed for the form builder callback function (views_node_feed_edit_form() )
The identifier would be the 4th parts of the URL
'page arguments' => array('views_node_feed_edit_form', 4),
instead of
'page arguments' => array('views_node_feed_edit_form'),

The first argument of a form builder function must be the $form_state

#3

KiamLaLuno - July 8, 2009 - 16:33

I have the same problem.
When visiting " Site configuration › Views Node Feed" I get the following error message:

warning: Missing argument 2 for views_node_feed_edit_form() in /Applications/MAMP/htdocs/dr6/sites/all/modules/views_node_feed/views_node_feed.module on line 90.

The page is shown, but all I see in the page is a "the requested page could not be found".

The problem has been already found, and reported here from Sweetchack, but it doesn't seem the code has been fixed, so far.

 
 

Drupal is a registered trademark of Dries Buytaert.