Mautic Community Forums

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

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

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