I get this warning with Spellchecker installed. I am using Enchant with Spellchecker.
I was getting a warning on line 55 when I used the 6x1 version; seems to have bumped a line after updating to the most recent dev.
I get this warning with Spellchecker installed. I am using Enchant with Spellchecker.
I was getting a warning on line 55 when I used the 6x1 version; seems to have bumped a line after updating to the most recent dev.
Comments
Comment #1
jordan8037310 commentedI'm also receiving this error:
Invalid argument supplied for foreach() in /sites/all/modules/spellchecker/spellchecker.module on line 55.Any ideas?
Comment #2
devendra.mishra commentedHi,
I have added a condition before foreach and it works for me. Now our code look like
/* load setting forms for all active engines */
if ($config = module_invoke_all('spellchecker')) {
if(sizeof($config['settings']) > 0) {
foreach ($config['settings'] as $engine => $sett) {
$items['admin/settings/spellchecker/' . $engine] = array(
'title' => $engine,
'description' => $sett['description'],
'page callback' => 'drupal_get_form',
'page arguments' => array($sett['callback']),
'access arguments' => array('administer spellchecker'),
'file' => $sett['file'],
'file path' => drupal_get_path('module', $config['module'][$engine]),
'type' => MENU_LOCAL_TASK,
);
};
}
} else {
/* If you see the error, please activate at least one spell checker engine module */
}