Notice: Module not found in memory. This could indicate that the module is in need of upgrade or that there are other problems in /var/www/html/cmsadmin/moduleinterface.php on line 109
Anyone know what this means?
Here is my defaultadmin code:
Code: Select all
$files = opendir("/var/www/html/uploads/images/imagerotator");
$db = &$gCms->GetDb();
echo $this->CreateFormStart($id, 'save_admin_prefs', $returnid);
echo '<table width="550" border="0" cellspacing="0" cellpadding="0"><tr>
<th>Filename</th>
<th>Alt Tag</th>
<th>Link</th>
<th>Display Order</th>
</tr>';
while(($file = readdir($files)) !== false) {
if(($file != ".") && ($file != "..") && (strpos($file, "thumb_") === false)) {
$sql = "SELECT * FROM " . cms_db_prefix()."module_sir_images WHERE filename = '$file' ORDER BY sortorder;";
$dbresult =& $db->Execute($sql);
if($dbresult) {
$row = $dbresult->FetchRow();
echo '<tr>
<td><input type="hidden" name="id[]" value="'.$row['alt'].'" /><input type="hidden" name="filename[]" value="'.$file.'" /><img src="/uploads/images/imagerotator/'.$file.'" height="50" /><br />'.$file.'</td>
<td><input type="text" name="alt[]" value="'.$row['alt'].'" /></td>
<td><input type="text" name="link[]" value="'.$row['link'].'" /></td>
<td><input type="text" name="sortorder[]" value="'.$row['sortorder'].'" /></td>
</tr>';
} else {
echo '<tr>
<td><input type="hidden" name="id[]" value="0" /><input type="hidden" name="filename[]" value="'.$file.'" /><img src="/uploads/images/imagerotator/'.$file.'" height="50" /><br />'.$file.'</td>
<td><input type="text" name="alt[]" value="" /></td>
<td><input type="text" name="link[]" value="" /></td>
<td><input type="text" name="sortorder[]" value="" /></td>
</tr>';
}
}
}
echo '<tr><td colspan="4"><br />';
echo $this->CreateInputSubmit($id, 'submit', 'Save');
echo'</td></tr></table>';
echo $this->CreateFormEnd();
John