'suffusion_mega_menu_walker' error

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

'suffusion_mega_menu_walker' error

Postby slips111 » 15 May 2012, 02:28

I've updated to 4.2, then reactivated my child theme, and am getting this error showing in my WP Dashboard. Could somebody tell me what's going on? Thanks.

First argument is expected to be a valid callback, 'suffusion_mega_menu_walker' was given in /home/USER/SITE.COM/wordpress/wp-includes/plugin.php on line 170

Clipboard01.jpg
Clipboard01.jpg (97.93 KiB) Viewed 366 times
slips111
 
Posts: 39
Joined: 22 Oct 2011, 09:55

Re: 'suffusion_mega_menu_walker' error

Postby sayontan » 15 May 2012, 08:51

This shouldn't be happening unless there is some interference from a plugin. Anyway, you can fix it by opening functions.php and locating the function "suffusion_setup_standard_actions_and_filters". In this function there is this code:
Code: Select all
   if (current_theme_supports('mega-menus')) {
      add_filter('walker_nav_menu_start_el', 'suffusion_mega_menu_walker', 10, 4);
   }

Change it to:
Code: Select all
   if (current_theme_supports('mega-menus') && !is_admin()) {
      add_filter('walker_nav_menu_start_el', 'suffusion_mega_menu_walker', 10, 4);
   }
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10161
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: 'suffusion_mega_menu_walker' error

Postby slips111 » 15 May 2012, 09:16

That did it. Thank you very much. I wish I could contribute something by figuring out what plug-in is not cooperating, but unfortunately I don't have the tech brain for it. So thanks as always for your great work.
slips111
 
Posts: 39
Joined: 22 Oct 2011, 09:55


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 3 guests

cron