Using a fresh install of Version 7.8.3 Sugar Version 6.5.24 (Build 509)
Steps to reproduce:
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 .
I remove the file by clicking in Edit and Remove button. Seems like nothing happens, but it will remove the avatar file even so.
It could be simply a permissions problem (specifically, permissions configuration in config.php which applies to new folders and files in some SuiteCRM features)
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:
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.
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.