Feng Forum
Support => Feng Office 1 => Older versions => 1.4 final => : 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?
-
Any ideas in this case?
-
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.
-
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.