• steponme

    (@steponme)


    Get this stuff since update… what is that about?

    Warning: Declaration of JC_Submenu_Nav_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, …$args) in /web/htdocs/XXXXXXXXXXXXXXXXXXX/wp-content/plugins/jc-submenu/walkers/SubmenuWalker.php on line 1029

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • andy0829

    (@andy0829)

    I’m having the same issue today after the latest WordPress update ?

    airplanenoise

    (@airplanenoise)

    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

    andy0829

    (@andy0829)

    @airplanenoise – Thank you , life saver , added that to wp-config and all good for now.

    michebia

    (@michebia)

    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 ago by michebia.

    So you did @michebia.

    Now working perfectly.

    Thanks very much!

    @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)

    Thank you, @michebia!

    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?

    Thanks @michebia!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not compatible to WP 5.3?’ is closed to new replies.