[Typo3-dev] Extension - Debug - displayed double

andreas stein andre01 at typotemp.com
Mon Aug 15 18:10:31 CEST 2005


Hi!

Hope you have a hint for my bug search!

I don't figure out the flew.
http://www.wohnplus.info/54.0.html

Not only the debug code is displayed twice. If I have a databaseUpdate - 
there will be a double entry.
Why there is a loop! Hope you have a hint. I'm now on searching in the 
extension endlessly.

Where else besides the main extension script (in this case 
class.tx_cwtamihot_pi1.php) should i search for this?

Andreas

p.s.
Reduced String now:

require_once(PATH_tslib."class.tslib_pibase.php");

class tx_cwtamihot_pi1 extends tslib_pibase {
    var $prefixId = "tx_cwtamihot_pi1";  // Same as class name
    var $scriptRelPath = "pi1/class.tx_cwtamihot_pi1.php"; // Path to this 
script relative to the extension dir.
    var $extKey = "cwt_amihot"; // The extension key.
    var $debug = true;

 function main($content,$conf) {
                $this -> conf = $conf;
                $this -> pi_setPiVarDefaults();
                $this -> pi_loadLL();

                if ($this -> debug) {
                    t3lib_div :: print_array($conf);
                }
                $GLOBALS["TSFE"] -> set_no_cache();
                if ($this -> cObj -> data["pages"] != null) {
                    $this -> sysfolderList = $this -> cObj -> data["pages"];
                }
                else {
                    $this -> sysfolderList = $GLOBALS['TSFE'] -> id;
                }
                $CODE = $this -> cObj -> data['select_key'];
                if ($this -> debug) {
                    echo "<br>CODE:  $CODE";
                }

                $cObj = t3lib_div :: makeInstance("tslib_cObj");
                $this -> cObj = $cObj;

  $getView = $this->piVars["getView"];

  if ($GLOBALS['TSFE'] -> loginUser != 1) {
                                $content .= "Bitte einloggen";
                }
                    elseif ($CODE == "MYAMIHOT"){
                           $content .= "Inhalt";
                    }
  return $this->pi_wrapInBaseClass($content);
 }
}

if (defined("TYPO3_MODE") && 
$TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/cwt_amihot/pi1/class.tx_cwtamihot_pi1.php"]) 
{
 include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/cwt_amihot/pi1/class.tx_cwtamihot_pi1.php"]);}





More information about the TYPO3-dev mailing list