1

I have site which is running on Magento 2.1.7 CE.

When I tried to upgrade site from admin using

System -> Tools -> Web Setup Wizard

it stop on

Step 2: Readiness Check

and showing error in Check Component Dependency : like screen-sort.

enter image description here

So, I search for the issue on web and every where I get solution about increase memory_limit.

And I change limit in php.ini avilable in magento root folder, And my change increase the memory_limit. See screen-sort.

enter image description here

After this also get same error. When I check my error.log file it showing something like this.

enter image description here

Error Log : PHP Fatal error: Out of memory (allocated 484450304) (tried to allocate 20480 bytes)

Can any one help me into this,

Thanks in advance.

  • Share these details with your server team to get them updated. You will need to Match the server configuration that Magento Needs. – Envision Ecommerce Sep 27 '17 at 11:56
1

Go to your xampp/wamp/lamp & search for the php.ini file & change there in memory_limit & save the file & restart your server you will get the solution for your question.

It seems like your master value is 2048M & local value is 768M

For server simply just search for or try to put a file with name .user.ini in your public_html folder and put this code there

memory_limit = 2G

than try to run this command

php -dmemory_limit=2G bin/magento setup:static-content:deploy

Thank You!

  • I am working on live site, means the site working on web server. – Dhiren Vasoya Sep 27 '17 at 10:56
  • I try to set this .user.ini still same error occured. – Dhiren Vasoya Sep 28 '17 at 5:24
  • @Dhiren Vasoya both the memory_limit are showing same? – Abhishek Tripathi Sep 28 '17 at 5:59
  • yes, now both memory_limit show 2048M, but problem still exist. – Dhiren Vasoya Sep 28 '17 at 6:13
  • look now I have updated my answer try that command to your server. – Abhishek Tripathi Sep 28 '17 at 6:22
0

I solved the problem by doing this.

  1. I increased memory_limit in .user.ini file available in Magento root directory.

  2. Then removed Require dev tag from composer.json available in Magento root directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.