User Profile Photo Not Showing

When uploading a user profile photo in Suitecrm 8.8, the photo doesn’t not display. The photo uploads correctly to the upload directory but it is missing the png extension. Example: 4654c8df-0014-aae6-0838-67f69c1d5c09_photo

I have tried multiple .png and .jpg photos with different dimensions. It didn’t solve the problem.

There is no problem when uploading image to ā€œCurrent Logoā€ in system settings, user interface.

Is this a bug or there is something wrong with my installation?

For profile image, it looks like an error. It is not working.

For Company Logo, the PNG format image worked for us but not JPG.

Thank you for the reply. Good to know that it’s not my installation problem.

So this still doesn’t work?

Did you try it out with PNG image?

Yeah nothing. broken image in profile

Code:

Filename is ā€œ1_photoā€ (not i_photo10) as reference and no extension

I changed it to 1_photo10 (without the extension)

Now the file name shows in profile.

It’s clickable, leads to a download but it’s an empy png

Are you trying to update the profile image? That does not work in the SuiteCRM. It will only show you the image name & if you click on it. It will download it for you in the v8.

In version 7, we could see the image in the user management, but still it will not show it in the profile icon on the top-right corner.

So, it is a bug and maybe someone already raise it on the GitHub.

1 Like

This is the error. It looks like the fix is pretty easy for someone that understands this, there’s a missing field in the USER database table

Tue Aug 12 2025 at 11:13:54 [644014][1][FATAL] Query Failed: SELECT filename name FROM users WHERE users.id= ā€˜1_photo10’: MySQL error 1054: Unknown column ā€˜filename’ in ā€˜field list’

I do not see the filename column in the database.

We have the photo column in the users table.

Maybe we need to update code for it.

The filenames ending in _photo, without any extension, are normal.

See my blog post for details.

That’s fine. We are trying to ascertain why the images won’t show and the missing field in the DB seems to point to the problem.

Tue Aug 12 2025 at 11:13:54 [644014][1][FATAL] Query Failed: SELECT filename name FROM users WHERE users.id= ā€˜1_photo10’: MySQL error 1054: Unknown column ā€˜filename’ in ā€˜field list’

Maybe the bug is the missing field, or maybe (more likely) it is a bug generating the query.

It would be helpful if you could list the ā€œsteps to reproduceā€ the bug, what specifically makes that log message appear.

After looking into further, the error first doesn’t appear in log.

However the filename in the upload directory is 1_photo

The page source is this:

img src=ā€œindex.php?entryPoint=download&id=1_photo10&type=Usersā€ style=ā€œmax-width: 200px;ā€ height=ā€œ50ā€

So it looks like it’s looking for 1_photo10

I thought I would rename the file in the upload directory to 1_photo10.

That’s when the error shows in the log.

Sat Aug 16 2025 at 22:22:04 [312833][1][FATAL] Mysqli_query failed.
Sat Aug 16 2025 at 22:22:04 [312833][1][FATAL] Query Failed: SELECT filename name FROM users WHERE users.id= ā€˜1_photo10’: MySQL error 1054: Unknown column ā€˜filename’ in ā€˜field list’

For reference, this conversation continues here

1 Like

That resolved the user profile photo. It now shows when i edit my profile. I would have thought it would also show in place of the placeholder on the top right but doesn’t, nor do I know if it’s supposed to

But that didnt resolved the product issue and I added a comment there

Thanks for that link.