mokraemer hat geschrieben: ↑Fr 6. Jul 2018, 14:57
nee, ein JS Fehler kann das nicht sein.
Hast du denn überhaupt die Fehlerbehandlung an? Solltest du auch an lassen. Beim Aufruf der Seite dürfte der Fehler dann geloggt werden.
Ja ist an.
Der meldet noch einen anderen komischen Fehler zu folgendem Code (Soll ich das in die BB Eintagen? Attribute gibt es bei ifFieldEmpty gar nicht)
Code: Alles auswählen
<we:ifFieldEmpty name="Kursfoto" type="img"><we:img name="plazhalter" id="168" thumbnail="600" />
<we:else />
<we:field type="img" name="Kursfoto" thumbnail="600" />
</we:ifFieldEmpty>
Fehlermeldung.
Code: Alles auswählen
ID: 4
--------------------------------------------------------------------------------
Type: User warning
--------------------------------------------------------------------------------
Function: errorHandler
--------------------------------------------------------------------------------
File:
--------------------------------------------------------------------------------
Line: 0
--------------------------------------------------------------------------------
Text: Das Attribut `match` im Tag <we:ifFieldEmpty> darf nicht fehlen oder leer sein!
---------------------------------------------------
Vorlage:
---------------------------------------------------
--------------------------------------------------------------------------------
Backtrace: #0 we_error_handler::errorHandler called at [:]
#1 t_e called at [webEdition/we/include/we_tag.inc.php:308]
#2 parseError called at [webEdition/we/include/we_tag.inc.php:323]
#3 attributFehltError called at [webEdition/we/include/we_tags/we_tag_ifFieldEmpty.inc.php:24]
#4 we_tag_ifFieldEmpty called at [webEdition/we/include/we_tag.inc.php:146]
#5 we_tag called at [webEdition/we/templates/kurs-liste.php:95]
#6 include(DOCUMENT_ROOT/webEdition/we/templates/kurs-liste.php) called at [webEdition/we/include/we_showDocument.inc.php:46]
#7 require(DOCUMENT_ROOT/webEdition/we/include/we_showDocument.inc.php) called at [angebot/index.php:10]
--------------------------------------------------------------------------------
Date: 2018-07-06 11:05:13
--------------------------------------------------------------------------------
Source-Code: webEdition/we/include/we_tag.inc.php:
307: function parseError($text, $extra = ''){
308: t_e('warning', html_entity_decode($text, ENT_QUOTES, $GLOBALS['we']['Charset']['Backend']), g_l('weClass', '[template]') . ': ' . we_tag_tagParser::$curFile, $extra);
309: return '<b>' . g_l('parser', '[error_in_template]') . ':</b>' . $text . "<br/>\n" . g_l('weClass', '[template]') . ': ' . we_tag_tagParser::$curFile;
310: }
311:
312: function attributFehltError($attribs, $attrs, $tag, $canBeEmpty = false){
----------------------------------------------------------
webEdition/we/include/we_tag.inc.php:
322: } elseif(!isset($attribs[$attr]) || $attribs[$attr] === ''){
323: return parseError(sprintf(g_l('parser', '[attrib_missing]'), $attr, $tag));
324: }
325: }
326: return '';
327: }
----------------------------------------------------------
webEdition/we/include/we_tags/we_tag_ifFieldEmpty.inc.php:
23: function we_tag_ifFieldEmpty($attribs){
24: if(attributFehltError($attribs, 'match', __FUNCTION__) && ($foo = attributFehltError($attribs, 'name', __FUNCTION__))){
25: echo $foo;
26: return false;
27: }
28: $type = weTag_getAttribute('type', $attribs, '', we_base_request::STRING);
----------------------------------------------------------
webEdition/we/include/we_tag.inc.php:
145: default:
146: $foo = $fn($attribs, $content, $internal);
147: $GLOBALS['we_editmode'] = $edMerk;
148: return we_tag_tag::redirectTagOutput($foo, $nameTo, $to);
149: }
150: }
----------------------------------------------------------
webEdition/we/templates/kurs-liste.php:
94: <a href="<?= we_tag('field',['type'=>'text','triggerid'=>138,'name'=>'wedoc_Path']); ?>">
95: <div class="kursbild"><?php if(we_tag('ifFieldEmpty',['name'=>'Kursfoto','type'=>'img'])){
96: echo we_tag('img',['name'=>'plazhalter','id'=>168,'thumbnail'=>600]);
97: }else{
98: echo we_tag('field',['type'=>'img','name'=>'Kursfoto','thumbnail'=>600]);
99: } ?>
----------------------------------------------------------
webEdition/we/include/we_showDocument.inc.php:
45: if(($GLOBALS['we']['inc'] = we_base_showDocument::prePareInc($GLOBALS['we_doc']))){
46: include($GLOBALS['we']['inc']);
47: we_base_showDocument::postInc($GLOBALS['we_doc']);
48:
49: return;
50: }
----------------------------------------------------------
angebot/index.php:
9: } else {
10: require($_SERVER['DOCUMENT_ROOT'] . '/webEdition/we/include/we_showDocument.inc.php');
11: }
----------------------------------------------------------
--------------------------------------------------------------------------------
WE-Info:
Version: 8.0.3.1
SVN: 15479 trunk nightly h0
--------------------------------------------------------------------------------