Fatal Error

Tagged:  

Good Evening dear members:

I have a problem with my project Pier: I have a lot of projects posted on:

http://www.3dmagicaldesigns.com/pm/

When I tried to login today, I received the following error message:

Sorry, fatal error happened

File: /public_html/pm/application/plugins/tickets/views/view_tickets.php

Error
Call to a member function getDisplayName() on a non-object

Line
24

I have a lot projects in my Project Pier´s database and I really don´t how how to solve the issue, can someone help me please?

Thanks

My guess is a user was deleted that was assigned to a ticket.

Edit /public_html/pm/application/plugins/tickets/views/view_tickets.php

Change this

      <td><?php echo $ticket->getCreatedBy()->getDisplayName() ?></td>

to this

    <td><?php if (!is_null($ticket->getCreatedBy())) echo $ticket->getCreatedBy()->getDisplayName() ?></td>

That should do the trick.