[RESOLVED] Error Call to a member function getDisplayName()

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
mbeluet
TestLink user
Posts: 5
Joined: Tue Jan 05, 2010 8:57 am

[RESOLVED] Error Call to a member function getDisplayName()

Post by mbeluet »

Hello,
We were using Testlink 1.8.5 and we migrate to 1.9.3 recently.
Since the migration, we have sometimes the error described hereafter... This problem was not present in the 1.8.5 Release.

********************************
[Thu Sep 01 11:42:39 2011] [error] [client 10.234.50.186] PHP Fatal error: Call to a member function getDisplayName() on a non-object in /WOO/WEB/testlink-dev/www/gui/templates_c/%%A3^A3A^A3A847C8%%inc_tcbody.tpl.php on line 48, referer: http://testlink-dop.dev.orangeportails. ... ure=editTc
********************************

This problem occurs (at least) when we want to update a TC in Specification menu. We have the error message and no data are displayed in the test case detail view.

The cause of this message seems due the fact that long time ago we removed some users from testlink and TC are always related to these users that no more exists in Database.

For an example, if we update the author_id and update_id of a TC version that correct the problem.

Do you know if this problem is known (I see nothing in the forum) and if it will be corrected ?

The only way (without updating TL code) i found to correct this problem is to update all fields author_id and updated_id in all tables from users that no more exists to the admin user but it is not really good.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

[RESOLVED] Re: Error Call to a member function getDisplayNam

Post by fman »

your solution is the only one. On 1.9.x users can NOT BE DELETED, just DISABLED
Post Reply