MantisBT - TestLink
View Issue Details
0006748TestLinkTest Plan Managementpublic2014-11-14 02:392014-11-14 11:41
baggiogamp 
fman 
highcrashalways
closedfixed 
PHP5Windows and SUSE Linuxwindows7
1.9.12 (2014 Q3) 
1.9.13 (2015 #1) 
MySQL
Any
5.5
READY FOR TESTING
0006748: Page crash after click "Test Plan Management" link at home page
I had upgrade my Testlink from 1.9.5 to 1.9.12, then i found the issue.
After i click "Test Plan Management" link at the home page, i got error message "Fatal error: Call to a member function hasRight() on a non-object in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\Testlink912\lib\plan\planView.php on line 68".

If i comment the code at line 68 ("$gui->tplans[$idk]['rights'][$target] = $roleObj->hasRight($target);"), the test plan list page could be displayed.
It also could be fix by adding "unset($roleObj);" at line 69.

I tried to debug it: i found error is $roleObj is null, when the error happen.

I got the almost same error when i trying to create a new test plan.
After click "Create" button, trying to save the plan, i got error message: "Fatal error: Call to a member function hasRight() on a non-object in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\Testlink912\lib\plan\planEdit.php on line 281"


No tags attached.
Issue History
2014-11-14 02:39baggiogampNew Issue
2014-11-14 09:32fmanNote Added: 0022141
2014-11-14 09:32fmanAssigned To => fman
2014-11-14 09:32fmanStatusnew => feedback
2014-11-14 11:30baggiogampNote Added: 0022143
2014-11-14 11:30baggiogampStatusfeedback => assigned
2014-11-14 11:35baggiogampNote Added: 0022144
2014-11-14 11:41fmanNote Added: 0022145
2014-11-14 11:41fmanQA Team - Task Workflow Status => READY FOR TESTING
2014-11-14 11:41fmanStatusassigned => closed
2014-11-14 11:41fmanResolutionopen => fixed
2014-11-14 11:41fmanFixed in Version => 1.9.13 (2015 #1)

Notes
(0022141)
fman   
2014-11-14 09:32   
Please get latest code from gitorious (branch 1.9)

Install in sandbox, retest and provide feedback
(0022143)
baggiogamp   
2014-11-14 11:30   
Hi, thanks.
It seems had be fixed after i replace planView.php and planEdit.php.
(0022144)
baggiogamp   
2014-11-14 11:35   
I am upgrading from 1.9.5 to 12 version. Should i replace all the source downloaded from 12GA version with all the code files(from branch 1.9)?

I am not quit sure, if i will meet other issue.
Or do you know some automate regression test for validating this?
(0022145)
fman   
2014-11-14 11:41   
replace code and pay attention to SQL SCRIPTS regarding SCHEMA and initial data

CLOSING ISSUE