Company logo could not be set

Hello,

having a fresh 7.3.1-suitcrm installation, setup of a custom company logo failed in:

Admin > system > choose logo

After I clicked on the choose-file-tab and selection of a file (PNG, JPG, name-chars only, no underscores …) I got the message:

‘undefined’ … ?

File-path is removed from the input field besides the choose-file-button.


I have done repair already, permissions are set to 755/775 as discussed here already.

What I am doing wrong?

Thank you for urgent help.

Regards
Frank

What is the name of the file? The CRM doesn’t like the filename having spaces or non-alphanumerical characters.

The undefined error could be due to incorrect permissions, but it sounds like you’ve set these and done the repair. It is sometimes also related to the ‘RewriteBase’ directory in the .htaccess not being the same as the name of the SuiteCRM directory.

Is there anything in the suitecrm.log?

Thanks,

Will.

Hi Will,

very urgent. Thank you …!
:slight_smile:

1.) the company-logo-filename is ok (only chars … see thread above).
2.) suitecrm.log is empty
3.) Rewrite in htaccess: We have a wordpress installed in domains (public) root directory, there is the htaccess-file. Suitecrm is present in a primary subfolder.

BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

add a trailing slash to /wp-admin

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.
.php)$ $2 [L]
RewriteRule . index.php [L]

END WordPress

Its the standard wordpress redirect block.
I could not find any dangereous Reqrite-based redirects, do you?

Kind regrads
Frank


The undefined issue I meet on a lot of situations. Most popup messages are using ‘undefined’, some table hdl-titles (admin > studio > folders …) too.

Hi Will,

could you have a look at my problem, please … I cannot solve it without specialist’s help it seems …
:slight_smile:

Thanks a lot.
Frank

Hi Will,

is there any option to assign custom logo manually?

Thanks in advance.
Frank

  1. Good news:

I fixed the ‘undefined’ issue (it was due to permissions: 755 to all folders, 775 to selected cache, custom, …config_overwrite.php as discussed everywhre solved this problem).

  1. Bad news:

Company logo cannot be uploaded in Admin > System settings > company logo …

After selecting the file from folder-tree … I got a js-message:

However:
i) I tried xxx.png and xxx.jpg
ii) Config.php is fine (nothing has been changed. No additional file formats are excluded fro upload there …)
iii) /upload/.htaccess contains
order deny, allow
deny from all
[allow from all] ** added by me, but does not change anything
iv) /upload/tmp_logo_company_upload does not contain a .htaccess-file

It seems to be a file-format-issue … the error-message ís generated by some javascript-form-check-tool … but I do not believe, there is the reason hidden …

What can I do?

Thanks
Frank

One workaround solution, which works:

replace /themes/default/images/company_logo.png

by your custom company logo, naming it ‘company_logo.png’

/themes/default/images/company_logo.png.

Frank

1 Like