1
i find any bug or fix or wrong code in XOOPS 2.0.13.1
POST COMMENT:if member post comment.
xoops phpdebug show this error message in redirect page
[Xoops]: Use of undefined constant XOOPS_SYSTEM_COMMENT - assumed 'XOOPS_SYSTEM_COMMENT' in file E:\w\DATACENTER\www\z\include\comment_post.php line 170 $comment = $comment_handler->create();
$comment->setVar('com_created', time());
$comment->setVar('com_pid', $com_pid);
$comment->setVar('com_itemid', $com_itemid);
$comment->setVar('com_rootid', $com_rootid);
$comment->setVar('com_ip', xoops_getenv('REMOTE_ADDR'));
if (is_object($xoopsUser)) {
$sysperm_handler =& xoops_gethandler('groupperm');
[b]line 170 [u] if ($xoopsUser->isAdmin($com_modid) || $sysperm_handler->checkRight('system_admin', XOOPS_SYSTEM_COMMENT, $xoopsUser->getGroups())) { [/u][/b]
$comment->setVar('com_status', XOOPS_COMMENT_ACTIVE);
$add_userpost = true;
$call_approvefunc = true;
$call_updatefunc = true;
// RMV-NOTIFY
$notify_event = 'comment';
} else {
if sender admin no problem and error mesage !
***********
NOT EXITS STORY:if selected story does not exist XOOPS phpdebug show this error in redirect page
Warning [PHP]: Invalid argument supplied for foreach() in file E:\w\DATACENTER\www\z\class\xoopsstory.php line 194 function makeStory($array)
{
[b]line 194 [u] foreach ( $array as $key=>$value ){ [/u][/b]
$this->$key = $value;
}
}
I'm using "XOOPS 2.0.13.1" on win server and apache, mysql.
thanks for interesting/helping...