• Resolved cfpro

    (@cfpro)


    Recently my hosting provider upgraded something, not sure what, but it caused a fatal error using this theme. Here is the exact error

    PHP Fatal error: Declaration of w3csspress\W3csspress_Walker_Nav_Menu::start_lvl(&$output) must be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = null) in …..

    Any help on what to do to fix this issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Matteo Marchiori

    (@matteomarchiori97)

    Hi @cfpro , thank you very much.
    My fault, it is due to some automatic fixes I added on the last version of the theme, I forgot to test again it.

    I will fix it in the next days, hope it is not a problem.

    Anyway, to fix it you need to add two arguments to the start_lvl function, under classes, under W3csspress_Walker_Nav_Menu, like this:

    public function start_lvl( &$output, $depth, $args ) {
    			$output .= '<ul class="w3-dropdown-content w3-animate-opacity w3-bar-block w3-mobile w3-theme-action sub-menu">';
    		}
    Theme Author Matteo Marchiori

    (@matteomarchiori97)

    Sorry, a bit different fix with default values.
    I uploaded it in the 2022.31 version, tell me if now it works.

    Regards

    Thread Starter cfpro

    (@cfpro)

    Sorry, I moved on to a different theme, I was in a big hurry to get the site done.

    Theme Author Matteo Marchiori

    (@matteomarchiori97)

    It’s ok, anyway thank you for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error’ is closed to new replies.