@ Katelyn
RE: just updated the site
What do you mean by this statement? Update WP? If so, that would make sense if the core WP class Walker_Nav_Menu
had changed the parameters of those four methods I mentioned in my previous reply.
RE: I’m not sure what I should add to the code to make it work again.
I’m not able to tell you precisely because it is not my code causing the error, but…
If you open this file:
../wp-content/plugins/connections-card/nav-menu-dropdown.php
I suspect this file contains a PHP class which extends the WP core Walker_Nav_Menu class. Search the file for start_lvl
. This should be a method that has two parameters but now requires three. Add $args = array()
as the new third parameter. Do this for end_lvl
too. The last two methods, start_el
and end_el
are similar. For the start_el
method you need to add the new $id = 0
as the fifth parameter. Lastly for the end_el
method you need to add $args = array()
as a new forth parameter. This is pretty much exactly what the error message is saying.
What is odd… I would expect the line numbers to be different, but they are all reported as they error being on line 0
.
Hope this helps!