Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Closed Public Category: Technical Support / Bugs Ticket #477

Main Image and Thumbnail not showing in category or product pages

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Conversation

Olivier Buisard Staff

Hi Graeme,

it seems like I can see all pictures on the page you have provided. None seems to be missing.

Can you attach a picture of what you are seeing?

Thank you!

As far as the doc is concerned, we are having an issue with the search, we are looking into it. 

Olivier.

Olivier Buisard Staff

Ok, got what the problem was. Your overrides are not up-to-date so you may be going through issues here and there.

I fixed view_images.php of your theme.

Olivier.

Olivier Buisard Staff

I do see it. Maybe the cache?

Olivier.

graeme colston

This quite bizarre, I have cleared joomla cache, deleted browser history. Still neither myself nor the client can see the main image in category view. It is visible in product page.
Please see my screenshot.

Attachments

Screenshot 2025-10-01 at 07.48.01.png
Olivier Buisard Staff

Ok, I finally put my finger on it. I updated your template override to accomodate images that have additional parameters in the path.

 

 

Olivier.

graeme colston

Bravo, love your work.
Will this happen to more of my sites? templates are all from the same developer, should I rather request support from them if this happens again?

Olivier Buisard Staff

You are welcome!

Most likely you will find issues on overrides that were used before the update to Joomla 4, as images are handled differently in Joomla 4. So the overrides need to be updated to reflect those changes.

I have updated xxx.images.php from your graeme theme (in the site template). So if issues arise on old websites like it did on this one, just copy the content of xxx.images.php into the old sites's files and that should be enough to fix those sites as well.

Olivier.

Olivier Buisard Staff

Hello Graeme,

the problem comes from the fact that the image has spaces in the file name.

The overrides do test if the file exists on the server. However, the file name is encoded to be acessible by the browser and show. This fails the server test.

I modified the code to take into account spaces in the file name.

Olivier.