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
Comment #1
dgastudio commentedNotice: 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).
Comment #2
nairsanal commentedeven 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.
Comment #3
Dxxxs commentedand 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.
Comment #4
hanskuiters commentedI 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.
Comment #5
solomojo commentedSame 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.
Comment #6
robinmofo commentedI'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.
Comment #7
hanskuiters commentedNice work @frobinrobin. Applied your patches and no warnings anymore.
Comment #8
robinmofo commentedI'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 :)
Comment #9
hanskuiters commentedDon'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.
Comment #10
vishakha1204 commentedHey frobinrobin, You are simply great........... The changes you told worked really great for me..........
Thank You so much..................