-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Symptoms: Sub-menus don't appear on hover.
Solutions:
-
Check that AJAX sub-menu loading is enabled:
- Go to Appearance > Mega Menu Ajax
- Ensure "Enable AJAX Sub-Menu Loading" is checked
-
Check browser console for errors:
- Open DevTools (F12)
- Look for red error messages
-
Verify nonce is valid:
- Clear browser cache
- Refresh the page
Symptoms: Clicking menu items takes too long to navigate.
Solutions:
-
Update to v1.0.14+ - The hybrid prefetch system fixes this issue
-
Check preload settings:
- Disable "Preload JS" if not needed
- Reduce preload delay to 50ms
-
Clear transients:
// Add to functions.php temporarily delete_transient('mega_menu_ajax_preload_*');
-
Check server response time:
- Use browser DevTools Network tab
- Look for slow AJAX requests
Symptoms: Sub-menus don't open on mobile devices.
Solutions:
- Tap the parent item (not the link) to toggle
- Check mobile breakpoint setting
- Ensure mobile toggle is enabled
Symptoms: Menu doesn't work correctly with other menu plugins.
Known Conflicts:
| Plugin | Solution |
|---|---|
| Max Mega Menu | Compatible - auto-detected |
| Elementor Pro Nav | Use our Elementor widget instead |
| WP Rocket | Exclude menu JS from deferred loading |
Symptoms: Console shows JavaScript errors.
Common Errors:
-
megaMenuAjax is not defined- Plugin JS not loaded
- Check script concatenation settings
-
AJAX 400 Bad Request- Nonce expired
- Clear cache and refresh
-
AJAX 403 Forbidden- Security plugin blocking AJAX
- Whitelist
mega_menu_ajax_*actions
Symptoms: Menu appears unstyled.
Solutions:
- Clear CSS cache
- Check for CSS minification conflicts
- Verify frontend.css is loaded:
<link rel="stylesheet" href=".../mega-menu-ajax/assets/css/frontend.css">
Enable debug logging to troubleshoot issues:
-
Enable WordPress debug mode in
wp-config.php:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);
-
Open browser console (F12)
-
Look for
[MegaMenuAjax]messages -
Check
wp-content/debug.logfor PHP errors
- GitHub Issues: Report a bug
-
Include with your report:
- WordPress version
- PHP version
- Plugin version
- Browser console errors
- Steps to reproduce