Ankündigung

Einklappen
Keine Ankündigung bisher.

Fehler im Template: news_portfoliolist_v7

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Fehler im Template: news_portfoliolist_v7

    Hallo Zusammen,

    es ist scheinbar ein Fehler im Template: news_portfoliolist_v7.
    Im Log wird folgender Fehler angezeigt:
    Code:
    [2021-08-30 19:43:54] request.INFO: Matched route "tl_page.2605.root". {"route":"tl_page.2605.root","route_parameters":{" _token_check":true,"_controller":"Contao\\Frontend Index::renderPage","_scope":"frontend","_locale":" de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.2605.root"},"request_uri":" http://entwicklung.crecondeko.de/","method":"GET"} []
    [2021-08-30 19:43:54] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2021-08-30 19:43:55] request.CRITICAL: Uncaught PHP Exception ParseError: "syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)" at /homepages/37/d91337534/htdocs/contao49/templates/layout/news_portfoliolist_v7.html5 line 45 {"exception":"[object] (ParseError(code: 0): syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) at /homepages/37/d91337534/htdocs/contao49/templates/layout/news_portfoliolist_v7.html5:45)"} []
    Hier fehlt ein schließendes
    Code:
     ><?php endif; ?>
    Klicke auf die Grafik für eine vergrößerte Ansicht  Name: pct_news_portfoliolist_v7.jpg Ansichten: 0 Größe: 66,4 KB ID: 23242

    Mit dieser Korrektur funktioniert es wieder:
    Code:
    <?php // handle multiple filter values by commata seperated lists
    $arrFilterClasses = array();
    foreach(explode(',', $this->subHeadline) as $v)
    {
    $arrFilterClasses[] = 'filter_'.str_replace(array('ä','ü','ö','ß'),array ('ae','ue','oe','ss'),\Contao\StringUtil::standard ize($v));
    }
    $hasText = $this->hasText;
    ?>
    
    <div class="item block <?php echo $this->class; ?> <?php echo implode(' ', $arrFilterClasses) ?>" itemscope itemtype="http://schema.org/Article">
    <div class="item-inside">
    <div class="image image_container">
    <?php if ($hasText): ?><a href="<?php echo $this->link; ?>" <?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>" <?php if($this->target && $this->url): ?>target="_blank"<?php endif; ?>><?php endif; ?>
    <?php $this->insert('picture_default', $this->picture); ?>
    <?php if ($hasText): ?></a><?php endif; ?>
    <?php if ($this->commentCount): ?>
    <span class="comments"><?php echo $this->numberOfComments; ?></span>
    <?php endif; ?>
    </div>
    <div class="info">
    <?php if ($this->subHeadline): ?>
    <div class="subline">
    <?php echo $this->subHeadline; ?>
    </div>
    <?php endif; ?>
    <h5 class="title"><?php echo $hasText ? $this->linkHeadline : $this->newsHeadline; ?></h5>
    <?php if ($this->hasTeaser): ?>
    <div class="teaser" itemprop="description">
    <?php echo $this->teaser; ?>
    </div>
    <?php endif; ?>
    </div>
    
    <div class="item-bottom">
    <?php if ($hasText): ?>
    <?php echo $this->more; ?>
    <?php endif; ?>
    <?php if ($this->date): ?>
    <div class="date" itemprop="datePublished">
    <?php echo $this->parseDate("d", $this->timestamp);?> <?php echo $this->parseDate("M", $this->timestamp);?> <?php echo $this->parseDate("Y", $this->timestamp);?>
    </div>
    <?php endif; ?>
    </div>
    </div>
    </div>
    Contao 4.9.20
    EX 3.0.7

    Gruß
    tschero
    https://www.webdesign24.biz
Lädt...
X