Does anyone have any ideas about this error I am receiving in my logs? I have since disabled the duplicate section of the spam module. This does not seem to be causing any ill effects on the site.
[Tue Jul 14 18:01:34 2009] [error] [client ???.???.???.???] PHP Notice:
Undefined variable: index in
/www/example.com/public_html/modules/spam/filters/duplicate/duplic
ate.module on line 74, referer:
http://www.example.com/image/tid/66
---------------
Line 74 of duplicate.module is as follows.
---------------
/**
* The arg() function may not be availble early in the bootstrap process,
* so we reimplement it here.
*/
function _duplicate_arg() {
static $arguments, $q;
if (empty($arguments) || $q != $_GET['q']) {
$arguments = explode('/', $_GET['q']);
$q = $_GET['q'];
}
if (isset($arguments[$index])) { <----LINE 74------<
return $arguments[$index];
}
}
Comments
Well it exactly what is says.
Well it exactly what is says. I am not familiar with this module but from looking at that function $index is not defined or set anywhere, then it is supposed to index something in a hash, but it is null and undefined. Unless it is loaded global somewhere, I don't see where it would be defined.