• Resolved Martín

    (@suberek)


    The plugin works fine but im getting this error in the html title:

    <title>
    <b>Warning</b>: Missing argument 2 for mc_event_filter() in <b>/www/ugab.org.ar/htdocs/wp-content/plugins/my-calendar/my-calendar.php</b> on line <b>111</b>

    <b>Warning</b>: Missing argument 3 for mc_event_filter() in <b>/www/ugab.org.ar/htdocs/wp-content/plugins/my-calendar/my-calendar.php</b> on line <b>111</b>
    UGAB Buenos Aires | Unión General Armenia de Beneficencia</title>

    https://www.ugab.org.ar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    This is a bug – it doesn’t crop up often, but it’s because I’m not passing default values to that function.

    On line 117 of my-calendar.php, change

    function mc_event_filter( $title, $sep, $seplocation ) {

    to

    function mc_event_filter( $title, $sep=' | ', $seplocation='right' ) {

    and the problem will go away.

    Thread Starter Martín

    (@suberek)

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing argument for mc_event_filter()’ is closed to new replies.