Close

December 28, 2017

Magento 2 “Check Component Dependency” Solution

A quick tip. When you try and upgrade a Magento2.0 site, sometimes you get the dreaded “Check Component Dependencies” error. The worse iteration is when there is no additional information available on the screen as to WHAT exactly is causing the error.

The generic error help page tells you that the issue is either: conflicting packages, filesystem permission issues or an issue with the cron job for the upgrade.

One issue they leave out? Memory!

Try cranking up the webserver logging and check for the error logs. If you find a “PHP Fatal error: Allowed memory size of 805306368 bytes exhausted “, you’ll need to increase your memory limit in your .htaccess file (found in the root directory of your Mage2 site).

We’ve seen really large performance increases after increasing these values to 5G or more.
ie: php_value memory_limit 5G

Also, if you are running PHP 5.6 on the webserver, better start testing PHP 7 now. Magento2 Enterprise 2.2.2, requires PHP 7 or higher!

Contact Us for any type of Magento performance or upgrade issues!