# Import Contact: Unable to read the imported csv file.

**URL:** <https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624>\
**Category:** Product Support\
**Created:** [October 4, 2017, 10:02am UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624 "2017-10-04T10:02:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [October 4, 2017, 10:02am UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/1 "2017-10-04T10:02:45Z")

</div>

Hi guys need help on importing contacts, got this error: Unable to read the imported csv file.  
  
I tried to another Mautic installation and it works. But importing contact doesn’t work on one of my Mautic sites.  
  
  
  
From the log, I saw this:  
  
[2017-10-04 17:58:22] mautic.WARNING: PHP Warning - mkdir(): No such file or directory - in file /mnt/data/home/93270.cloudwaysapps.com/qvcqubudnv/public\_html/app/bundles/CoreBundle/Helper/PathsHelper.php - at line 120 [] []  
  
  
  
So how to solve it? Thanks for your help guys.

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [October 4, 2017, 10:02am UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/2 "2017-10-04T10:02:45Z")

</div>

Hi guys need help on importing contacts, got this error: Unable to read the imported csv file.  
I tried to another Mautic installation and it works. But importing contact doesn’t work on one of my Mautic sites.

From the log, I saw this:  
[2017-10-04 17:58:22] mautic.WARNING: PHP Warning - mkdir(): No such file or directory - in file /mnt/data/home/93270.cloudwaysapps.com/qvcqubudnv/public\_html/app/bundles/CoreBundle/Helper/PathsHelper.php - at line 120 [] []

So how to solve it? Thanks for your help guys.

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [October 4, 2017, 2:29pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/3 "2017-10-04T14:29:29Z")

</div>

How is your Mautic system hosted?

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [October 4, 2017, 3:05pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/4 "2017-10-04T15:05:43Z")

</div>

> [@26371:@PeterTL](#):
>
> How is your Mautic system hosted?

I host it on [Cloudways.com](http://Cloudways.com), btw what do you mean with the how?

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [October 4, 2017, 6:25pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/5 "2017-10-04T18:25:05Z")

</div>

Sorry, I was not specific enough. What is the difference between the two installations?

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [October 5, 2017, 12:40am UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/6 "2017-10-05T00:40:02Z")

</div>

> [@26378:@PeterTL](#):
>
> Sorry, I was not specific enough. What is the difference between the two installations?

The thing is I don’t know what’s the different, as far as I remember there’s no different. Both on same provider and same server.

I did search about this issue and it seems related to tmp folder permission/ownership. But have no idea what it’s exactly.

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [October 5, 2017, 2:25am UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/7 "2017-10-05T02:25:56Z")

</div>

Well well, after 3 days seeking the solution, finally… it’s now has been solved for a moment. Here’re what I did:

modify local.php becomes: ‘tmp\_path’ =\> ‘%kernel.root\_dir%/cache’  
delete cache folder.

But after successfully one import, this page s/contacts/import/new gives 500 Internal Server Error  
Report from log:  
[2017-10-05 10:36:49] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentFormExceptionLogicException: “A form with an empty name cannot have a parent form.” at /mnt/data/home/93270.cloudwaysapps.com/qvcqubudnv/public\_html/vendor/symfony/form/Form.php line 273 {“exception”:"[object] (Symfony\Component\Form\Exception\LogicException(code: 0): A form with an empty name cannot have a parent form. at /mnt/data/home/93270.cloudwaysapps.com/qvcqubudnv/public\_html/vendor/symfony/form/Form.php:273)"} []

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [October 5, 2017, 12:32pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/8 "2017-10-05T12:32:35Z")

</div>

mmmm… you made an upgrade in this Mautic?

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [October 8, 2017, 2:50pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/9 "2017-10-08T14:50:38Z")

</div>

I’m still using v2.10.0

---

<div class="post-metadata">

**Author:** ![fususu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fususu/32/215_2.png) [@fususu](https://forum.mautic.org/u/fususu)\
**Post date:** [October 8, 2017, 3:13pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/10 "2017-10-08T15:13:02Z")

</div>

Can you login via SSH? I used this command on my VPS (nginx) and it solve any problem related to file & folder ownership permission. Note: you must do the command when you are in the public\_html folder, eg. /home/public\_html/yourdomain/folder/…

```auto
chown -R nginx:nginx *
```

---

<div class="post-metadata">

**Author:** ![mike-accentdm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mike-accentdm/32/1178_2.png) [@mike-accentdm](https://forum.mautic.org/u/mike-accentdm)\
**Post date:** [November 14, 2017, 10:00pm UTC](https://forum.mautic.org/t/import-contact-unable-to-read-the-imported-csv-file/9624/11 "2017-11-14T22:00:54Z")

</div>

There’s a git issue about this ([https://github.com/mautic/mautic/issues/4937](https://github.com/mautic/mautic/issues/4937)).

The workaround seems to be to double-check that all columns have a header.

HTH
