Author Topic: 1.5 RC: Fatal error: Call to a member function getMonth()...  (Read 2941 times)

Karl

  • Sr. Member
  • ****
  • Posts: 339
    • ICQ Messenger - 464979879
    • View Profile
Fatal error: Call to a member function getMonth() on a non-object in /.../application/controllers/MilestoneController.class.php on line 303

See also: http://forums.opengoo.org/index.php?topic=2194.0

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 RC: Fatal error: Call to a member function getMonth()...
« Reply #1 on: July 21, 2009, 01:19:32 pm »
Hi Karl,

This can be fixed by adding the following line before line 303 of 'application/controllers/MilestoneController.class.php':

Code: [Select]
$now = DateTimeValueLib::now();

Karl

  • Sr. Member
  • ****
  • Posts: 339
    • ICQ Messenger - 464979879
    • View Profile
Re: 1.5 RC: Fatal error: Call to a member function getMonth()...
« Reply #2 on: July 21, 2009, 02:09:12 pm »
Hi Ignacio,

thanks. It works. Do you have a solution for the following error too?

Fatal error: Call to a member function getCardUrl() on a non-object in /home/.../application/views/timeslot/object_timeslots.php on line 37

Karl

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 RC: Fatal error: Call to a member function getMonth()...
« Reply #3 on: July 21, 2009, 03:18:29 pm »
Yes Karl,

Replace line 37 of 'application/views/timeslot/object_timeslots.php'  with this:

Code: [Select]
<?php if ($timeslot->getUser() instanceof User) { ?>
<td style="padding-right:10px"><b><a class="internalLink" href="<?php echo $timeslot->getUser()->getCardUrl()?>" title=" <?php echo lang('user card of'clean($timeslot->getUser()->getDisplayName())) ?>"><?php echo clean($timeslot->getUser()->getDisplayName()) ?></a></b></td>
<?php } else {?>
<td style="padding-right:10px"><b><?php echo lang("n/a"?></b></td>
<?php ?>