WordPress.org

Forums

WP FullCalendar
Walker::start_el called with wrong args in wpfc-events-manager.php (1 post)

  1. Matt Bagley
    Member
    Posted 12 months ago #

    Getting some "wrong args" errors (note: this is just a "warning" error, the plugin still works, but I don't even like warnings):

    Declaration of WPFC_EM_Categories_Walker::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0)
    /wp-content/plugins/wp-fullcalendar/wp-fullcalendar.php(52)
    
    Declaration of WPFC_EM_Categories_Walker::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0)
    /wp-content/plugins/wp-fullcalendar/wpfc-events-manager.php(328)

    To fix it I changed line 306 of wp-fullcalendar/wpfc-events-manager.php to:

    function start_el( &$output, $category, $depth = 0, $args = array(), $current_object_id = 0 ) {

    And then it works without any errors/warnings!

    And the reason is because Walker::start_el is suppose to be called with that many of args. (It's borrowed/overridden from Event Manager).

    https://wordpress.org/plugins/wp-fullcalendar/

Reply

You must log in to post.

About this Plugin

  • WP FullCalendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.