# Import Contacts CSV Error : passthru() disabled for security reasons in FIleBInaryMimeTypeGuesser

**URL:** <https://forum.mautic.org/t/import-contacts-csv-error-passthru-disabled-for-security-reasons-in-filebinarymimetypeguesser/7804>\
**Category:** Product Support\
**Created:** [March 6, 2017, 2:16am UTC](https://forum.mautic.org/t/import-contacts-csv-error-passthru-disabled-for-security-reasons-in-filebinarymimetypeguesser/7804 "2017-03-06T02:16:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [March 6, 2017, 2:16am UTC](https://forum.mautic.org/t/import-contacts-csv-error-passthru-disabled-for-security-reasons-in-filebinarymimetypeguesser/7804/1 "2017-03-06T02:16:09Z")

</div>

I just upgraded from 1.41 to 2.6.1. Everything else seems to be working, but I just went to import some contacts for the first time since the upgrade and got the following error:  
  
  
  
_Invalid file type null. Use a file that matches of of the following mime types: “text/csv”, “text/plain”._  
  
  
  
Thinking that maybe my new file was corrupted, I then went back to try importing last weeks file again. This is one that imported successfully prior to the upgrade but it also failed with the same error.  
  
  
  
In the log, I get this message:  
  
  
  
_[2017-03-06 12:49:48] mautic.WARNING: PHP Warning - passthru() has been disabled for security reasons - in file /home/mgroves/public\_html/code-partners.com/ma/vendor/symfony/http-foundation/File/MimeType/FileBinaryMimeTypeGuesser.php - at line 71 [] []_  
  
  
  
I’ve tried removing passthru from the disabled\_functions setting in php.ini but I still get the same error.  
  
  
  
Any thoughts?  
  
  
  
Cheers  
  
Malcolm

---

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [March 6, 2017, 2:16am UTC](https://forum.mautic.org/t/import-contacts-csv-error-passthru-disabled-for-security-reasons-in-filebinarymimetypeguesser/7804/2 "2017-03-06T02:16:09Z")

</div>

I just upgraded from 1.41 to 2.6.1. Everything else seems to be working, but I just went to import some contacts for the first time since the upgrade and got the following error:

Invalid file type null. Use a file that matches of of the following mime types: “text/csv”, “text/plain”.

Thinking that maybe my new file was corrupted, I then went back to try importing last weeks file again. This is one that imported successfully prior to the upgrade but it also failed with the same error.

In the log, I get this message:

[2017-03-06 12:49:48] mautic.WARNING: PHP Warning - passthru() has been disabled for security reasons - in file /home/mgroves/public\_html/code-partners.com/ma/vendor/symfony/http-foundation/File/MimeType/FileBinaryMimeTypeGuesser.php - at line 71 [] []

I’ve tried removing passthru from the disabled\_functions setting in php.ini but I still get the same error.

Any thoughts?

Cheers  
Malcolm
