Did you try basic bug checking like changing your theme or shutting off plugins one by one to see what’s interfering? Go through it one by one and see if anything changes as you do it.
Hi looks like there’s an issue with the “megamenu plugin” at line 7 > /wp-content/themes/ekommart/inc/megamenu/megamenu.php. Have you tried to deactivate this plugin ?