Maxi Menu crashes when I go to Login Module

More
14 years 4 months ago - 14 years 4 months ago #3782 by mariom
Hello,

I have placed a Maxi Menu on my main top horizontal (position-1 in beez5). One of the menu items has subcatagories and displays correctly. However when I go to the Login Module (forget password, register,etc) the maxi menu gives me the following error:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/content/67/9128567/html/modules/mod_maximenuck/helper.php on line 144

Its repeats this warning 13 times, the number of menu elements and sub elements.

Any ideas?
Last edit: 14 years 4 months ago by mariom.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #3783 by ced1870
Hi
tested by my side, no error. Which version of maximenu do you have? can you give me the line 144 in helper.php ?
Ced

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #3785 by mariom
Hi Ced,

The code on line 144 is:

|| in_array($item->id, $path)) {

And the full error on webpage when i go to login module is:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/content/67/9128567/html/modules/mod_maximenuck/helper.php on line 144

The version is the latest posted on www.joomlack.fr

Thanks for your help in advance,

Mario

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #3786 by ced1870
can you test with
Code:
|| (is_array($path) AND in_array($item->id, $path))) {
Ced

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #3796 by mariom
Solved.

Thank you very much and you have done a great job with this menu.

Mario

Please Log in or Create an account to join the conversation.

Time to create page: 0.201 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4257 guests and no members online