Tuesday, 10 July 2018
  4 Replies
  1.1K Visits
0
Votes
Undo
Hi,

I'm using Jevents and have come across a CALL TO A MEMBER FUNCTION TOFORMAT() ON NULL error when i click on a day in the calendar module.

Do we have a fix for this for it to stop it happening or a work around until a fix can be made.

Thanks
Donald
Wednesday, 11 July 2018 16:10
·
#204046
Accepted Answer
0
Votes
Undo
Hello,

Did you change your themes template override files? If not then you should report this to them;

The following line of code in:

/templates/ja_purity_ii/html/com_jevents/default/day/listevents_body.php

has this line:


$class = $datenow->toFormat('%Y-%m-%d') > $row->startdate() ? "pastevent":"";


but $datanow is not defined, it should be:


$datenow = JEVHelper::getNow();
$class = $datenow->toFormat('%Y-%m-%d') > $row->startdate() ? "pastevent":"";


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 10 July 2018 15:14
·
#204019
0
Votes
Undo
Hello Donald,

What happens when you use the standard Joomla! template?

Can you provide super user logins so we can take a look?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 11 July 2018 10:11
·
#204032
0
Votes
Undo
Hi Tony,

I'm not sure what template i'm using but i like the one i'm using now with the layout i have.

I have created a Super Account for you to have a look to see what could be happening and to see what could be wrong. Will PM you the details. I have made the module only accessible to super users (at moment) so you will need to log in via the front end to see

Thanks Donald
Wednesday, 11 July 2018 16:10
·
#204046
Accepted Answer
0
Votes
Undo
Hello,

Did you change your themes template override files? If not then you should report this to them;

The following line of code in:

/templates/ja_purity_ii/html/com_jevents/default/day/listevents_body.php

has this line:


$class = $datenow->toFormat('%Y-%m-%d') > $row->startdate() ? "pastevent":"";


but $datanow is not defined, it should be:


$datenow = JEVHelper::getNow();
$class = $datenow->toFormat('%Y-%m-%d') > $row->startdate() ? "pastevent":"";


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 12 July 2018 02:12
·
#204059
0
Votes
Undo
Thanks for you help Tony,
  • Page :
  • 1
There are no replies made for this post yet.