Unable to change System Admin avatar, bug?

Hello,

Using a fresh install of Version 7.8.3 Sugar Version 6.5.24 (Build 509)

Steps to reproduce:

  1. I added a .png file, no blank spaces in its name, as a System Admin avatar. The file is not being displayed in the System Admin dashboard https://www.diigo.com/item/image/5pj5q/nu31 .
  2. I remove the file by clicking in Edit and Remove button. Seems like nothing happens, but it will remove the avatar file even so.
  3. I click in Save.
  4. Click Edit again and there is no avatar file https://www.diigo.com/item/image/5pj5q/rw4t]
  5. I add again the .png avatar, it will not display in the System Admin https://www.diigo.com/item/image/5pj5q/e7pi

Not sure, but seems like this bug seemed to be resolved before with v.7.7.4 https://github.com/salesagility/SuiteCRM/issues/502 but perhaps it is back.

Any advice is welcome.

What about this (still open) Issue?

https://github.com/salesagility/SuiteCRM/issues/2464

Does it look like your problem? There is a workaround in one of the comments… if you could try it…

If your Issue is different, please try it on this demo which allows admin access:

https://www.softaculous.com/demos/SuiteCRM

It could be simply a permissions problem (specifically, permissions configuration in config.php which applies to new folders and files in some SuiteCRM features)

1 Like

thank you.

I confirm adding the ‘tmp’ solution is not working, at least for me.

The SuiteCRM softaculous address is not working, but I logged in into https://demo.suiteondemand.com/index.php?action=Login&module=Users and tested the upload of the .png file, it is not working, please check https://www.diigo.com/item/image/5pj5q/cy82 . This should not be a file permission issue, then.

Please, could you go to https://demo.suiteondemand.com/index.php?action=Login&module=Users and try to upload a .png System Admin avatar, to check on your side? :slight_smile:

Please, let me know the results,

Rgs

IM

Sorry I don’t have much time today. I went to the demo site but it isn’t working, it’s refreshing. Will probably work again in a few minutes.

I have solved this exact problem on a shared hosting with fixing permissions on the file system and in config.php.

The system writes the file but then can’t read it.

I don’t know how these settings are made in the demo…

Apache’s .htaccess could also be affecting this.

1 Like

No problem and thank you. Which file permisions you set to the SuiteCRM file system and in config.php?

It depends on your user/group for web server. The commands below apply if that is apache:apache on your system. It could be very different, like www-data:www-data or many other things.

First apply the recommended permissions from the SuiteCRM root folder:


    sudo chown -R apache:apache .
    sudo chmod -R 755 .
    sudo chmod -R 775 cache custom modules themes data upload config_override.php 

Pay attention, some of those commands end with a space followed by a dot (" .")

Set up default permissions in config.php:


'default_permissions' =>
  array (
    'dir_mode' => 02755,
    'file_mode' => 0644,
    'user' => 'apache',
    'group' => 'apache',
  ),

Many thanks pgr. I did as above. Unfortunately it dit not resolve the avatar display issue.

What is the URL of the broken image?

https://aksert.com/stcr/index.php?entryPoint=download&id=1_photo&type=Users&time=07/23/2017%2014:00

Hi,
i have try on demo.suitecrm.com and too error.

There are too some bug when you click some link on

Regards

any ideas on how to solve this issue with the System Admin avatar?

sorry,
I have 3 instance of crm and always on Suite 7.4.x and 7.6.x and Sugar 6.16 CE :slight_smile:

And without php/apache/suitecrm.log file and version of all Operating/Php/Apache and php module… it’s hard

You can try to look on upload directory if file 1_photo exist.

thank you for your help :slight_smile:

I see there is no 1_photo file in the upload directory. So, the file was never uploaded in the first place. But its name xxx.png is displayed in the System Admin Profile at SuiteCRM.

Here you have the suiterm.log and server information is Apache/2.4.27 (cPanel) OpenSSL/1.0.2k mod_bwlimited/ CENTOS 7.3 x86_64 PHP5.6 and 7.3 available. Not sure, but I think SuiteCRM is running on PHP5.6.

suitecrm.log - there is no error listed in the last 4 hours (my time here)

Mon May 22 07:45:37 2017 [7776][-none-][FATAL] SECURITY: User authentication for aksert failed
Mon May 22 07:45:37 2017 [7776][-none-][FATAL] FAILED LOGIN:attempts[1] - aksert
Mon May 22 07:52:57 2017 [8145][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 07:52:57 2017 [8145][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 10:54:39 2017 [13739][1][FATAL] File does not exist on system: cache/themes/SuiteP/modules/Accounts/SearchForm_basic.tpl
Mon May 22 10:54:39 2017 [13739][1][FATAL] File does not exist on system: cache/themes/SuiteP/modules/Accounts/SearchFormHeader.tpl
Mon May 22 10:54:39 2017 [13739][1][FATAL] File does not exist on system: cache/themes/SuiteP/modules/Accounts/SearchFormFooter.tpl
Mon May 22 10:54:59 2017 [13751][1][FATAL] File does not exist on system: cache/themes/SuiteP/modules/Accounts/EditView.tpl
Mon May 22 12:26:12 2017 [16922][-none-][FATAL] SECURITY: User authentication for aksert failed
Mon May 22 12:26:12 2017 [16922][-none-][FATAL] FAILED LOGIN:attempts[1] - aksert
Mon May 22 12:27:16 2017 [17068][-none-][FATAL] SECURITY: User authentication for aksert failed
Mon May 22 12:27:16 2017 [17068][-none-][FATAL] FAILED LOGIN:attempts[1] - aksert
Mon May 22 16:10:36 2017 [23488][1][FATAL] A user (1) attempted to use an invalid file for the logo - upload://tmp_logo_company_upload/Logo%20170x170%20SuiteCRM.png
Mon May 22 16:11:13 2017 [23500][1][FATAL] A user (1) attempted to use an invalid file for the logo - upload://tmp_logo_company_upload/Logo%20170x170%20SuiteCRM.png
Mon May 22 16:12:03 2017 [23520][1][FATAL] A user (1) attempted to use an invalid file for the logo - upload://tmp_logo_company_upload/Logo%20170x170%20SuiteCRM.png
Mon May 22 16:13:02 2017 [23583][1][FATAL] A user (1) attempted to use an invalid file for the logo - upload://tmp_logo_company_upload/Logo%20170x170.jpg
Mon May 22 16:14:08 2017 [23614][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 16:14:08 2017 [23614][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 16:31:31 2017 [25085][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 16:31:31 2017 [25085][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 16:50:14 2017 [25847][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 16:50:14 2017 [25847][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 16:50:14 2017 [25847][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Mon May 22 17:12:40 2017 [26701][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 17:12:40 2017 [26701][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 17:12:40 2017 [26701][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Mon May 22 17:30:11 2017 [27290][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 17:30:11 2017 [27290][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 17:30:11 2017 [27290][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Mon May 22 17:30:30 2017 [27330][-none-][FATAL] SECURITY: User authentication for admin failed
Mon May 22 17:30:30 2017 [27330][-none-][FATAL] FAILED LOGIN:attempts[1] - admin
Mon May 22 17:30:44 2017 [27409][-none-][FATAL] SECURITY: User authentication for admin failed
Mon May 22 17:30:44 2017 [27409][-none-][FATAL] FAILED LOGIN:attempts[1] - admin
Mon May 22 18:36:43 2017 [30115][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Mon May 22 18:36:43 2017 [30115][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.
Mon May 22 18:36:43 2017 [30115][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Tue Jul 11 11:28:58 2017 [19154][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
Tue Jul 11 11:28:58 2017 [19154][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Tue Jul 11 11:30:17 2017 [19224][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
Tue Jul 11 11:30:17 2017 [19224][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Sat Jul 22 20:26:22 2017 [11065][1][FATAL] Exception in Controller: Utf8 compatible lower case filter needs mbstring extension to be enabled.
Sat Jul 22 20:26:49 2017 [11199][1][FATAL] Exception in Controller: Utf8 compatible lower case filter needs mbstring extension to be enabled.
Sat Jul 22 20:27:29 2017 [11244][-none-][FATAL] SECURITY: User authentication for jsobota@aksert.com failed
Sat Jul 22 20:27:29 2017 [11244][-none-][FATAL] FAILED LOGIN:attempts[1] - jsobota@aksert.com
Sat Jul 22 20:27:39 2017 [11263][-none-][FATAL] SECURITY: User authentication for jsobota@aksert.com failed
Sat Jul 22 20:27:39 2017 [11263][-none-][FATAL] FAILED LOGIN:attempts[1] - jsobota@aksert.com
Sat Jul 22 21:11:29 2017 [14888][1][FATAL] Exception in Controller: Utf8 compatible lower case filter needs mbstring extension to be enabled.
Sat Jul 22 21:13:12 2017 [15113][1][FATAL] Exception in Controller: Utf8 compatible lower case filter needs mbstring extension to be enabled.
Sat Jul 22 21:13:29 2017 [15149][1][FATAL] Exception in Controller: Utf8 compatible lower case filter needs mbstring extension to be enabled.
Sun Jul 23 08:34:40 2017 [24847][1][FATAL] Image Field : Not a Valid Image.
Sun Jul 23 08:36:52 2017 [25043][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
Sun Jul 23 08:36:52 2017 [25043][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Sun Jul 23 15:07:07 2017 [19506][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteR/modules is not a file or a dir.
Sun Jul 23 15:07:07 2017 [19506][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.

PHP Modules loaded

apache24 apr apr-devel apr-util apr-util-devel config config-runtime cpanel-tools devel documentroot libcurl libmcrypt libnghttp2 mod_bwlimited mod_cgi mod_deflate mod_expires mod_headers mod_http2 mod_mpm_prefork mod_proxy mod_proxy_fcgi mod_proxy_http mod_ruid2 mod_security2 mod_ssl mod_unique_id modsec-sdbm-util nghttp2 php-cli php-cli-lsphp php56 php56-libc-client php56-pear php56-php-bcmath php56-php-calendar php56-php-cli php56-php-common php56-php-curl php56-php-devel php56-php-fpm php56-php-ftp php56-php-gd php56-php-imap php56-php-litespeed php56-php-mbstring php56-php-mcrypt php56-php-mysqlnd php56-php-pdo php56-php-posix php56-php-sockets php56-php-xml php56-php-zip php56-runtime php70 php70-libc-client php70-pear php70-php-bcmath php70-php-calendar php70-php-cli php70-php-common php70-php-curl php70-php-devel php70-php-fpm php70-php-ftp php70-php-gd php70-php-imap php70-php-litespeed php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-pdo php70-php-posix php70-php-sockets php70-php-xml php70-php-zip php70-runtime profiles-cpanel tools

Haha :slight_smile:

Controller: Utf8 compatible lower case filter needs mbstring extension to be enabled.

mbstring module must be installed and enabled in php.ini (not sure or apache …I forget) :wink:

1 Like

Many thanks! mbstring was enabled in the server, but Off in php.in. I set it to On and restarted Apache. But, no joy, the issue persists. I believe we are close to finding the cause of this issue.

Strange: when clicking the Remove button to remove the avatar.png, it will not refresh the page. I need to refresh it manually and then the avatar.png disappears from the System Admin Profile dashboard. Not sure this could lead to the solution, but the button Remove works (deletes), but does not refresh the page.

As for mbstring I noticed a lot of additional mbstring configurations in php.ini . Do you know if I need to change any one of them in order to solve this avatar issue?

I noticed the .png avatar is now uploaded on the upload folder (previously it was not). So, this is one step better. But the image still does not display in the System Admin Profile.