theme array error when updating drupal to 6.20

Asked by Mohammad

Hi everyone

I'm not good at css or theming at all, and the theme was working perfectly on 6.19 but with upgrade I noticed this error

warning: call_user_func_array() []: First argument is expected to be a valid callback, 'theme_nice_menu_primary_links' was given in /home/ubuntu/public_html/includes/ on line 656.

and the administration menue is not available too.

how to get over that !!?

Thanks in advance,


Question information

English Edit question
UD Theme Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mohammad (hyperzahranism) said :

I was almost sleeping when I wrote that question,,

the problem I guess with the module "nice menu" itself. when I turned it on I get this error when it's off no more messages.

But I should point out that, the administration menu module don't work with ubuntu theme in particular, am I missing something !?

Thanks again

Revision history for this message
Mohammad (hyperzahranism) said :

after working around trying to find what is the problem with nice menu & ubuntu theme I found that "nice menu" when updated to 6.2 version changed many functions names

The theme functions have all been RENAMED to be more in line with Drupal
standards, so if you are overwriting the functions in your theme's
template.php or calling the functions anywhere in your theme, you should
update the function names. The old functions were called theme_nice_menu_* and
the new ones are theme_nice_menus_*, with an "s" to match the module name.

The old JS has been completely removed and replaced with JS that uses the
Superfish jQuery plugin. It now fires for ALL browsers by default, unless you
turn the JS off in your settings at Administer > Site configuration > Nice
menus (admin/build/nice_menus). If you had "Enable IE support" checked under
older versions of NM, then the new JS will be on by default. If it was
unchecked in your older version, then the update will turn JS off for you by
default. If you turn JS off on the site (or a visitor comes without JS
enabled), IE6 will no longer get the dropdown effect, but all other browsers
will fall back to CSS-only dropdowns.

The menu-$menuid ID has been changed to a CLASS to avoid invalid HTML when
displaying the multiple menus which use the same menu ID. If you have custom
CSS that depends on the menu ID then you need to change it to a class. For
  #menu-3 {color: #ff0};
would need to be changed to
  .menu-3 {color: #ff0};

IE-Specific Class removed
The legacy "ie-over" class which was added for IE compatibility in the past
has been replaced with a generic, non-browser-specific, "over" class since
this is used by Superfish and should be general.


I'm unfamiliar with theming and it would be appreciated if you please update ubuntu theme to match the new changes of nice menu

or advise me how to do it and I'll be grateful for you.

Revision history for this message
Launchpad Janitor (janitor) said :

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Mohammad (hyperzahranism) said :

I'm still waiting for an answer

Revision history for this message
Michael Lustfield (michaellustfield) said :

There is no need for this question to remain open as it has been converted to a bug report.

Revision history for this message
Mohammad (hyperzahranism) said :

I'm sorry I didn't know that till I opened this question again. Thanks

Can you help with this problem?

Provide an answer of your own, or ask Mohammad for more information if necessary.

To post a message you must log in.