> > Bug (approved)

taskView - Undefined paramater for page-handle 'commentNew'

Summary

approved
Sep 12, 2006
100%
Oct 26, 2006
Sep 12, 2006 / madlyr
Jan 5, 2009 / phsouzacruz
tino
 

Attached files

No files uploaded
 
In task view we see errors, debug code below:

Error 20060912103016 WARNING: stdclass_pagehandler.inc.php : 276 Undefined paramater for page-handle 'commentNew': 'comment'='1451' 
Error 20060912103016  stdclass_pagehandler.inc.php : 312 -> PageHandler::getUrl("commentNew", [2])
Error 20060912103016    listslist_comments.inc.php : 214 -> PageHandler::getLink("commentNew", "Reply", [2])
Error 20060912103016     renderrender_list.inc.php : 820 -> ListBlockCol_CommentPoster::render_tr(*Comment)
Error 20060912103016     renderrender_list.inc.php : 976 -> ListBlock::render_trow(*Comment)
Error 20060912103016        pagestask_view.inc.php : 553 -> ListBlock::render_list([2])
Error 20060912103016  stdclass_pagehandler.inc.php : 656 -> TaskView()
Error 20060912103016                     index.php : 339 -> PageHandler::show("taskView")
Error 20060912103016 
Error 20060912103016      Variables in getUrl():
Error 20060912103016                            id = commentNew
Error 20060912103016                        params = Array
Error 20060912103016                          auth = Object id #1
Error 20060912103016                       phandle = Object id #124
Error 20060912103016                    str_params = NULL
Error 20060912103016                  valid_params = Array
Error 20060912103016                         value = 1451
Error 20060912103016                           key = comment
Error 20060912103016    v0.0681, taskView, from 83.16.198.98,  uri:/index.php?go=taskView&tsk=1417
Error 20060912103016 

Error 20060912103016 WARNING: stdclass_pagehandler.inc.php : 276 Undefined paramater for page-handle 'commentNew': 'comment'='1502' 
Error 20060912103016  stdclass_pagehandler.inc.php : 312 -> PageHandler::getUrl("commentNew", [2])
Error 20060912103016    listslist_comments.inc.php : 214 -> PageHandler::getLink("commentNew", "Reply", [2])
Error 20060912103016     renderrender_list.inc.php : 820 -> ListBlockCol_CommentPoster::render_tr(*Comment)
Error 20060912103016     renderrender_list.inc.php : 976 -> ListBlock::render_trow(*Comment)
Error 20060912103016        pagestask_view.inc.php : 553 -> ListBlock::render_list([2])
Error 20060912103016  stdclass_pagehandler.inc.php : 656 -> TaskView()
Error 20060912103016                     index.php : 339 -> PageHandler::show("taskView")
Error 20060912103016 
Error 20060912103016      Variables in getUrl():
Error 20060912103016                            id = commentNew
Error 20060912103016                        params = Array
Error 20060912103016                          auth = Object id #1
Error 20060912103016                       phandle = Object id #124
Error 20060912103016                    str_params = NULL
Error 20060912103016                  valid_params = Array
Error 20060912103016                         value = 1502
Error 20060912103016                           key = comment
Error 20060912103016    v0.0681, taskView, from 83.16.198.98,  uri:/index.php?go=taskView&tsk=1417
Error 20060912103016 

Issue report

Minor
Have not tried
0.681 build 78
 

2 Comments

pixtur:Hi Tino,

11 years ago

probably my guess was not quiet correct. You also have adjust the _handles.inc.php:

new PageHandleFunc(array('id'=>'commentNew',
    'req'=>'pages/comment.inc.php',
    'title'=>__('Create comment'),
    'valid_params'=>array(
           'parent_task'=>'\d*',
           'comment'=>'\d*',      #<- this is new
           'prj'=>'\d*'),

    'test'=>'yes',
    'test_params'=>array('prj'=>'_projectEdit_',),
));


tino:Thanks for reporting

11 years ago

Hey Tom,

thank you.
I made the changes and committed.

Does it work for you?