Unable to Replace logo with .png extension

When I am trying to replace the logo system says “The file format of the image must be JPEG or PNG. Upload a new file with the file extension .jpg or .png.”

The file extension is as desired, but unable to upload

Kindly help

Even though the message says that, there might be a different problem causing the upload to fail.

Do you see many “undefined” labels throughout your system? This would indicate you haven’t set the file ownerships/permissions correctly, which would cause a bunch of different problems, including inability to upload logo.

Hi

I’ve also got this problem, i’m using the Bitnami Suitecrm stack version 7.11.10 on local window10 pc, but i don’t see an ‘undefined’ labels in the system. Could it be another reason?

John

Something might be disagreeable about the format of the file. The extension isn’t the only determinant of the format, there are other properties defining size, compression, etc.

Try getting the current logo, changing just a small detail in a program that doesn’t change the file format, and feeding it back into SuiteCRM. See if that works.

EDIT: oh, and there was a bug where it couldn’t have spaces in the filename, but I do think that is solved already

Thanks, I’ve given that a go, but it hasn’t worked. I downloaded the original logo, re-coloured it and uploaded. Same message :frowning:

I also tried uploading a pic for user profile, they uploaded fine?

Any other ideas :-)?

John

Any clues in your logs?

Maybe, but they don’t mean a lot to me lol

Fri Nov 22 02:30:35 2019 [260][1][FATAL] Email address save error
Fri Nov 22 02:31:07 2019 [260][1][FATAL] Email address save error
Fri Nov 22 02:31:28 2019 [260][1][FATAL] Email address save error
Fri Nov 22 02:32:32 2019 [260][1][FATAL] Email address save error
Fri Nov 22 02:32:51 2019 [260][1][FATAL] Undefined index: module
Fri Nov 22 02:32:51 2019 [260][1][FATAL] Invalid or missing SubPanelDefinition property: subpanel_name
Fri Nov 22 02:32:51 2019 [260][1][FATAL] Failed to load original or custom subpanel data for eapm in
Fri Nov 22 02:34:50 2019 [260][1][FATAL] Email address save error
Fri Nov 22 06:42:27 2019 [13176][1][FATAL] Mysqli_query failed.
Fri Nov 22 06:42:27 2019 [13176][1][FATAL] Query Failed: DESCRIBE versions: MySQL error 1146: Table ‘bitnami_suitecrm.versions’ doesn’t exist
Fri Nov 22 06:42:27 2019 [13176][1][FATAL] Mysqli_query failed.
Fri Nov 22 06:42:27 2019 [13176][1][FATAL] Query Failed: SHOW INDEX FROM versions: MySQL error 1146: Table ‘bitnami_suitecrm.versions’ doesn’t exist
Fri Nov 22 06:42:27 2019 [13176][1][FATAL] Mysqli_query failed.
Fri Nov 22 06:42:27 2019 [13176][1][FATAL] Query Failed: select * from versions: MySQL error 1146: Table ‘bitnami_suitecrm.versions’ doesn’t exist

You might want to increase your log level, that is only showing FATALs. You set this in Admin / System Settings. But then please focus on errors at the time of uploading the logo, or displaying it. All the rest (and there will be a lot) doesn’t matter here. When checking logs you need to spend some time and try to focus on what might be relevant.

I just tried changing the logo on my 7.11.10 and it worked normally. All I had to do afterwards is get the image to refresh in the browser. I did this by clicking “view image” over the logo, so that the PNG appears alone in a browser tab, and there I hit Ctrl-F5.

Does your file name have a space?
You should try remove spaces and upload again.

Thanks for you help folks, but i’m getting no where with this. The png has no space in its name, is of the same size and dimensions of the original logo but won’t load.

I’ve reviewed various logs and can find no reference to the action .

Its not a show stopper so i think as this is a test system i’ll just live with it.

Thanks again for you help

John

Open /include/utils.php

Edit function verify_uploaded_image(…

Change:

$supportedExtensions = array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg');

To:

$supportedExtensions = array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'tmp' => 'tmp');

Please tell me if it works.

Hopefully this will be fixed in the next version.

You’re an absolute star, that worked :slight_smile:

Thanks you for your help !

1 Like

For reference

https://github.com/salesagility/SuiteCRM/pull/8326