Willkommen, Gast ( Anmelden | Registrierung )     [ Hilfe | Mitglieder | Suche ]

 
Reply to this topicStart new topic
> Content Lister: PHP 5.4 Warning: Illegal string offset
Taturo
Beitrag Wed. 14. August 2013, 11:26
Beitrag #1


Advanced Member
*******

Gruppe: AdvancedMembers
Beiträge: 328
Mitglied seit: 29.08.2006
Wohnort: Konstanz / Bodensee
Mitglieds-Nr.: 216



Hallo,

das Modul ContentLister 00.05.02 gibt unter PHP 5.4 folgende Warnung aus:
QUELLTEXT
Warning: Illegal string offset 'htmltags' in C:\xampp54\htdocs\linie4\backend\API\GUI\class.SF_GUI_ContentStylerHTML.php on line 185

Warning: Illegal string offset 'nl2br' in C:\xampp54\htdocs\linie4\backend\API\GUI\class.SF_GUI_ContentStylerHTML.php on line 188

Warning: Illegal string offset 'transform' in C:\xampp54\htdocs\linie4\backend\API\GUI\class.SF_GUI_ContentStylerHTML.php on line 193

Warning: Illegal string offset 'htmltags' in C:\xampp54\htdocs\linie4\backend\API\GUI\class.SF_GUI_ContentStylerHTML.php on line 200

Warning: Illegal string offset 'styleclass' in C:\xampp54\htdocs\linie4\backend\API\GUI\class.SF_GUI_ContentStylerHTML.php on line 212

Warning: Illegal string offset 'styleid' in C:\xampp54\htdocs\linie4\backend\API\GUI\class.SF_GUI_ContentStylerHTML.php on line 212

.......


Es betrifft diese Zeilen aus der backend/API/GUI/class.SF_GUI_ContentStylerHTML.php Zeilen 185 bis 217:

QUELLTEXT
    // HTML Tags maskieren falls htmltags=convert
        if($type_config['htmltags'] == 'convert' || empty($type_config['htmltags']) || ($type_config['htmltags'] != 'strip' && $type_config['htmltags'] != 'allow')) $mod_content = htmlspecialchars($mod_content, ENT_COMPAT, 'UTF-8');
    
        // nl2br
        if ($type_config['nl2br'] == 'true' || empty($type_config['nl2br'])) {
            $mod_content = nl2br($mod_content);
        }
    
        // bbcode
        if ($type_config['transform'] == 'bbcode') {
            include_once($cms_path.'inc/class.core_bbcode.php');
            if (!is_object($core_bbcode)) $core_bbcode = new core_bbcode();
            $mod_content = $core_bbcode->parse_bbcode($mod_content);
        }
        // alle Tags entfernen
        if($type_config['htmltags'] == 'strip') {
            // wenn nl2br aktiviert, <br>- tags duerfen nicht gestrippt werden
            if ($type_config['nl2br'] == 'true' || empty($type_config['nl2br'])) {
              $mod_content = str_replace('<br />', '{cms_temp_break}', $mod_content);
              $mod_content = strip_tags($mod_content);
              $mod_content = str_replace('{cms_temp_break}', '<br />', $mod_content);
            } else $mod_content = strip_tags($mod_content);
        }
    
        $mod = $mod_content;
    
        // Style
        $css = $this->_getStyle($type_config['styleclass'], $type_config['styleid'], $type_config['styledb']);
        $css['type'] = trim($css['type']);
        if (!empty($css['type'])) $mod = '<span '.$css['fullstyle'].'>'.$mod.'</span>';
        
        return $mod;
    }



Die gleiche Fehlermeldung taucht auch beim ContentWalker Modul auf.

Gruss, Andreas
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Besucher lesen dieses Thema (Gäste: 1 | Anonyme Besucher: 0)
0 Mitglieder:

 



RSS Vereinfachte Darstellung Aktuelles Datum: 28.3.24 - 11:31

Sefrengo ist ein eingetragenes Markenzeichen und urheberrechtlich geschützt.
Copyright 2009 Design & Daten, Alle Rechte vorbehalten.