Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
{"messages":{"error":[{"code":500,"message":"Fatal Error: 'Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes)' in '/home/a1pro/public_html/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php' on line 121"
when i checked during command then it shows 128M only. but i have changed with php_value memory_limit 2048M .
1 Answer 1
There are two other Magento 2 files that might override your default php.ini settings
- magentoroot/.user.ini
- magentoroot/.htaccess
Check these files for existing php_value memory_limit settings and modify as needed.
-
I have changed in these files but still if i checked via command it will show 128M.Php eweb– Php eweb2021年01月18日 11:35:02 +00:00Commented Jan 18, 2021 at 11:35
-
1from the command line do php -i (or use phpinfo() via a web page) and check the configured location of php.ini - make sure you are editing the correct php,ini file!paj– paj2021年01月18日 14:32:30 +00:00Commented Jan 18, 2021 at 14:32