How to update Akira from 2.1.5 to 2.2.0? Click here.

Okay
  Public Ticket #3131090
Error in megamenu
Closed

Comments

  • elinakrumina2 started the conversation

    Good day! I constantly keep getting this error using megamenu: AH01071: Got error 'PHP message: PHP Notice:  Undefined offset: 0 in /hwww/httpdocs/modules/nrtmegamenu/nrtmegamenu.php on line 3926'

    This would be the line it throws out:

    $k['children'] = $sub_categories[0];


    Would there be a solution to at least hide the error from the error log? It clutters it up.

  •  243
    Naik replied

    Hi,

    Please go to the file you are receiving the error from and replace it with this code

                                    if (isset($sub_categories[0])){
                                        $k['children'] = $sub_categories[0];
                                    } else {
                                        $k['children'] = "";
                                    }
    

    Thank you!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)