I’m having the same issue today after the latest WordPress update ?
same here
+1
for now, since doesn’t seem to prevent the site from functioning, and depending on how mission critical this is to you, i am just hiding the warning :
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
:\
I’m having the same issue.
I noticed that if you disable the plugin the menus that were generated still work.
Any alternatives?
-Chris
@airplanenoise – Thank you , life saver , added that to wp-config and all good for now.
I found a solution.
In the plugin folder, I opened the file located here:
jc-submenu/walkers/SubmenuWalker.php
I replaced the code in line 105
function walk($elements, $max_depth) {
with
function walk($elements, $max_depth, ...$args) {
Enjoy!
-
This reply was modified 5 years, 7 months ago by
michebia.
@michebia Thank you for the hint. I jope the next release will have a fix and not just overwrite this workaround.
@michebia THANK YOU SO MUCH for the help!
I wanted to add to the thread in case others are still having issues as that one piece of code did not solve my situation. With my particular problem I had to also add “…$args” to the definition of walk in /custom_Menu_Wizard/include/class.sorter.php (line 55)
and
/custom-menu-wizard/include/class.walker.php (line 60)
Also i have problem with php jc submenu errors.
This plug-in is no longer supported? It’s really a great plugin if it just received updates. I followed your suggestions above but the problem still occurs. Maybe you know any other alternative plugin with the same possibilities?
I have these errors:
Declaration of JC_Submenu_Nav_Walker :: walk ($ elements, $ max_depth) should be compatible with Walker :: walk ($ elements, $ max_depth, … $ args) in / home / cyberag1 / public_html / wp-content / plugins / jc- submenu / walkers / SubmenuWalker.php on line 0
What could be wrong?