After upgrade from 1.3 to 2, I started getting a PHP error and no Nice Menu being rendered.
call_user_func_array() expects parameter 1 to be a valid callback, function 'theme_nice_menu_primary_links' not found or invalid function name in /srv/www//public_html/includes/theme.inc on line 668.
The reason it is throwing this error is because I was calling the menu system with this function. It was working previously but now with 6.2 it is no longer working.
theme('nice_menu_primary_links');
What is the way to call this in 6.2? This didn't seem to be documented or stand out anywhere when I read the upgrade notes. Please advise. Thanks!
Comments
Comment #1
jusdavi CreditAttribution: jusdavi commentedCorrection. I updated to 6.2.1 NOT 6.2.
Comment #2
jusdavi CreditAttribution: jusdavi commentedComment #3
gohlkus CreditAttribution: gohlkus commentedFrom UPGRADE.txt:
I am getting this same error and am having trouble figuring out where the developers called the function. Any help would be appreciated.
Comment #4
scottsawyer@gohlkus, thanks for this, exactly my problem. So, in my situation, I had a theme function in my theme's template.php:
and in my page.tpl.php:
This caused my error. So, following your post, I change in my page.tpl.php:
and template.php:
Notice the addition of "s" in the function names appended to "menu". Re-uploaded to the site, refresh, happy days!
Comment #5
steinmb CreditAttribution: steinmb commented