1
indream
ERROR [Xoops]: Undefined ...
  • 2005/5/30 10:16

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


hi
i am use a XOOPS 2.10 stable but i see this error messages on php debug mode :

this error code
http://www.site.com/modules/tellafriend/index.php?target_uri=http%3A%2F%2Fwww.site.com%2Fmodules%2Fnews%2Farticle.php%3Fstoryid%3D17&subject=

ERROR [Xoops]: Undefined indexPATH in file C:webhomevhostssite.comhttpdocsmodulestellafriendincludegtickets.php line 41


this interesting code [error line is bold and underline]
// create a token
        
list( $usec $sec ) = explode" " microtime() ) ;
[
b][u]        $token crypt$salt $usec $_SERVER['PATH'] . $sec ) ;[/b][/u]
        
$this->_latest_token $token ;

        if( empty( 
$_SESSION['XOOPS_G_STUBS'] ) ) $_SESSION['XOOPS_G_STUBS'] = array() ;

        
// limit max stubs 10
        
if( sizeof$_SESSION['XOOPS_G_STUBS'] ) > 10 ) {
            
$_SESSION['XOOPS_G_STUBS'] = array_slice$_SESSION['XOOPS_G_STUBS'] , -10 ) ;
        }




and

this error code
http://www.site.com/banners.php
ERROR [Xoops]: Undefined variablexoopsUser in file http://www.site.com/header.php line 68


this interesting code [error line is bold and underline]
function bannerstats($login$pass)
{
    global 
$xoopsDB$xoopsConfig$xoopsLogger;
    if (
$login == "" || $pass == "") {
        
redirect_header("banners.php",2);
        exit();
    }
    
$result $xoopsDB->query(sprintf("SELECT cid, name, passwd FROM %s WHERE login=%s"$xoopsDB->prefix("bannerclient"), $xoopsDB->quoteString($login)));
    list(
$cid$name$passwd) = $xoopsDB->fetchRow($result);
        if ( 
$pass==$passwd ) {
            include 
"header.php";
            echo 
"
                         .b_td {color: #ffffff; background-color: #2F5376; padding: 3px; text-align: center;}
                  
            Current Active Banners for 
$name
            
                ID
                Imp. Made
                Imp. Total
                Imp. Left
                Clicks
                % Clicks
                Functions"
;
[
b][u]            $result $xoopsDB->query("select bid, imptotal, impmade, clicks, date from ".$xoopsDB->prefix("banner")." where cid=$cid");[/b][/u]
            while ( list(
$bid$imptotal$impmade$clicks$date) = $xoopsDB->fetchRow($result) ) {
                if ( 
$impmade == ) {
                    
$percent 0;
                } else {
                    
$percent substr(100 $clicks $impmade05);
                }
                if ( 
$imptotal == ) {
                    
$left "Unlimited";
                } else {
                    
$left $imptotal-$impmade;
                }
                echo 
"$bid
                
$impmade
                
$imptotal
                
$left
                
$clicks
                
$percent%
                $login&pass=$pass&cid=$cid&bid=$bid&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-mail Stats";
            }
            echo 
"
Following are your running Banners in ".$xoopsConfig['sitename'].
"
;
            
$result $xoopsDB->query("select bid, imageurl, clickurl, htmlbanner, htmlcode from ".$xoopsDB->prefix("banner")." where cid=$cid");
            while ( list(
$bid$imageurl$clickurl,$htmlbanner$htmlcode) = $xoopsDB->fetchRow($result) ) {
                
$numrows $xoopsDB->getRowsNum($result);
                if (
$numrows>1) {
                    echo 
"";
                }
                if (!empty(
$htmlbanner) && !empty($htmlcode)){
                    echo 
$myts->displayTarea($htmlcode);
                }else{
                    if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
                        echo 
"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,40,0"; width="468" height="60">";
                        
echo "$imageurl" />";
                        echo 
"";
                        echo 
"$imageurl" quality='high' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="468" height="60">";
                        
echo "";
                        echo 
"";
                    } else {
                        echo 
"$imageurl' border='1' alt='' />";
                    }
                }
                echo
"Banner ID: $bid
                Send $login&cid=$cid&bid=$bid&pass=$pass&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-Mail Stats for this Banner";
                if (!
$htmlbanner){
                    
$clickurl htmlspecialchars($clickurlENT_QUOTES);
                    echo 
"This Banner points to $clickurl'>this URL
                    
                    Change URL: $clickurl' />
                    $login' />
                    $bid' />
                    $pass' />
                    $cid' />
                    "
;
                }
            }



where is problem ?

thanks for help

Login

Who's Online

169 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

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

Latest GitHub Commits