Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Can't install a new feature because I'm running out of memory according to Composer...?

I'm trying to install the "filterable" feature of Kyslik and I keep getting a message that says you're out of memory.


I've changed things, as far as the Memory Limit on my php.ini file, but that doesn't seem to help.


Here's what I've got: 


User generated image


My php.ini file's location:


User generated image


The directory as it appears on my local box:


User generated image


When you click on "php.ini," it opens up the "phpForApache.ini" file. 


At that point, I made this change:


User generated image


...and still got the same error, as far as running out of memory (https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors).


I did restart my WAMP service, so...


...any ideas? 




SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

Memory Limit is set to -1:


User generated image
...and here's the message I get...

User generated image
Thing is, although I'm getting the same "not enough memory" error, look at the last command I ran:

php-r "echo ini_get('memory_limit').PHP_EOL"

It says 128 MB. I've updated the php.ini file that's referenced here...

User generated image...as well as the file that's referenced in my info.php file:

I had to go through three different php.ini files before finally adjusting the correct one.

And it wasn't the file that was referenced on the <?php phpinfo()?>  dynamic. I had to run a command on the Terminal to see what file was being referenced.

Taking notes...

Thanks!

Still not out of the dark, though...

https://www.experts-exchange.com/questions/29223380/What-do-these-errors-mean-and-how-can-I-fix-it.html
As above...

1) When you run composer, you're using PHP CLI, not PHP HTTPS.

2) When you output phpinfo() this is HTTPS.

3) Thus what you're seeing in PHP HTTPS (phpinfo) may or may not have any relation to PHP CLI settings.

Note: This slight differentiation trips up many people... I only mention this as I once wasted many hours learning this hard lesson... :-)