By ChrisDill on
I am using Nice Menu's on my Omega Subtheme and I got them working just fine, but I am seeing a random error, can anyone tell me if my PHP is correct? Thanks!
Error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in theme_get_registry() (line 276 of /home/content/02/10213802/html/includes/theme.inc).
For some reason Drupal.org is failing on my post with the PHP code, I will link to the .txt file which contains a copy of my PHP.
https://skydrive.live.com/redir?resid=79B086E9B32149D3!926&authkey=!AHeW...
Comments
You have four calls to theme
You have four calls to theme in the code you show. At least 1 of them have an invalid 1st argument (the theme function).
Ouch- I am not really a
Ouch- I am not really a PHP'er, and I patched that together from various forum posts. Thanks for your help, but I am unsure as to what you mean or how to fix it. Thanks again
I have not used nice menus so
I have not used nice menus so I do not know what is right or wrong about that code. But SuperFish can be configured and can be used by simply adding its blocks to the appropriate region(s).
To be honest, my needs are
To be honest, my needs are really simple- I want dropdown menu's. The reason I did it on the system main_menu was because it was already CSS'ed out. I could actually hide that menu and make a Nice Menus manu in a block and use that. Just thought that maybe I have some easy to point out PHP error (Like a missing comma), that would let me keep what I got. The current menu works perfectly, I just get an error message when I go into the admin menu...
That makes me think- maybe I just need to disable something in the admin side.
Strip it
Try stripping your php code. Just delete one "print theme" save it check for errors. Are the errors still there? Undo it, delete another "print theme". If the error disappears you know where to look. Remember to refresh multiple times, Drupal might not show the error on the first refresh.