# Problems exporting/importing data

**URL:** <https://www.dolibarr.org/forum/t/problems-exporting-importing-data/19628>\
**Category:** Installing my Dolibarr\
**Created:** [October 9, 2020, 7:14am UTC](https://www.dolibarr.org/forum/t/problems-exporting-importing-data/19628 "2020-10-09T07:14:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcr](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@dcr](https://www.dolibarr.org/forum/u/dcr)\
**Post date:** [October 9, 2020, 7:14am UTC](https://www.dolibarr.org/forum/t/problems-exporting-importing-data/19628/1 "2020-10-09T07:14:10Z")

</div>

Hi everyone.  
I did a clean install on Nginx from Dolibarr 12.0.3. From that moment I cannot make backup copies, nor import nor export.  
Viewing the error log I found the following:

“PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1048576 bytes) in /var/www/midolibar/public\_html/core/class/utils.class.php on line 320” while reading response header from upstream, client: 79.148.133.250, server: midolibarr, request: “POST /admin/tools/export.php HTTP / 1.1”, upstream: "fastcgi: // unix: /var/run/php/php7.3-fpm .sock: “, host:” midolibarr “, referrer:” midolibarr / admin / tools / dolibarr\_export.php? mainmenu = home & leftmenu = admintools & idmenu = 5819 "

I have checked the php.ini file and uploaded the maximum uploads allowed, but the same error continues to appear.  
Has anyone had this bug and can help?

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [October 9, 2020, 8:16am UTC](https://www.dolibarr.org/forum/t/problems-exporting-importing-data/19628/2 "2020-10-09T08:16:12Z")

</div>

Hi,

You should change the `memory_limit = 128M` in `php.ini`

---

<div class="post-metadata">

**Author:** ![dcr](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@dcr](https://www.dolibarr.org/forum/u/dcr)\
**Post date:** [October 9, 2020, 8:32am UTC](https://www.dolibarr.org/forum/t/problems-exporting-importing-data/19628/3 "2020-10-09T08:32:52Z")

</div>

Hi ksar.  
I found a solution to this problem editing other file.  
I edited main.inc.php, located on /public\_html.  
You need to uncomment a line that says "@init\_set(‘memory\_limit’, ‘128M’); //This may be useless if memory is hard limited by your PHP.  
If you uncomment, the problem is fixed.  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [October 9, 2020, 8:35am UTC](https://www.dolibarr.org/forum/t/problems-exporting-importing-data/19628/4 "2020-10-09T08:35:19Z")

</div>

Hi,

The problem is this modification will be erase each time you will do a version upgrade.  
So php.ini modification is better
