PHP Fatal error: Call to a member function format

9 years 9 months ago #1 by sanderv
Hi all,


With the (new) 1.6.2 I get the following when creating an issue:
[24-Jun-2014 07:07:41 UTC] PHP Fatal error:  Call to a member function format() on a non-object in <snip>\administrator\components\com_issuetracker\helpers\dates.php on line 356

Thanks, Sander.

Please Log in or Create an account to join the conversation.

9 years 9 months ago #2 by geoffc
Very strange. I haven't seen that error is any testing or in use.

Can you try changing line 352 in the file <snip>\administrator\components\com_issuetracker\helpers\dates.php to the following:

$d1 = new JDate($jdate);

I haven't specifically tried this but it should work. I am guessing that the PHP is getting confused.

What version of PHP were you using, it was an early version of 5.3 if I recall?

Regards
Geoff
The following user(s) said Thank You: John Murray

Please Log in or Create an account to join the conversation.

9 years 8 months ago - 9 years 8 months ago #3 by John Murray
Hello - I'm experiencing the same issue:

Joomla 3.3.3
PHP 5.4

I applied the patch to line 352 in dates.php

[edit] - successfully applied the above patch, working fine
The following user(s) said Thank You: geoffc

Please Log in or Create an account to join the conversation.

9 years 8 months ago - 9 years 8 months ago #4 by geoffc
Thank you for the update.

Regards
Geoff

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries