7
This is not a comments issue.
Line 339 tries to access a module object, but apparently that object is not instantiated, i.e. it is not found in a query fetching all modules (active or inactive) which have comments.
Is Stockquotes your own module? Have you experimented with comments? e.g. enabled comments in the module, added a few comments and then removed the comments support from the module again?
Alternatively, try this:
//Original code
$mid = $comments[$i]->getVar('com_modid');
$com['module'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/">'.$modules[$mid]->getVar('name').'</a>';
//Replace with
$mid = $comments[$i]->getVar('com_modid');
if (!isset($modules[$mid])) {
$offending_module =& $module_handler->get($mid);
echo "This is the offending module: ".$offending_module->dirname();
}
$com['module'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/">'.$modules[$mid]->getVar('name').'</a>';
This should display the name of the "bad" module