Errors from helper.php in server log

Errors from helper.php in server log was created by JamesMiller

Posted 7 years 5 months ago #38110
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:7 years 5 months ago by JamesMiller
Last edit: 7 years 5 months ago by JamesMiller.

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

Replied by ced1870 on topic Errors from helper.php in server log

Posted 7 years 5 months ago #38112
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

by ced1870

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

Replied by JamesMiller on topic Errors from helper.php in server log

Posted 7 years 5 months ago #38116
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.

Replied by ced1870 on topic Errors from helper.php in server log

Posted 7 years 5 months ago #38118
the latest is 2.0.20, you can try to update and tell me

Joomlack Webmaster and Developer

by ced1870

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

Replied by JamesMiller on topic Errors from helper.php in server log

Posted 7 years 5 months ago #38126
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.

Replied by ced1870 on topic Errors from helper.php in server log

Posted 7 years 5 months ago #38137
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

by ced1870

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

Time to create page: 0.667 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1018 guests and one member online