using megamenu with the i18n module in the 7 dev version gives the following error>
Fatal error: Call to undefined function i18nmenu_localize_tree() in /yoursite/sites/all/modules/megamenu/megamenu.module on line 217
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | megamenu-il8n.patch | 1.26 KB | mikefyfer |
Comments
Comment #1
Jean Gionet commentedI'm experiencing the same issue. Is there a fix or workaround for this?
Comment #2
Webqam commentedYou can try to
in megamenu.module :
change
by
And in megamenu.utilities.inc
change
by
Comment #3
ozsi commentedI'v made some changes to work megamenu module with the i18n_menu module.
I changed in the megamenu.module:
at line 46:
to:
(Because the module name changed.)
at line 213:
to:
(according http://drupal.org/node/1114010).
In the megamenu.utilities.inc at line 244:
to:
Comment #4
mattez commentedSame issue. Can anybody create a patch, please?
Comment #5
alexbk66- commentedI think that it's better (and faster) to check
if (function_exists('i18n_menu_localize_tree'))instead ofif (module_exists('i18n'))Comment #6
mikefyfer commentedHad the same issue. Making the changes in comment #3 worked for me, i attached a patch of those changes.
the main problem, as stated in #3 is that the module name changed... =/
Comment #7
webcultist commentedThe patch works for me. =)
Comment #8
mzwyssig commentedpatch #6 works for me too, thanks.
Comment #9
webadpro commentedCan this patch be push to the Dev?
Comment #10
luco commentedhey there,
I applied the patch but the error didn't go away. I think tere's still something missing.
cheers,
Luciano
Comment #11
webadpro commentedHave you tried clearing your site cache?
Comment #12
luco commentedyes, I did. now the error is
Fatal error: Call to undefined function i18n_string_translate() in (...) \sites\all\modules\i18n\i18n_menu\i18n_menu.module on line 463Comment #13
juampynr commentedReviewed.
Applies cleanly and fixes the issue.
Raised priority to critical as it breaks the site when i18n has been enabled.
Comment #14
alexbk66- commentedMay I ask a stupid question? Why need i18nmenu_localize_tree() at all?
menu_tree_check_access() in menu.inc calls _menu_link_translate() anyway. I commented out i18nmenu_localize_tree() and it still works fine!
Note: I'm still in D6 though.
Comment #15
Anonymous (not verified) commentedComment #16
Anonymous (not verified) commentedCommitted to 7.x-1.x in 5557ccf