Ergebnis 1 bis 5 von 5

Thema: Spamshield: Fehlermeldung

      
  1. #1
    Forum Stammgast
    Registriert seit
    02.01.2008
    Alter
    33
    Beiträge
    114

    Spamshield: Fehlermeldung

    Hallo,

    beim Abschicken eines durch Spamshield geschützten Formulars erhalte ich folgende Warnungen:

    Warning: preg_match_all() expects parameter 2 to be string, array given in /html/typo3conf/ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php on line 21

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /html/typo3conf/ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php:21) in /html/typo3conf/ext/powermail/pi1/class.tx_powermail_submit.php on line 350

    Warning: Cannot modify header information - headers already sent by (output started at /html/typo3conf/ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php:21) in /html/typo3conf/ext/powermail/pi1/class.tx_powermail_submit.php on line 282

    Warning: Cannot modify header information - headers already sent by (output started at /html/typo3conf/ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php:21) in /html/typo3conf/ext/powermail/pi1/class.tx_powermail_submit.php on line 283

    Warning: Cannot modify header information - headers already sent by (output started at /html/typo3conf/ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php:21) in /typo3_src-4.1.2/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2907

    wie bekomme ich die weg??? Und kommt mir jetzt nicht mit error_reporting ausschalten....

  2. #2
    Forum Crack Avatar von einpraegsam.net
    Registriert seit
    11.05.2007
    Ort
    München
    Alter
    34
    Beiträge
    1.146
    Erstmal sorry für die verspätete Rückmeldung - aber dein Beitrag ist mir entgangen...

    Da hast du wohl einen Bug entdeckt :)


    Versuche mal den Code der class.tx_wtspamshield_method_httpcheck.php mit dem Code auszutauschen:
    PHP-Code:
    <?php
    require_once(PATH_tslib.'class.tslib_pibase.php');

    class 
    tx_wtspamshield_method_httpcheck extends tslib_pibase {

        var 
    $extKey 'wt_spamshield'// Extension key of current extension
        
    var $searchstring 'http://'// searchstring
        
        // Function nameCheck() to disable the same first- and lastname
        
    function httpCheck($array) {
            
    $this->conf unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]); // Get backend configuration of this extension
            
            
    if(isset($this->conf) && isset($array)) { // Only if Backendconfiguration exists in localconf
                
    if($this->conf['usehttpCheck'] > 0) { // Only if enabled in backendconfiguration (disabled if 0)
                    
                    
    $no_of_errors 0// init $errors
                    
    $error 'It\'s not allowed to use more than '.$this->conf['usehttpCheck'].' links within this form<br />';
                    
                    
                    foreach (
    $array as $key => $value) { // One loop for every array entry
                        
    if (!is_array($value)) { // first level
                            
                            
    $result = array(); // init $result
                            
    preg_match_all('@'.$this->searchstring.'@'$value$result); // give me all http:// of current string
                            
    if(isset($result[0])) $no_of_errors += count($result[0]); // add numbers of http:// to $errors
                            
                        
    } else { // second level
                            
    if (!is_array($value2)) { // second level
                            
                                
    foreach ($array[$key] as $key2 => $value2 ) { // One loop for every array entry
                                    
                                    
    $result = array(); // init $result
                                    
    preg_match_all('@'.$this->searchstring.'@'$value2$result); // give me all http:// of current string
                                    
    if(isset($result[0])) $no_of_errors += count($result[0]); // add numbers of http:// to $errors
                                    
                                
    }
                                
                            }
                        } 
                    
                    }
                    
                    if(
    $no_of_errors $this->conf['usehttpCheck']) return $error// return message if more than allowed http enters
                    
                
    }
            }
        }

    }
    if (
    defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php']) {
        include_once (
    $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/wt_spamshield/lib/class.tx_wtspamshield_method_httpcheck.php']);
    }
    ?>
    Einzige Forderung meinerseits für diesen Fix: Gib bescheid, ob es funzt

  3. #3
    Forum Stammgast
    Registriert seit
    02.01.2008
    Alter
    33
    Beiträge
    114
    Gute Idee, das mit dem Second-Level-Array, war auch meine Idee, habs nur nicht hinbekommen.... Funzt jetzt super....
    Geändert von Seraph1980 (25.04.2008 um 08:46 Uhr)

  4. #4
    Forum Crack Avatar von einpraegsam.net
    Registriert seit
    11.05.2007
    Ort
    München
    Alter
    34
    Beiträge
    1.146
    Schau dir den Quelltext der Seite mal an - steht da noch was über dieser Meldung? Gibt es einen Link unter dem man sich das mal anschauen kann?

    Die letzte Fehlermeldung kann kommen, wenn irgend eine Erweiterung ein debug - output nutzt...

  5. #5
    Forum Stammgast
    Registriert seit
    02.01.2008
    Alter
    33
    Beiträge
    114
    sorry, hatte grade den Post geändert... war nur ein Fehler mit nem Leerzeichen am Ende...

 

 

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Facebook Kommentare

Ähnliche Themen

  1. Spamshield wir dnicht automatisch in Powermail eingebunden
    Von Fuchur im Forum Formular Anti Spam Extensions
    Antworten: 5
    Letzter Beitrag: 13.06.2008, 10:38
  2. Fehlermeldung ...
    Von olli© im Forum tt_products
    Antworten: 11
    Letzter Beitrag: 19.04.2008, 10:09
  3. Spamshield: Spam falsch erkannt und dann?
    Von mic_jan im Forum Formular Anti Spam Extensions
    Antworten: 5
    Letzter Beitrag: 23.03.2008, 10:09
  4. Spamshield: Abschicken dauert lange und dann Spam :-|
    Von mic_jan im Forum Formular Anti Spam Extensions
    Antworten: 3
    Letzter Beitrag: 11.03.2008, 11:40
  5. Fehlermeldung
    Von bossalexej im Forum TYPO3 3.x Fragen und Probleme
    Antworten: 0
    Letzter Beitrag: 06.02.2006, 22:24

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74