Walker::start_el called with wrong args in wpfc-events-manager.php
-
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).
- The topic ‘Walker::start_el called with wrong args in wpfc-events-manager.php’ is closed to new replies.