Page 1 of 1

Upcoming events widget

Posted: Sat Apr 19, 2014 6:40 am
by Dave_Spooner
My upcoming events widget used to work perfectly, but now shows the following before the list oof events:

Warning: Missing argument 1 for __(), called in /homepages/36/d85389542/htdocs/clickandbuilds/WordPress/NNBR/wp-content/plugins/calendar/calendar.php on line 2147 and defined in /homepages/36/d85389542/htdocs/clickandbuilds/WordPress/NNBR/wp-includes/l10n.php on line 146

Any idea how to fix this?

Thanks!

Re: Upcoming events widget

Posted: Tue Apr 22, 2014 10:50 am
by Kieran
On that numbered line in calendar.php, do you have the following code?

Code: Select all

$time_string = ' '.__('all day','calendar');

Re: Upcoming events widget

Posted: Tue Apr 22, 2014 11:15 am
by Dave_Spooner
Thanks - I've updated that line and it has removed the error.

I don't use times with my events - is it possible to remove the "All Day" comment on the upcoming events widget?

Re: Upcoming events widget

Posted: Tue Apr 22, 2014 2:11 pm
by Kieran
Updating that line to

Code: Select all

$time_string = ' ';
should do the trick :)

Re: Upcoming events widget

Posted: Tue Apr 22, 2014 2:35 pm
by Dave_Spooner
Perfect! :D