We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36604
    • 268 Posts

    Hi,

    Trying to upgrade a 2.15 to 2.21 Revo, the Gallery does not work anymore (1.40, tested after upgrade to 1.5)

    Each time a call to Gallery is made here's the frontend output
    otice: Use of undefined constant gal_id - assumed 'gal_id' in /home/neotekkc/www/core/components/gallery/elements/tv/output/galleryitemSilent.php


    this is done for each row.

    here's a part of the called tpl:
    <li class="folio_item">
    <div class="cache"></div>
    [[+tv.tvgalleryitem? &toPlaceholders=`1` &thumbFar=`TL`]] 
    
    <div class="image">
       <a class="big-image" href="[[+gal_imgurl]]" title="[[+longtitle]], [[+description]]">
      <img class="[[+gal_class]]" src="/assets/components/gallery/connector.php?action=web/phpthumb&w=645&h=200&zc=1&far=TL&sx=0&sy=0&q=100&src=/assets/components/gallery/files/[[+gal_album]]/[[+gal_imgid]].png" alt="[[+description]]" />
    
    </a>

    and the Galley call itself:
    <ul id="folio_items">
    
    
    [[!getResources? &parents=`7` 
    &sortby=`menuindex`
    &sortbyAlias=``
    &sortbyEscaped=``
    &sortdir=`ASC` 
    &limit =`0` 
    &tpl=`FolioRowTpl` &tplOdd=`FolioRowTplAlt`  
    &includeContent=`1` &includeTVs=`1` &processTVs=`1`]]
    
    </ul>

    The Manager has no issue using Gallery component.

    is Gallery Revo 2.21 compatible ?
    Thank you
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      I know that Gallery 1.5+ is for 2.2 and up only, though I'm not aware of any compatibility issues for 1.4 & 2.2.

      You can try updating Gallery to the latest and see if that helps.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 36604
        • 268 Posts
        Yes, as I wrote it, I tried both 1.4 and 1.5rc1.

        and mainly there's an error on each row with no images outputed:
        Notice: Use of undefined constant gal_album - assumed 'gal_album' in /home/neotekkc/www/core/components/gallery/elements/tv/output/galleryitemSilent.php on line xxx