I'm still getting the following error when trying to submit news:
Notice [PHP]: Undefined index: anonpost in file modules/news/include/storyform.inc.php line 39In the news module general configuration, I have both "Allow anonymous users to post news articles?" and "Allow anonymous post in comments?" set to NO, and "Auto approve news stories without admin intervention?" set to YES.
In the modules/news/include/storyform.inc.php, if I comment out the following lines (where the
// appears in the code), the error goes away:
if ($xoopsUser)
//{
//if ($xoopsConfig['anonpost'] == 1) {
//$noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname);
//$noname_checkbox->addOption(1, _POSTANON);
//$option_tray->addElement($noname_checkbox);
//}
$notify_checkbox = new XoopsFormCheckBox('', 'notifypub', $notifypub);
$notify_checkbox->addOption(1, _NW_NOTIFYPUBLISH);
$option_tray->addElement($notify_checkbox);
if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) {
$nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml);
$nohtml_checkbox->addOption(1, _DISABLEHTML);
$option_tray->addElement($nohtml_checkbox);
}
//}
...But, this has no effect on the error that appears when trying to submit news.
I've even tried uninstalling and deleting (from my site directory) the News 1.16 module (included with XOOPS 2.0.7.3), and replacing it with the News 1.17 module (included with XOOPS 2.0.9.2) but even doing this had no effect...the error still appears and I cannot submit news.
In addition, upgrading from 1.16 to 1.17 had no effect on the above PHP error showing---even that still shows when running PHP Debug.
What is going on here? Is there another version of the News module available and will it fix the problems here? I need help with this ASAP. Can someone help me figure this out?
Edit: I just installed the News 2 module and have the same problems...