magento 2 extension composer update error - Please update your modules: Run “composer install” from the Magento root directory

magento.stackexchange https://magento.stackexchange.com/questions/253106

Question

My Siteground shared hosting plan does not allow me to use composer (memory limit). How can I fix this issue? is there a way to manually update it without composer? or how can I disable this module? Thanks!

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Please update your modules: Run "composer install" from the Magento root directory. The following modules are outdated: Magefan_Community db schema version: defined in codebase - 2.0.2, currently installed - 2.0.3 Magefan_Community db data version: defined in codebase - 2.0.2, currently installed - 2.0.3

========================================================================

mmap() failed: [12] Cannot allocate memory

Fatal error: Out of memory (allocated 844111872) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Rule.php on line 76
Was it helpful?

Solution

Did you ever manage to resolve this? I am having the same issue. We recently signed up to Siteground and are trying to upgrade our website from Magento 2.2.5 to Magento 2.3.

When trying to run Composer Update I have the exact same problem.

I tried running commands such as 'php -d memory_limit=512M /usr/local/bin/composer update' but no luck what so ever.

Any help with this would be so much appreciated!

I had to cloned the magento site to the local computer and run it using xampp, and run those composer commands and upload the changes back to siteground.

OTHER TIPS

Try this:

php -d memory_limit=512M /usr/local/bin/composer update

Let me know if not solved!

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top