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 
"<style type='text/css'>
                         .b_td {color: #ffffff; background-color: #2F5376; padding: 3px; text-align: center;}
                  </style>
            <h4 style='text-align:center;'><b>Current Active Banners for 
$name</b><br /></h4>
            <table width='100%' border='0'><tr>
                <td class='b_td'><b>ID</b></td>
                <td class='b_td'><b>Imp. Made</b></td>
                <td class='b_td'><b>Imp. Total</b></td>
                <td class='b_td'><b>Imp. Left</b></td>
                <td class='b_td'><b>Clicks</b></td>
                <td class='b_td'><b>% Clicks</b></td>
                <td class='b_td'><b>Functions</b></td><tr>"
;
[
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 
"<td align='center'>$bid</td>
                <td align='center'>
$impmade</td>
                <td align='center'>
$imptotal</td>
                <td align='center'>
$left</td>
                <td align='center'>
$clicks</td>
                <td align='center'>
$percent%</td>
                <td align='center'><a href='banners.php?op=EmailStats&login=
$login&pass=$pass&cid=$cid&bid=$bid&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-mail Stats</a></td><tr>";
            }
            echo 
"</table><br /><br /><div>Following are your running Banners in ".$xoopsConfig['sitename']." </div><br /><br />";
            
$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 
"<hr /><br />";
                }
                if (!empty(
$htmlbanner) && !empty($htmlcode)){
                    echo 
$myts->displayTarea($htmlcode);
                }else{
                    if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
                        echo 
"<object classid="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 "<param name=movie value="$imageurl" />";
                        echo 
"<param name=quality value='high' />";
                        echo 
"<embed src="$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 "</embed>";
                        echo 
"</object>";
                    } else {
                        echo 
"<img src='$imageurl' border='1' alt='' />";
                    }
                }
                echo
"Banner ID: $bid<br />
                Send <a href='banners.php?op=EmailStats&login=
$login&cid=$cid&bid=$bid&pass=$pass&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-Mail Stats</a> for this Banner<br />";
                if (!
$htmlbanner){
                    
$clickurl htmlspecialchars($clickurlENT_QUOTES);
                    echo 
"This Banner points to <a href='$clickurl'>this URL</a><br />
                    <form action='banners.php' method='post'>
                    Change URL: <input class='textbox' type='text' name='url' size='50' maxlength='200' value='
$clickurl' />
                    <input class='textbox' type='hidden' name='login' value='
$login' />
                    <input class='textbox' type='hidden' name='bid' value='
$bid' />
                    <input class='textbox' type='hidden' name='pass' value='
$pass' />
                    <input class='textbox' type='hidden' name='cid' value='
$cid' />
                    <input type='submit' name='op' value='Change' /></form>"
;
                }
            }



where is problem ?

thanks for help

Login

Who's Online

138 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

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

Latest GitHub Commits