Feng Forum

Support => Feng Office 1 => Older versions => 1.4 final => : Karl June 30, 2009, 06:35:47 PM

: 1.4.2: Fatal error: Call to a member function getCardUrl()...
: Karl June 30, 2009, 06:35:47 PM
"Fatal error: Call to a member function getCardUrl() on a non-object in /home/mydomain.tld/public_html/application/views/milestone/view.php on line 135"

I deleted a user. After this deletion I can not open some tasks and milestones. I always get the above error.

How can I get access to these milestones?
: Re: 1.4.2: Fatal error: Call to a member function getCardUrl()...
: Karl July 01, 2009, 11:37:31 AM
Any ideas in this case?
: Re: 1.4.2: Fatal error: Call to a member function getCardUrl()...
: Pet July 06, 2009, 03:12:27 AM
Karl, I'm just doing some wild guessing, but have you tried re-creating the user you deleted, so that you can access the tasks and milestones?  Perhaps you can then reassign them.
: Re: 1.4.2: Fatal error: Call to a member function getCardUrl()...
: ignacio July 09, 2009, 05:03:23 PM
Hi Karl,

Change line 135 for:

:
$content .= '<span class="taskCompletedOnBy">(' .lang('completed on by', format_date($task->getCompletedOn()), $task->getCompletedBy() instanceof User ? $task->getCompletedBy()->getCardUrl() : '#', $task->getCompletedBy() instanceof User ? clean($task->getCompletedBy()->getDisplayName()) : lang('n/a')) . ')</span>
Basically, what this change does is first checking if the task is completed by a user and if it is then it gets the user's info. We have now scheduled an app-wide test searching for this kind of bug, trying to access a deleted user.

Thanks.