Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Errors from helper.php in server log

More
10 years 1 month ago - 10 years 1 month ago #38110 by JamesMiller
Hi! I've encountered a problem in our servers log that says:

PHP Warning: in_array() expects parameter 2 to be array, null given in modules/mod_accordeonck/helper.php on line 170

The site produces this error hundreds of time which makes our log files enormous. Now, we can not just kill this module, a complete sites lays on it, so I need a solution for this if possible.

The lines / line nr 170 mentioned:

Code:
168: if ( $item->type == 'alias' && 169: in_array($item->params->get('aliasoptions'),$path) 170: || in_array($item->id, $path)) { 171: $item->classe .= ' active'; 172: $item->isactive = true; }

The $path :

Code:
$path = isset($active) ? $active->tree : $base->tree;;

Almost forgot to mention. According to the error log, this started to occur after the core update Joomla 3.5 -> 3.6.2

Thank you in advance!
Last edit: 10 years 1 month ago by JamesMiller.

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

More
10 years 1 month ago #38112 by ced1870
Hi
No problem, we will find a solution :)
Please tell me which version of the menu accordeon you are using
CEd

Joomlack Webmaster and Developer

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

More
10 years 1 month ago #38116 by JamesMiller
Hello ced1870!

Sure thing! Our Joomla says it runs the version 2.0.19, the date is October 2011, which is the same version number I found on this site except the date on the second is February 2016. Does it has some updates although the version number stayed the same?

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

More
10 years 1 month ago #38118 by ced1870
the latest is 2.0.20, you can try to update and tell me

Joomlack Webmaster and Developer

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

More
10 years 1 month ago #38126 by JamesMiller
Hello! Thanks, we will definitely try it. However I only found this version on the official website: mod_accordeonck_2.0.19_j30.zip. No 2.0.20 one : (

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

More
10 years 1 month ago #38137 by ced1870
please try this one attached and tell me if it fixes your problem
dl.dropboxusercontent.com/u/8539690/mod_...eonck_2.0.21_j30.zip

Joomlack Webmaster and Developer

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

Time to create page: 0.209 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 881 guests and no members online