Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.6.12, custom template, php warning
- This topic has 4 replies, 2 voices, and was last updated 5 years, 4 months ago by
Katelyn Thompson.
-
AuthorPosts
-
11/17/2017 at 12:55 pm #441437
Katelyn Thompson
ParticipantHello! I’m getting the following error:
Warning: Declaration of Walker_Nav_Menu_Dropdown::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/busin814/public_html/wp-content/plugins/connections-card/nav-menu-dropdown.php on line 0
This error is repeated 3 more times down the page.
The error can be found here here and on every member page on the site.
Please let me know how I can fix this error.
Thanks!!
11/17/2017 at 2:37 pm #441438Steven Zahm
Keymaster@ Katelyn
It appears someone had created a custom template based on the Default template. Who ever did this for you will have to update their code so as to not generate this error. Best guess that in this file:
../wp-content/plugins/connections-card/nav-menu-dropdown.php
the use of the
start_lvl
,end_lvl
,start_el
andend_el
is missing the last required parameter when declaring the method.Hope this helps!
11/21/2017 at 2:45 pm #441779Katelyn Thompson
ParticipantWell, I’m actually the person who built the site. We haven’t made any changes since last year, just updated the site. I’m not sure what I should add to the code to make it work again.
11/21/2017 at 3:26 pm #441780Steven Zahm
Keymaster@ 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 forend_lvl
too. The last two methods,start_el
andend_el
are similar. For thestart_el
method you need to add the new$id = 0
as the fifth parameter. Lastly for theend_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!
11/22/2017 at 3:38 pm #441838Katelyn Thompson
ParticipantWe updated the Connections plugin on 11/04 and recently updated WordPress to the latest version within the last couple days. Not sure which one caused this to happen.
Either way, thank you so much for your help. It’s fixed and working correctly!! :D
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.