I downloaded Nice Menus 6.x-2.1-beta1 and right after the installation and enabling, I got the following cryptic warning:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_nice_menu_primary_links' was given in /sites/your.johnsonfamilynews.net/web/includes/theme.inc on line 656.
What can I do to fix this?
Comments
Comment #1
simonknight commentedI'm getting the same issue after upgrading the module on my drupal site.
Comment #2
vm commentedupdate to beta2 (the latest release) and test.
Comment #3
simonknight commentedIt's producing the same error I'm afraid.
Comment #4
BradleyT commentedDo a scan of your site files to find all occurrences of theme_nice_menu_primary_links and update to theme_nice_menus_primary_links. Most likely this will be called from a template file. Notice the S on menus.
Comment #5
simonknight commentedYou're right, theme_nice_menu_primary_links was in a page.tpl.php file.
Thanks for your help!
Comment #6
vm commentedComment #8
brightboldOh thank you! This has been driving me crazy.
This apparently will also occur if you're calling nice menus directly in your page template. The code
Should be
instead. (Note: second line should be 'nice_menus' plural.)
Comment #9
sidharth_k commentedThanks this helped!!