Ergebnis 1 bis 4 von 4

Thema: [pageimage] Bild wird nicht mehr angezeigt

  1. #1
    Contao-Fan Avatar von Flaschenzug
    Registriert seit
    08.07.2010.
    Ort
    Berlin
    Beiträge
    312

    Standard [pageimage] Bild wird nicht mehr angezeigt

    Hallo Leute,

    seit kurzem wird auf meiner Seite das Headerbild (pageimage Erweiterung) nicht mehr angezeigt.
    Mir ist allerdings nicht klar, wieso das so ist.

    Das Bild wird mit den vorgegebenen Größen in Contao (3.4) angepasst, das hat bisher auch geklappt.

    Irgend jemand ein ähnliches Problem gehabt oder eine Idee woran es liegen könnte?
    Danke schonmal.

    Anbei noch die Details:

    V: Contao 3.4

    Ausgabe durch show template vars:
    Code:
    Array
    (
        [id] => 185
        [pid] => n�2!�u��F`n>
        [tstamp] => 1419593128
        [type] => file
        [path] => files/studium-innsbruck/layout/header/uni-foto.jpg
        [extension] => jpg
        [hash] => 5bf393d8812061a3c106e2745dbaf2ee
        [found] => 1
        [name] => uni-foto.jpg
        [meta] => a:1:{s:2:"de";a:3:{s:5:"title";s:0:"";s:4:"link";s:0:"";s:7:"caption";s:0:"";}}
        [uuid] => �������F`n>
        [importantPartX] => 0
        [importantPartY] => 0
        [importantPartWidth] => 0
        [importantPartHeight] => 0
        [alt] => 
        [imageUrl] => 
        [caption] => 
        [src] => assets/images/d/uni-foto-a11672ed.jpg
        [size] =>  width="1170" height="300"
        [style] => 
        [class] => mod_pageImage
        [cssID] => 
        [inColumn] => header
        [headline] => 
        [hl] => h1
    )
    Quelltext Ausgabe:
    Code:
    <div class="mod_pageImage block">
      <figure class="image_container"> <img></figure>
      <div class="breadcrumb-bg hidden-xs"></div>
    </div>
    Der Template sieht wie folgt aus:
    Code:
    <!-- indexer::stop -->
    <div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
    <?php if ($this->headline): ?>
     <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
    <?php endif; ?>
    
    <figure class="image_container"><?php if($this->hasLink): ?><a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?>"><?php endif; ?>
     <?php $this->insert('picture_default', $this->picture); ?>
    <?php if($this->hasLink): ?></a><?php endif; ?></figure>
     
     <div class="breadcrumb-bg hidden-xs">
      <div class="container">{{insert_module::120}}</div>
     </div>
     
    </div>
    <!-- indexer::continue -->

  2. #2
    Contao-Fan Avatar von Flaschenzug
    Registriert seit
    08.07.2010.
    Ort
    Berlin
    Beiträge
    312

    Standard

    Ok, die error.log hat nach dem Leeren das hier ausgeworfen:

    Code:
    [15-Feb-2015 12:47:55 Europe/Berlin] 
    PHP Warning: array_walk() expects parameter 1 to be array, null given in /www/htdocs/pages/studiumIBK/contao/system/modules/bootstrap-templates/templates/generic/picture_default.html5 on line 10
    #0 [internal function]: __error(2, 'array_walk() ex...', '/www/htdocs/w01...', 10, Array)
    #1 /www/htdocs/pages/studiumIBK/contao/system/modules/bootstrap-templates/templates/generic/picture_default.html5(10): array_walk(NULL, Object(Closure))
    #2 /www/htdocs/pages/studiumIBK/contao/system/modules/core/library/Contao/BaseTemplate.php(92): include('/www/htdocs/w01...')
    #3 /www/htdocs/pages/studiumIBK/contao/system/modules/core/library/Contao/Template.php(242): Contao\BaseTemplate->parse()
    #4 /www/htdocs/pages/studiumIBK/contao/system/modules/core/classes/FrontendTemplate.php(46): Contao\Template->parse()
    #5 /www/htdocs/pages/studiumIBK/contao/system/modules/core/library/Contao/BaseTemplate.php(284): Contao\FrontendTemplate->parse()
    #6 /www/htdocs/pages/studiumIBK/contao/templates/studium-innsbruck/mod_pageimage.html5(9): Contao\BaseTemplate->insert('picture_default', NULL)
    #7 /www/htdocs/pages/studiumIBK/contao/system/modules/core/library/Contao/BaseTemplate.php(92): include('/www/htdocs/w01...')
    #8 /www/htdocs/pages/studiumIBK/contao/system/modules/core/library/Contao/Template.php(242): Contao\BaseTemplate->parse()
    #9 /www/htdocs/pages/studiumIBK/contao/system/modules/core/classes/FrontendTemplate.php(46): Contao\Template->parse()
    #10 /www/htdocs/pages/studiumIBK/contao/system/modules/core/modules/Module.php(187): Contao\FrontendTemplate->parse()
    #11 /www/htdocs/pages/studiumIBK/contao/system/modules/pageimage/ModulePageImage.php(38): Contao\Module->generate()
    #12 /www/htdocs/pages/studiumIBK/contao/system/modules/core/library/Contao/Controller.php(314): ModulePageImage->generate()
    #13 /www/htdocs/pages/studiumIBK/contao/system/modules/core/pages/PageRegular.php(138): Contao\Controller::getFrontendModule(Object(Contao\ModuleModel), 'header')
    #14 /www/htdocs/pages/studiumIBK/contao/system/modules/core/controllers/FrontendIndex.php(253): Contao\PageRegular->generate(Object(Contao\PageModel), true)
    #15 /www/htdocs/pages/studiumIBK/contao/index.php(22): Contao\FrontendIndex->run()
    #16 {main}
    Aber wirklich weiter helfen tut mir das auch nicht.

  3. #3
    Contao-Nutzer Avatar von Monique Hahnefeld
    Registriert seit
    22.11.2011.
    Ort
    Berlin
    Beiträge
    173

    Standard

    picture_default.html5 on line 10
    ->was steht im Template "picture_default.html5" ?
    Curiosity killed the cat

  4. #4
    Contao-Fan Avatar von Flaschenzug
    Registriert seit
    08.07.2010.
    Ort
    Berlin
    Beiträge
    312

    Standard

    Also ich habe zwei Dinge angepasst (und es lief ja auch schon richtig...)

    1. Template:
    Code:
    <div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
    <?php if ($this->headline): ?>
     <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
    <?php endif; ?>
    
    <figure class="image_container"><?php if($this->hasLink): ?><a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?>"><?php endif; ?>
     <?php $this->insert('picture_default', $this->picture); ?>
    <?php if($this->hasLink): ?></a><?php endif; ?></figure>
     
    </div>

    2. ModulePageimage.php nach Zeile 77:
    Code:
    $picture = \Picture::create($arrImage['path'], $this->imgSize)->getTemplateData();
    $picture['alt'] = specialchars($arrImage['alt']);
    $this->Template->picture = $picture;
    -> https://community.contao.org/de/show...l=1#post352548

Aktive Benutzer

Aktive Benutzer

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

Lesezeichen

Lesezeichen

Berechtigungen

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