Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 21.04.08, 10:57
Forum Stammgast
 
Registriert seit: 02.01.08
Alter: 28
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(:sad: 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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 24.04.08, 19:49
Benutzerbild von einpraegsam.net
Forum Stammgast
 
Registriert seit: 11.05.07
Ort: Nürnberg
Alter: 29
Beiträge: 426

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
__________________
einpraegsam.net alias wunschtacho

Powermail :: Einprägsam :: Xing Profil :: Wunschtacho :: JustPowder :: conject
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 25.04.08, 08:40
Forum Stammgast
 
Registriert seit: 02.01.08
Alter: 28
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.08 um 08:46 Uhr).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 25.04.08, 08:46
Benutzerbild von einpraegsam.net
Forum Stammgast
 
Registriert seit: 11.05.07
Ort: Nürnberg
Alter: 29
Beiträge: 426

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...
__________________
einpraegsam.net alias wunschtacho

Powermail :: Einprägsam :: Xing Profil :: Wunschtacho :: JustPowder :: conject
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 25.04.08, 08:49
Forum Stammgast
 
Registriert seit: 02.01.08
Alter: 28
Beiträge: 114

sorry, hatte grade den Post geändert... war nur ein Fehler mit nem Leerzeichen am Ende...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Gelöst Spamshield wir dnicht automatisch in Powermail eingebunden Fuchur wt_spamshield 5 13.06.08 10:38
Fehlermeldung ... olli© tt_products 11 19.04.08 10:09
Spamshield: Spam falsch erkannt und dann? mic_jan wt_spamshield 5 23.03.08 10:09
Spamshield: Abschicken dauert lange und dann Spam :-| mic_jan wt_spamshield 3 11.03.08 11:40
Fehlermeldung bossalexej TYPO3 3.x Fragen und Probleme 0 06.02.06 22:24


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:37 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0