After adding MuchoMenu and also when I want to add item I get this warning:

warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'muchomenu_overview_title' not found or invalid function name in C:\wamp\www\includes\menu.inc on line 507.

Comments

dgastudio’s picture

Notice: Undefined index: animation_effect in muchomenu_edit_menu() (line 213 of /home/u2911/domains/*****/sites/all/modules/muchomenu/includes/admin.inc).
Notice: Undefined index: animation_speed in muchomenu_edit_menu_submit() (line 257 of /home/u2911/domains/*****/sites/all/modules/muchomenu/includes/admin.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 6707 of /home/u2911/domains/*****/includes/common.inc).

nairsanal’s picture

even i get this same error

warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'muchomenu_overview_title' not found or invalid function name in C:\wamp\www\includes\menu.inc on line 507.

maybe thats the reason why the drop down content is not showing when i hover it on the menus.

Dxxxs’s picture

and I also have this error: (
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'muchomenu_overview_title' was given in /var/www/*****/includes/menu.inc on line 508.

hanskuiters’s picture

I also get this error message. Drop downs are working fine, so I think it has nothing to do with this error. I did update jQuery to make the drop down work in IE.

solomojo’s picture

Same error here. I really want to use this module so whatever I can do to help fix the errors please let me know. I am running into several issues with it.

robinmofo’s picture

I'm also looking at this module to replace a custom integration of a megamenu plugin.

There are a couple of notices/warnings that I've updated (can provide patch if author msgs me).

If you want to fix yourself, its very easy:

1) When passing by reference, you don't need to return anything - and if you return something it must be initialized (typo imo).
includes/data.inc
Line 204 comment out:
return $has_children;

2) Before assigning values, check the value exists.
includes/admin.inc
Line 324 change this:
$form['menu'][$key] = array('#type' => 'value', '#value' => $item[$key]);
to:
if(isset($item[$key])) {
$form['menu'][$key] = array('#type' => 'value', '#value' => $item[$key]);
}

3) includes/admin.inc
For some reason, the animation_speed is commented out of the form around line 190, reenable it.

4) and finally move the whole "muchomenu_overview_title" on line 35 in includes/admin.inc into the muchomenu.module file. This is because all drupal hooks need to be present in the .module file as other inc files are not auto-included.

As for "Wrong datatype for second argument in drupal_write_record()" I do not get this error so cannot fix it.

I AM NOT THE AUTHOR OR CONTRIBUTER FOR THIS MODULE
I just did this quick so I can evaluate it.. If I find more fixes, I'll update this post... however I'm thinking of choosing another module such as "Menu MiniPanels"... although I like Giga menu's use of HoverIntent (which I installed recently)

** edit **
I found more 'animation_speed' notices..
Change line 186 and 197 in includes/admin.inc from:
'#default_value' => $menu['animation_effect'],
to:
'#default_value' => isset($menu['animation_effect']) ? $menu['animation_effect'] : '' ,

I also had to change line 76 of muchosmenu.js, from:
var itemPosition = item.position();
to:
var itemPosition = item.offset();
My theme (a 960grid) didn't seem to like position(), kept returning 0.

hanskuiters’s picture

Nice work @frobinrobin. Applied your patches and no warnings anymore.

robinmofo’s picture

I've no idea why I didn't provide a patch (probably really busy)... but do reckon you can do that capono?
I ended up using menu_minipanels as we have a lot of panels content already, so all my changes are now lost :(

The module author has a few contributions and posted a comment about 8 weeks ago so he's around :)

hanskuiters’s picture

Don't know yet how to make patches, and at this moment no time to dig into it. So maybe the module author takes care of it.

vishakha1204’s picture

Hey frobinrobin, You are simply great........... The changes you told worked really great for me..........
Thank You so much..................