AnsweredAssumed Answered

Fatal error while uploading mail attachment

Question asked by Brecht Yperman on Mar 7, 2016
Latest reply on Mar 8, 2016 by Brecht Yperman

When uploading a mail attachment via REST, using a POST to /Mail/attachment, I get an error

 

Your request failed to complete.  A fatal error occurred.  Check logs for more details.

 

Checking the sugarcrm logs gives me

03/07/16 15:33:53 [4108][d189396d-752a-3e21-cc8b-55ffd1c2691d][ERROR] A PHP error occurred:

<br />

<b>Warning</b>:  copy(cache/modules/Emails/d189396d-752a-3e21-cc8b-55ffd1c2691d/7e132697-3581-12f6-9498-56dd91a21462): failed to open stream: No such file or directory in <b>C:\xampp\htdocs\sugar7610\modules\Emails\Email.php</b> on line <b>211</b><br />

 

 

03/07/16 15:33:53 [4108][d189396d-752a-3e21-cc8b-55ffd1c2691d][ERROR] An exception happened: ( 500: php_error_after_api)Your request failed to complete.  A fatal error occurred.  Check logs for more details.

The PHP log files show

[07-Mar-2016 15:33:53 Europe/Berlin] PHP Warning:  copy(cache/modules/Emails/d189396d-752a-3e21-cc8b-55ffd1c2691d/7e132697-3581-12f6-9498-56dd91a21462): failed to open stream: No such file or directory in C:\xampp\htdocs\sugar7610\modules\Emails\Email.php on line 211

Those directories indeed do not exist

 

I am using SugarCRM 7.6.1 in a XAMPP environment on Windows server 2012 R2

Outcomes