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

    So, I've had a site that I upgraded to 2.6.5 that has had Gallery for years. Now, with the hack attack, I've upgraded the CMS and Gallery to 1.7.1. The problem is that, while the thumbnails do show up within the gallery control panel, they no longer appear on the site itself. Nothing else has changed, as far as I know. The gallery is currently set up like this:

    1. Chunk named gallery_call that adds the images to the page itself. It includes the following code:

    <div id="gallery_images">
    [[!Gallery? &album=`1` &thumbTpl=`galItemThumb__thickbox` &rowTpl=`galAlbumRowTpl`]]
    </div><!-- gallery_images -->


    2. Chunk named galItemThumb__thickbox containing this:

    <div class="[[+cls]]">
        <a href="[[+image_absolute]]" title="[[+name]]" rel="portfolio" class="thickbox">
    
    <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+description]]" />
        </a>
    </div>


    3. Chunk named galAlbumRowTpl containing this:

    <li[[+cls:notempty=` class="[[+cls]]"`]]><a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+id]]`]]">[[+showName:notempty=`[[+name]]`]]</a></li>


    4. All Gallery-related directories are 755.

    5. Cleared core > cache a zillion times.

    6. PHP currently set to 5.6. Not sure if 7.0 would help here, though.

    Can anyone spot anything I did wrong or suggest anywhere/anything I should check into? This is stumping me.

    Thank you in advance.

    This question has been answered by waizen. See the first response.

    [ed. note: waizen last edited this post 5 years, 8 months ago.]
      • 36582
      • 463 Posts
      Anything in the error log? Were you previously running an older PHP version?
        Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
        • 38783
        • 571 Posts
        What version of Gallery was installed before?

        You Tpl uses galItemThumb__thickbox. Does thickbox rely on any .js files that are no longer present?

        The installation instructions for 1.7.1 (https://modx.com/extras/package/gallery) mention quite a few things that are necessary before upgrading...

        Note: Make sure to backup your Gallery files in the location in the 'gallery.files_path' System Setting before upgrading, as this update moves gallery file storage to an album-centric storage method.

        Note: Input Options for the GalleryAlbumList TV type only work for Revolution 2.1.0-rc2 and later.

        Note: When moving servers with a Gallery installation, you may need to edit these System Settings:

        gallery.core_path
        gallery.assets_path
        gallery.files_path
        gallery.assets_url
        gallery.files_url
          If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

          email: [email protected] | website: https://andytough.com
          • 16430
          • 217 Posts
          I have the same issue. Any solution yet?
          Image on site links to core/cache/img/xxx.jpg - but there is no such image.. is this path correct? I upgraded from 1.7.0 to 1.7.1
            • 16430
            • 217 Posts
            Quote from: kudykam at Aug 07, 2018, 08:55 AM
            I have the same issue. Any solution yet?
            Image on site links to core/cache/img/xxx.jpg - but there is no such image.. is this path correct? I upgraded from 1.7.0 to 1.7.1

            Found the problem:
            I enable .htaccess as recommended for safety reason and therefore browser could not access images in core/cache/img....
            I had to delete htaccess
              • 31902
              • 342 Posts
              Quote from: kudykam at Aug 07, 2018, 10:14 AM

              Found the problem:
              I enable .htaccess as recommended for safety reason and therefore browser could not access images in core/cache/img....
              I had to delete htaccess

              So, now you don't have an .htaccess file on your site? Did I understand that right?
              • discuss.answer
                • 31902
                • 342 Posts
                Revisited this issue after having to go on to other matters for a while. It's working now. All I did was...once again (had done this at least once already before)...completely uninstall Gallery (take it out completely) and reinstall it. Why it worked this time, I don't know. Core/cache had been cleared umpteen times, at times completely removing the cache directory and having the system rebuild it. Clearing cache through the control panel had also been cleared many times. The only thing we did differently, which I'm guessing is not responsible for the fix, was to up the memory limit. But, who knows?
                  • 33238
                  • 388 Posts
                  Quote from: waizen at Aug 17, 2018, 06:00 PM
                  Revisited this issue after having to go on to other matters for a while. It's working now. All I did was...once again (had done this at least once already before)...completely uninstall Gallery (take it out completely) and reinstall it. Why it worked this time, I don't know. Core/cache had been cleared umpteen times, at times completely removing the cache directory and having the system rebuild it. Clearing cache through the control panel had also been cleared many times. The only thing we did differently, which I'm guessing is not responsible for the fix, was to up the memory limit. But, who knows?

                  You save me mate, thanks.
                    --
                    ysanmiguel.com