0

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 .

Ronak Rathod
6,58020 silver badges46 bronze badges
asked Jan 18, 2021 at 11:08

1 Answer 1

0

There are two other Magento 2 files that might override your default php.ini settings

  1. magentoroot/.user.ini
  2. magentoroot/.htaccess

Check these files for existing php_value memory_limit settings and modify as needed.

answered Jan 18, 2021 at 11:26
2
  • I have changed in these files but still if i checked via command it will show 128M. Commented Jan 18, 2021 at 11:35
  • 1
    from 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! Commented Jan 18, 2021 at 14:32

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.