Problems exporting/importing data

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?

Hi,

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

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!

Hi,

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