Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006748TestLinkTest Plan Managementpublic2014-11-14 02:392014-11-14 11:41
Reporterbaggiogamp 
Assigned Tofman 
PriorityhighSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformPHP5OSWindows and SUSE LinuxOS Versionwindows7
Product Version1.9.12 (2014 Q3) 
Fixed in Version1.9.13 (2015 #1) 
Summary0006748: Page crash after click "Test Plan Management" link at home page
DescriptionI 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"


TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserAny
PHP Version5.5
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships

-  Notes
(0022141)
fman (administrator)
2014-11-14 09:32

Please get latest code from gitorious (branch 1.9)

Install in sandbox, retest and provide feedback
(0022143)
baggiogamp (reporter)
2014-11-14 11:30

Hi, thanks.
It seems had be fixed after i replace planView.php and planEdit.php.
(0022144)
baggiogamp (reporter)
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 (administrator)
2014-11-14 11:41

replace code and pay attention to SQL SCRIPTS regarding SCHEMA and initial data

CLOSING ISSUE

- Issue History
Date Modified Username Field Change
2014-11-14 02:39 baggiogamp New Issue
2014-11-14 09:32 fman Note Added: 0022141
2014-11-14 09:32 fman Assigned To => fman
2014-11-14 09:32 fman Status new => feedback
2014-11-14 11:30 baggiogamp Note Added: 0022143
2014-11-14 11:30 baggiogamp Status feedback => assigned
2014-11-14 11:35 baggiogamp Note Added: 0022144
2014-11-14 11:41 fman Note Added: 0022145
2014-11-14 11:41 fman QA Team - Task Workflow Status => READY FOR TESTING
2014-11-14 11:41 fman Status assigned => closed
2014-11-14 11:41 fman Resolution open => fixed
2014-11-14 11:41 fman Fixed in Version => 1.9.13 (2015 #1)



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker