Feng Forum
Support => Older versions => : Karl July 20, 2009, 09:09:01 AM
-
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
-
Hi Karl,
This can be fixed by adding the following line before line 303 of 'application/controllers/MilestoneController.class.php':
$now = DateTimeValueLib::now();
-
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
-
Yes Karl,
Replace line 37 of 'application/views/timeslot/object_timeslots.php' with this:
<?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 } ?>