Hi All,
Setup:
I’ve installed SuiteCRM Version 7.11.20
That runs on Apache 2.4.48
With Php 7.3.28
On windows 10
I tried and succeeded adding a logo.
The file is in the default …/SuiteCRM/upload/
When I try to add a document to a contact for example, It fails with the below error:
(uploading 44kb jpeg file)
Notice : Undefined index: allowed_preview in C:\Apache24\htdocs\SuiteCRM\modules\Documents\Document.php on line 281
Warning : in_array() expects parameter 2 to be array, null given in C:\Apache24\htdocs\SuiteCRM\modules\Documents\Document.php on line 281
This is the line that fails:
The same happens to any type of file I try uploading, and for various sizes…
I cannot view the uploaded file, nor download. I get the below error:
Notice : Undefined index: allowed_preview in C:\Apache24\htdocs\SuiteCRM\modules\Documents\Document.php on line 281
Warning : in_array() expects parameter 2 to be array, null given in C:\Apache24\htdocs\SuiteCRM\modules\Documents\Document.php on line 281
Fatal error : Uncaught Error: Call to undefined function mime_content_type() in C:\Apache24\htdocs\SuiteCRM\download.php:198 Stack trace: #0 C:\Apache24\htdocs\SuiteCRM\include\MVC\Controller\SugarController.php(1029): require_once() #1 C:\Apache24\htdocs\SuiteCRM\include\MVC\Controller\SugarController.php(477): SugarController->handleEntryPoint() #2 C:\Apache24\htdocs\SuiteCRM\include\MVC\Controller\SugarController.php(373): SugarController->process() #3 C:\Apache24\htdocs\SuiteCRM\include\MVC\SugarApplication.php(113): SugarController->execute() #4 C:\Apache24\htdocs\SuiteCRM\index.php(52): SugarApplication->execute() #5 {main} thrown in C:\Apache24\htdocs\SuiteCRM\download.php on line 198
(Thanks in advance for any help here!)