1
indream
! 2 bug or fix or wrong code in xoops 2.0.13.1
  • 2005/8/19 11:29

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


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...

2
indream
Re: ! 2 bug or fix or wrong code in xoops 2.0.13.1
  • 2005/8/21 14:47

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


and new

Notice [PHP]: Undefined variable: xoopsUser in file C:\web\home\vhosts\zindan.net\httpdocs\header.php line 68

// get all blocks and assign to smarty
    
$xoopsblock = new XoopsBlock();
    
$block_arr = array();
[
b]line 68[u]    if ($xoopsUser != '') {[/b][/u]
        
$xoopsTpl->assign(array('xoops_isuser' => true'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin));
        
$groups $xoopsUser->getGroups();
    } else {
        
$xoopsTpl->assign(array('xoops_isuser' => false'xoops_isadmin' => false));
        
$groups XOOPS_GROUP_ANONYMOUS;
    }
    
$toppage false;
    if (isset(
$xoopsModule) && is_object($xoopsModule)) {

Login

Who's Online

160 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits