Upcoming events widget

Support for the WordPress Calendar plugin
Dave_Spooner
Posts: 3
Joined: Sat Apr 19, 2014 6:35 am

Upcoming events widget

Unread post by Dave_Spooner » Sat Apr 19, 2014 6:40 am

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!

User avatar
Kieran
Posts: 2060
Joined: Sat May 26, 2007 1:55 pm
Location: London
Contact:

Re: Upcoming events widget

Unread post by Kieran » Tue Apr 22, 2014 10:50 am

On that numbered line in calendar.php, do you have the following code?

Code: Select all

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

Dave_Spooner
Posts: 3
Joined: Sat Apr 19, 2014 6:35 am

Re: Upcoming events widget

Unread post by Dave_Spooner » Tue Apr 22, 2014 11:15 am

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?

User avatar
Kieran
Posts: 2060
Joined: Sat May 26, 2007 1:55 pm
Location: London
Contact:

Re: Upcoming events widget

Unread post by Kieran » Tue Apr 22, 2014 2:11 pm

Updating that line to

Code: Select all

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

Dave_Spooner
Posts: 3
Joined: Sat Apr 19, 2014 6:35 am

Re: Upcoming events widget

Unread post by Dave_Spooner » Tue Apr 22, 2014 2:35 pm

Perfect! :D

Post Reply