PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 1, 2022

[FIXED] Composer & Symfony - Fatal error: Out of memory

 January 01, 2022     composer-php, symfony, symfony-3.4     No comments   

Issue

I'm running Symfony 3.4 LTS with composer. My website works fine, but when I try to update any bundle with :

php composer.phar update
# or
php composer.phar update symfony/symfony
# or
php composer.phar update swiftmailer/swiftmailer

I get this error :

PHP Fatal error: Out of memory [...] in phar:/// [...]

Below is what I have already tested :

  • increase my memory_limit from 196M to 1024M
  • run the composer.phar with php -d memory_limit = -1

.. with no success. What else could I try ? By the way, if I run free -m :

total used free shared buffers cached
Mem: 2002 361 1641 0 7 82
-/+ buffers/cache: 270 1732
Swap: 255 255 0

Solution

I solved my issue.

  • Backup website files in local
  • Install Wamp and run the servers
  • Increase memory limit to 2G
  • Make the composer update
  • Upload the files to the production server

I'm very confusing about composer and its requirements. It's crazy...



Answered By - Paolito75
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing