Portal File Attachments

When I create a portal case to SuiteCRM and attach a file it looks to proceed but never makes it to SuiteCRM. Looks like it gets added as a Note but there isn’t an attachment. Any suggestions?

SuiteCRM 7.0.2 Joomla 3.2.2 Ubuntu 12.04 PHP5.3

-Nate

Hello Nate,

This could be a permissions issue. Make sure that the upload/ directory is writable by the user under which php runs.

If your run php as apache and the user is www-data here is a quick -one line command- fix for all the files and directories inside your crm root directory

first cd to e.g. /var/www/mycrmdirectory/
and then

sudo chown -R www-data:www-data ./* ;sudo find ./* -type d -exec chmod 775 '{}' + ;sudo find ./* -type f -exec chmod 664 '{}' +

You can replace the group www-data with another group that you are member of so that you can easily edit files with your user account.

P.S.: [color=#aaaaaa]If you are on a shared environment where other web applications run at the same time, maybe you should run php as fastcgi and not as an apache module.[/color]

If it is not a permissions issue, maybe you could enable display errors in php.ini to check if there is any related error that can give you a hint.

Regards,
George

Hello Nate,

This could be a permissions issue. Make sure that the upload/ directory is writable by the user under which php runs.

If your run php as apache, ‘myuser’ is your username and the apache group is www-data here is a quick -one line- fix for all the files and directories inside your crm root directory

sudo chown -R myuser:www-data ./* ;sudo find ./* -type d -exec chmod 755 '{}' + ;sudo find ./* -type f -exec chmod 644 '{}' + ; sudo chmod -R 775 cache custom modules themes data upload config_override.php

P.S.1: [color=#aaaaaa]If you are on a shared environment where other web applications run at the same time, maybe you should run php as fastcgi and not as an apache module.[/color]

If it is not a permissions issue, maybe you could enable display errors in php.ini to check if there is any related error that can give you a hint.

Regards,
George

Yeah the permissions are configured correctly in SuiteCRM. Joomla as well for that matter. Still unable to attach a file to a portal created case. Does yours work? I do see a few PHP Notices and Warnings but nothing that points to a misconfig on my end.

[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined variable: res in /var/www/SuiteCRMURL/modules/Users/authentication/SugarAuthenticate/SugarAuthenticate.php on line 101
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: User::$default_team in /var/www/SuiteCRMURL/service/v4/SugarWebServiceImplv4.php on line 168
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: wl_list_max_entries_per_page in /var/www/SuiteCRMURL/service/v4/SugarWebServiceImplv4.php on line 177
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: wl_list_max_entries_per_subpanel in /var/www/SuiteCRMURL/service/v4/SugarWebServiceImplv4.php on line 178
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 197
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 209
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 275
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 197
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 209
[Fri Feb 14 10:40:54 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: contact_id in /var/www/SuiteCRMURL/service/core/SoapHelperWebService.php on line 473
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Warning:  Missing argument 6 for SugarWebServiceImpl::set_relationship() in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 250
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Warning:  Missing argument 7 for SugarWebServiceImpl::set_relationship() in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 250
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined variable: name_value_list in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 263
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 275
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/SuiteCRMURL/modules/EmailTemplates/EmailTemplate.php on line 562
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/SuiteCRMURL/modules/EmailTemplates/EmailTemplate.php on line 562
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/SuiteCRMURL/modules/EmailTemplates/EmailTemplate.php on line 562
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/SuiteCRMURL/modules/EmailTemplates/EmailTemplate.php on line 562
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: Contact::$event_status_name in /var/www/SuiteCRMURL/modules/EmailTemplates/EmailTemplate.php on line 562
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: Contact::$event_accept_status in /var/www/SuiteCRMURL/modules/EmailTemplates/EmailTemplate.php on line 562
[Fri Feb 14 10:40:55 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 275
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Warning:  Missing argument 6 for SugarWebServiceImpl::set_relationship() in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 250
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Warning:  Missing argument 7 for SugarWebServiceImpl::set_relationship() in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 250
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined variable: name_value_list in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 263
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: module in /var/www/SuiteCRMURL/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 275
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Warning:  Missing argument 6 for SugarWebServiceImpl::set_relationship() in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 250
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Warning:  Missing argument 7 for SugarWebServiceImpl::set_relationship() in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 250
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined variable: name_value_list in /var/www/SuiteCRMURL/service/core/SugarWebServiceImpl.php on line 263
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined variable: res in /var/www/SuiteCRMURL/modules/Users/authentication/SugarAuthenticate/SugarAuthenticate.php on line 101
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined property: User::$default_team in /var/www/SuiteCRMURL/service/v4/SugarWebServiceImplv4.php on line 168
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: wl_list_max_entries_per_page in /var/www/SuiteCRMURL/service/v4/SugarWebServiceImplv4.php on line 177
[Fri Feb 14 10:40:56 2014] [error] [client WorkstationIP] PHP Notice:  Undefined index: wl_list_max_entries_per_subpanel in /var/www/SuiteCRMURL/service/v4/SugarWebServiceImplv4.php on line 178

Figured out what was wrong. My SuiteCRM is accessed using HTTPS ssl cert. If Joomla is configured to accordingly the added attachment will fail every time. Allowed http access through virtual host config and set Joomla to use HTTP and it works like a charm. Times are still broken per the Bug found in our other thread. Can someone else please confirm that this is in fact a Bug?

-Nate