Menu
SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Error al clickar un documento subido

Error al clickar un documento subido 6 days 5 hours ago #74109

  • cjfadilla
  • cjfadilla's Avatar
  • Offline
  • New Member
  • Posts: 12
  • Karma: 0
Hola he subido un documento (un word) y cuando le doy click para verlo me sale este error:
Fatal error: Uncaught Error: Call to undefined function mime_content_type() in F:\SuiteCRM\download.php:182 Stack trace: #0 F:\SuiteCRM\include\MVC\Controller\SugarController.php(1020): require_once() #1 F:\SuiteCRM\include\MVC\Controller\SugarController.php(468): SugarController->handleEntryPoint() #2 F:\SuiteCRM\include\MVC\Controller\SugarController.php(373): SugarController->process() #3 F:\SuiteCRM\include\MVC\SugarApplication.php(113): SugarController->execute() #4 F:\SuiteCRM\index.php(52): SugarApplication->execute() #5 {main} thrown in F:\SuiteCRM\download.php on line 182

Alguien sabe que puede ser.
en el download.php en la línea 182 es como que no encuentra el código relacionado al tipo de archivo
// Fix for issue 1506 and issue 1304 : IE11 and Microsoft Edge cannot display generic 'application/octet-stream' (which is defined as "arbitrary binary data" in RFC 2046).
$mime_type = mime_content_type($local_location);
if ($mime_type == null || $mime_type == '') {
$mime_type = 'application/octet-stream';

Si alguien me puede ayudar se los agradezco.
The administrator has disabled public write access.

Error al clickar un documento subido 5 days 14 hours ago #74132

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 8246
  • Thank you received: 1265
  • Karma: 298

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

Error al clickar un documento subido 1 day 7 hours ago #74286

  • cjfadilla
  • cjfadilla's Avatar
  • Offline
  • New Member
  • Posts: 12
  • Karma: 0
Hi. Resolved!!

Deleted these lines

// Fix for issue 1506 and issue 1304 : IE11 and Microsoft Edge cannot display generic 'application/octet-stream' (which is defined as "arbitrary binary data" in RFC 2046).
$mime_type = mime_content_type($local_location);
if ($mime_type == null || $mime_type == '') {
$mime_type = 'application/octet-stream';
}

and let this one

$mime_type = 'application/octet-stream';

now it's working

Thanks
The administrator has disabled public write access.
Moderators: disytel
Time to create page: 0.062 seconds
Powered by Kunena Forum