Update 2.7.7 to 2.8.8 > Problems with Gallery Thumbnails

Hello Community,

I like to update an ModX installation in order to have an actual PHP activated.
I updated version 2.7.7 to 2.8.8. and installed the actual versions of the used extras before, as there were only Updates for Formit / Gallery and MIGX.

And here is my issue > after updating the Gallery from 1.7.1 to 2.0.4 and then installing the update 2.8.8. of ModX ssems to break the Thumbnails for my Gallery.

As I am not deep into ModX I really have no idea where to search. I checked the paths, etc. The pictures are there, shown correctly, “only” the Thumbnail is not willing.

Is there an idea for me where I can search and find the “switch”? Thanks in advance.

Regards, Marco.

Are you talking about the thumbnails on the front-end of the ones shown in the MODX manager (when managing the galleries)?
Do other thumbnails (e.g. for image TVs) still work?

What paths did you check?
The original images should be stored in assets/gallery/<gallery_id>/.
The thumbnails are cached in assets/components/gallery/cache/.

Hello,

Thanks for your fast reaction.

I am talking about the Thumbnails for the frontend. There are only the placeholders, clicking on it presents the desired picture.

Yes, the pictures are in the path > assets/gallery/<gallery_id>/ and in the path of the cache are a lot of the smaller Thumbnails.

After updating to 2.0.4 even in the backend (the manager for the gallery) the pictures are no longer available. It seems not to be the update of ModX, “only” the Gallery.

So the src attribute of this image tag (<img>) should be something like this:

/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=100&h=100&zc=1&far=C&q=90&src=....jpg

What happens if you try to request this URL directly?
Is there an error message in the response?
When you open the developer tools in the browser, are there any errors in the “console” tab?
Are there (related) error messages in the MODX error log?

The link looks like this and it produces an error trying to reach it:

/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=190&h=238&zc=1&far=C&q=100&src=%2Fassets%2Fgallery%2F1%2F7.jpg

There are no errors or hints in the developer tools. The problem is that the site was created a lot of years ago and I am not sure what the origin creator did finally … :wink:

What kind of error? Is there an error message?

(I assume you did add your domain to the URL? → https://www.yourdomain.com/assets/components/gallery/connector.php?...)


Gallery is also an old extra and nothing about the image paths or the connector has changed in the newer versions. (The point of Gallery version 2 was mainly to make the extra work on MODX 3 as well.) So I see no reason why this wouldn’t work after the update.

Hello,

I finally will stop that search as I don´t expect to find the solution on a short term. It is only for presentation purpose, perhaps I will create a static site if necessary.

What I finally tried was to update from 2.7.7 to 2.8.8 without updating the gallery before, but this shows the same result. I will stay on 2.8.8 and desired PHP 8.3, that´s it.

Thanks again for your support. Regards, Marco.